<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help in JSL scripting of Model Driven Multivariate Control Chart in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Help-in-JSL-scripting-of-Model-Driven-Multivariate-Control-Chart/m-p/637800#M83564</link>
    <description>&lt;P&gt;Do you want to have final report which has the contribution plots next to the control chart?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1685610934506.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53323iC14B4C662F6BD1F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1685610934506.png" alt="jthi_0-1685610934506.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2023 09:15:44 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-06-01T09:15:44Z</dc:date>
    <item>
      <title>Help in JSL scripting of Model Driven Multivariate Control Chart</title>
      <link>https://community.jmp.com/t5/Discussions/Help-in-JSL-scripting-of-Model-Driven-Multivariate-Control-Chart/m-p/637767#M83561</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am planning to write a generic JSL script to fetch the data (containing multiple columns) from a file and perform Model Drive Multivariate Control Chart for Continued Process Verification purpose in my organization.&amp;nbsp;Here, I am specifically looking to code for T2 control chart, score plot and then to display contribution plots for out of control points from the control chart.&amp;nbsp;Basically, I would like to code the above mentioned requirements in one script so that to avoid redundancies of charting and exporting every time for obvious benefits&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate if someone can support on this and guide me to proceed further.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I tried doing this manually from the Menu option of Model Driven Multivariate Control Chart ("Quality and Process") and saving the script to data table. I would like to make it more generic so that I can use it with any data table. Especially, with Contribution plots, I am unable to crack it at the moment as the system won't allow to display unless and until I select the out of control points manually from the T2 Control chart. Also, with the column names, when I am trying to code it with "Get Column Names" and use it in the Process function inside MDMVCC, it's not working. For example,&amp;nbsp;Process( :AA, :CO, :DL, :F9, :FL, :NW, :UA, :US, :WN ), instead of explicit mention of all column names every time, I would like to perform the analysis for all the columns from the data table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 08:58:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-in-JSL-scripting-of-Model-Driven-Multivariate-Control-Chart/m-p/637767#M83561</guid>
      <dc:creator>Riaz90Nawaz</dc:creator>
      <dc:date>2023-06-01T08:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help in JSL scripting of Model Driven Multivariate Control Chart</title>
      <link>https://community.jmp.com/t5/Discussions/Help-in-JSL-scripting-of-Model-Driven-Multivariate-Control-Chart/m-p/637800#M83564</link>
      <description>&lt;P&gt;Do you want to have final report which has the contribution plots next to the control chart?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1685610934506.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53323iC14B4C662F6BD1F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1685610934506.png" alt="jthi_0-1685610934506.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 09:15:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-in-JSL-scripting-of-Model-Driven-Multivariate-Control-Chart/m-p/637800#M83564</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-06-01T09:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help in JSL scripting of Model Driven Multivariate Control Chart</title>
      <link>https://community.jmp.com/t5/Discussions/Help-in-JSL-scripting-of-Model-Driven-Multivariate-Control-Chart/m-p/637801#M83565</link>
      <description>&lt;P&gt;Hi Jthi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will also work. Along with this contribution plots, I would like to add Score Plot with 95% Ellipse coverage and preferably to save the T2 values and Contributions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 09:20:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-in-JSL-scripting-of-Model-Driven-Multivariate-Control-Chart/m-p/637801#M83565</guid>
      <dc:creator>Riaz90Nawaz</dc:creator>
      <dc:date>2023-06-01T09:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help in JSL scripting of Model Driven Multivariate Control Chart</title>
      <link>https://community.jmp.com/t5/Discussions/Help-in-JSL-scripting-of-Model-Driven-Multivariate-Control-Chart/m-p/637802#M83566</link>
      <description>&lt;P&gt;Forgot to add one important point. I want contribution plots only for those which are out of control limit as per the T2 Control chart&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 09:22:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-in-JSL-scripting-of-Model-Driven-Multivariate-Control-Chart/m-p/637802#M83566</guid>
      <dc:creator>Riaz90Nawaz</dc:creator>
      <dc:date>2023-06-01T09:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help in JSL scripting of Model Driven Multivariate Control Chart</title>
      <link>https://community.jmp.com/t5/Discussions/Help-in-JSL-scripting-of-Model-Driven-Multivariate-Control-Chart/m-p/637809#M83568</link>
      <description>&lt;P&gt;This might give some ideas how to get going (this should be made more robust)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Quality Control/Flight Delays.jmp");
