<?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 Please help me filter out +/- 6 sigma and then replot in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Please-help-me-filter-out-6-sigma-and-then-replot/m-p/46415#M26452</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the data I'm trying to plot, I've got a couple spurious data points that are skewing the average and control limits. &amp;nbsp;I want to hide and exclude these data points, and then replot the data with my JMP script. &amp;nbsp;Here is the part of the script that is plotting the data, marking the data points outside of +/- 6 sigma, and is supposed to be filterin them out of the final plots:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;rpt = Control Chart Builder(
	Size( 682, 464 ),
	Show Two Shewhart Charts( 0 ),
	Show Control Panel( 0 ),
	Show Capability( 0 ),
   Variables( Subgroup( :TEST_DATE ), Y( :INFL_WL_MED ) ),
   // Add a cusom warning test to mark points outside of +/- 6 sigma
   Customize Tests( Test 1( 6, "1" ) ),
   Chart( Position( 1 ), Limits( Sigma( Moving Range ) ), Warnings( Test 1( 1 ) ) ),
   By( :EPI_RUN, :TEST_SYSTEM )
);
 
// create the summaries table (contains a column showing test failures)
dt_sum = obj &amp;lt;&amp;lt; save summaries;
 
// clear any existing row states
dt &amp;lt;&amp;lt; clear row states();
 
// loop through each row in the summary table looking for failures
for each row( dt_sum,
   // if this row did not meet our criteria, select the corresponding row in the main table
   If( :Test Failures == "1",
       dt &amp;lt;&amp;lt; Select Rows( Row() )
   )
);
 
// Hide exclude all of the selected rows.
dt &amp;lt;&amp;lt; Hide and Exclude( 1 );
dt &amp;lt;&amp;lt; clear select();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The script marks the data points outside +/- 6 sigma, but the outliers aren't getting getting filtered out, and the data isn't getting replotted. &amp;nbsp;Any help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;</description>
    <pubDate>Wed, 25 Oct 2017 23:01:07 GMT</pubDate>
    <dc:creator>Rehrig76</dc:creator>
    <dc:date>2017-10-25T23:01:07Z</dc:date>
    <item>
      <title>Please help me filter out +/- 6 sigma and then replot</title>
      <link>https://community.jmp.com/t5/Discussions/Please-help-me-filter-out-6-sigma-and-then-replot/m-p/46415#M26452</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the data I'm trying to plot, I've got a couple spurious data points that are skewing the average and control limits. &amp;nbsp;I want to hide and exclude these data points, and then replot the data with my JMP script. &amp;nbsp;Here is the part of the script that is plotting the data, marking the data points outside of +/- 6 sigma, and is supposed to be filterin them out of the final plots:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;rpt = Control Chart Builder(
	Size( 682, 464 ),
	Show Two Shewhart Charts( 0 ),
	Show Control Panel( 0 ),
	Show Capability( 0 ),
   Variables( Subgroup( :TEST_DATE ), Y( :INFL_WL_MED ) ),
   // Add a cusom warning test to mark points outside of +/- 6 sigma
   Customize Tests( Test 1( 6, "1" ) ),
   Chart( Position( 1 ), Limits( Sigma( Moving Range ) ), Warnings( Test 1( 1 ) ) ),
   By( :EPI_RUN, :TEST_SYSTEM )
);
 
// create the summaries table (contains a column showing test failures)
dt_sum = obj &amp;lt;&amp;lt; save summaries;
 
// clear any existing row states
dt &amp;lt;&amp;lt; clear row states();
 
// loop through each row in the summary table looking for failures
for each row( dt_sum,
   // if this row did not meet our criteria, select the corresponding row in the main table
   If( :Test Failures == "1",
       dt &amp;lt;&amp;lt; Select Rows( Row() )
   )
);
 
// Hide exclude all of the selected rows.
dt &amp;lt;&amp;lt; Hide and Exclude( 1 );
dt &amp;lt;&amp;lt; clear select();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The script marks the data points outside +/- 6 sigma, but the outliers aren't getting getting filtered out, and the data isn't getting replotted. &amp;nbsp;Any help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 23:01:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Please-help-me-filter-out-6-sigma-and-then-replot/m-p/46415#M26452</guid>
      <dc:creator>Rehrig76</dc:creator>
      <dc:date>2017-10-25T23:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me filter out +/- 6 sigma and then replot</title>
      <link>https://community.jmp.com/t5/Discussions/Please-help-me-filter-out-6-sigma-and-then-replot/m-p/46416#M26453</link>
      <description>&lt;P&gt;You need to turn the Automatic Recalc option on.&amp;nbsp; This will force the Chart Builder to recalc when the Row States are changed.&amp;nbsp; Here is an example from the Scripting Index&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index==&amp;gt;Control Chart Builder==&amp;gt;Automatic Recalc&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open(
	"$SAMPLE_DATA/Quality Control/Coating.jmp"
);
obj =
Control Chart Builder(
	Variables( Y( :Weight ), Subgroup( :Sample ) )
);
obj &amp;lt;&amp;lt; Automatic Recalc( 1 );
dt &amp;lt;&amp;lt; Select Rows( 5 ) &amp;lt;&amp;lt; Exclude( 1 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Oct 2017 23:44:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Please-help-me-filter-out-6-sigma-and-then-replot/m-p/46416#M26453</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-10-25T23:44:02Z</dc:date>
    </item>
  </channel>
</rss>