dt &amp;lt;&amp;lt; Clear Row States;
cols_of_interest = dt &amp;lt;&amp;lt; get column names(Continuous, "String");

obj = dt &amp;lt;&amp;lt; Model Driven Multivariate Control Chart(
	Process(Eval(cols_of_interest))
);

obj &amp;lt;&amp;lt; T Square Plot(Save Values);
new_cols = Associative Array(dt &amp;lt;&amp;lt; get column names(Continuous, "String"));
new_cols &amp;lt;&amp;lt; Remove(Associative Array(cols_of_interest)); // T2 column


// get UCL (should be made more robust)
ucl_value = ((Report(obj)[OutlineBox("T² Limit Summaries")] &amp;lt;&amp;lt; Child)[3] &amp;lt;&amp;lt; Get)[1];
alarm_rows = Loc(dt[0, new_cols &amp;lt;&amp;lt; get keys] &amp;gt; ucl_value);

dt &amp;lt;&amp;lt; Select Rows(alarm_rows);
wait(0);
obj &amp;lt;&amp;lt; T² Plot(Contribution Plot for Selected Samples(alarm_rows));
dt &amp;lt;&amp;lt; Clear Select;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Jun 2023 09:39:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-in-JSL-scripting-of-Model-Driven-Multivariate-Control-Chart/m-p/637809#M83568</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-06-01T09:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help in JSL scripting of Model Driven Multivariate Control Chart</title>
      <link>https://community.jmp.com/t5/Discussions/Help-in-JSL-scripting-of-Model-Driven-Multivariate-Control-Chart/m-p/637814#M83569</link>
      <description>&lt;P&gt;Hi Jarmo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much. This will work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I shall modify the code further as per my requirements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Highly Appreciate your prompt support on this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you once again !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take Care,&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 10:25:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-in-JSL-scripting-of-Model-Driven-Multivariate-Control-Chart/m-p/637814#M83569</guid>
      <dc:creator>Riaz90Nawaz</dc:creator>
      <dc:date>2023-06-01T10:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help in JSL scripting of Model Driven Multivariate Control Chart</title>
      <link>https://community.jmp.com/t5/Discussions/Help-in-JSL-scripting-of-Model-Driven-Multivariate-Control-Chart/m-p/655359#M84445</link>
      <description>&lt;P&gt;Hi Jarmo/jthi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need one more help on this part.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to have one generic script on the similar lines what you have suggested, but this time, the model driven multivariate control chart should use some benchmark models (either PCA or PLS) to fix the control limit. The reason is, for continued process verification purpose, once we fix the limit (calculated from the historical dataset without any outliers), the future batches have to be monitored against this limit. Currently, what's happening is, every time when this script is run, it generates new control limit (for obvious reasons) as the dataset is differing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the first part is to fix the control limit (all the historical/golden dataset should fall below the control limit) and to do this, is it possible to develop a model with cross-validation to finalize the number of components so that the data-points fall below the control limit (off course, after removing the outliers)? The tricky part here I am facing, even though the so-called outliers are removed, every time the MDMVCC gives one or other data point beyond a control limit (as the dataset is changing).&amp;nbsp; This has to be fixed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;second part is to run this script (with fixed control limit) on the subsequently manufactured batches to identify any excursions in the variables as part of CPV activity.&lt;/P&gt;&lt;P&gt;The overall idea is to have a generic MDMVCC script (from a benchmark model) which can predict/identify the outliers/variations with good accuracy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate if you can guide me or throw some more light on this request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance !!&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Nawaz&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 11:00:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-in-JSL-scripting-of-Model-Driven-Multivariate-Control-Chart/m-p/655359#M84445</guid>
      <dc:creator>Riaz90Nawaz</dc:creator>
      <dc:date>2023-07-05T11:00:48Z</dc:date>
    </item>
  </channel>
</rss>

