<?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: Control chart limits as percent of actual mean in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Control-chart-limits-as-percent-of-actual-mean/m-p/870220#M103338</link>
    <description>&lt;P&gt;You can also build this type of "grouped" lines in Graph Builder using for example Col Mean and Col Std Dev to calculate those statistics over groups&lt;/P&gt;</description>
    <pubDate>Fri, 25 Apr 2025 08:40:13 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-04-25T08:40:13Z</dc:date>
    <item>
      <title>Control chart limits as percent of actual mean</title>
      <link>https://community.jmp.com/t5/Discussions/Control-chart-limits-as-percent-of-actual-mean/m-p/870208#M103337</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working in pharma industry and I would like to build a control chart according to pharmacopoeia guideline EP 2.9.5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The test is as follow:&lt;/P&gt;
&lt;P&gt;- weight 20 tablets&lt;/P&gt;
&lt;P&gt;- mot more than 2 should deviate more than 7.5% from the observed mean&lt;/P&gt;
&lt;P&gt;- none should deviate more than 15% from the observed mean&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I there a way to set the limit in the control chart to 7.5% of the mean and 15% of the mean instead as based on sigma?&lt;/P&gt;
&lt;P&gt;I know that as a surrogate I can normalized the data to 100% and add fixed ref line in graph builder, but I rather like to keep the original data not normalized to visualized the deviation from 100% (target) as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zeifer_0-1745567330160.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75180i17F18F0A1D830D56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zeifer_0-1745567330160.png" alt="Zeifer_0-1745567330160.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank for your support,&lt;/P&gt;
&lt;P&gt;Clément&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 07:52:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-chart-limits-as-percent-of-actual-mean/m-p/870208#M103337</guid>
      <dc:creator>Zeifer</dc:creator>
      <dc:date>2025-04-25T07:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Control chart limits as percent of actual mean</title>
      <link>https://community.jmp.com/t5/Discussions/Control-chart-limits-as-percent-of-actual-mean/m-p/870220#M103338</link>
      <description>&lt;P&gt;You can also build this type of "grouped" lines in Graph Builder using for example Col Mean and Col Std Dev to calculate those statistics over groups&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 08:40:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-chart-limits-as-percent-of-actual-mean/m-p/870220#M103338</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-04-25T08:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Control chart limits as percent of actual mean</title>
      <link>https://community.jmp.com/t5/Discussions/Control-chart-limits-as-percent-of-actual-mean/m-p/870236#M103343</link>
      <description>&lt;P&gt;To set spec limits at +/-15% from the mean, use the following script as an example. This will allow you to easily check for and report any points beyond 15%.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Based on txnelson's post from Nov 9, 2023. 

// The usual frontmatter: 
Open( "$SAMPLE_DATA/Quality Control/Diameter.jmp" );
Names Default To Here( 1 );
dt = Current Data Table();

// Change column property: DIAMETER
theMean = Col Mean(:DIAMETER);
Eval(
	Substitute(
			Expr(
				dt:DIAMETER &amp;lt;&amp;lt; set property(
					"Spec Limits",
					{LSL( _LSL_ ), 
					//Target( _Target_ ), 
					USL( _USL_ ), 
					Show Limits( 1 )}
				)
			),
		Expr( _LSL_ ), 0.85*theMean,
		//Expr( _Target_ ), theMean,
		Expr( _USL_ ), 1.15*theMean
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To simultaneously check for both points beyond 7.5% and points beyond 15%, that's a bit trickier. One way would be to set 7.5% as the known "historical sigma" of the process. Then you could use the built in Warnings functions in Control Chart Builder to check for points beyond 1 and 2 sigma, respectively.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Set 7.5% of the mean as the "historical" Sigma using the Red Triangle -&amp;gt; Set Sigma option. Then, you could right click the graph and use Warnings -&amp;gt; Customize Tests and change Test 1 to check for points beyond 1 sigma (or script these steps as shown below).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, set KSigma to 2, and now Test Beyond Limits will also check for points beyond 15%.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This isn't usually how control charts are used, but it would get the job done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do so, append this to the script above:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Control chart builder with manually set historical sigma
Eval(
	Substitute(
			Expr(
				Control Chart Builder(
					Variables( Y( :DIAMETER ) ),
					Set Sigma( _sigma_ ),
					K Sigma( 2 ),
					Customize Tests( Test 1( 1, "1" ) ),
					Chart( Position( 1 ), Limits( Spec Limits( 1 ) ) )
				);
			),
		Expr( _sigma_ ), 0.075*theMean,
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 11:30:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-chart-limits-as-percent-of-actual-mean/m-p/870236#M103343</guid>
      <dc:creator>christian-z</dc:creator>
      <dc:date>2025-04-25T11:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Control chart limits as percent of actual mean</title>
      <link>https://community.jmp.com/t5/Discussions/Control-chart-limits-as-percent-of-actual-mean/m-p/870431#M103372</link>
      <description>&lt;P&gt;Just to be clear, &lt;STRONG&gt;what you are attempting to do is not a control chart&lt;/STRONG&gt;. &amp;nbsp;Control chart limits have nothing to do with specifications which are independently derived from the actual process variation. &amp;nbsp;Reacting to specification as if it is assignable/special cause will likely increase variability in the long run (See Deming and Shewhart).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This doesn't mean you can't plot data against specification, but this is not a control chart and you will need to be careful in your reaction to these limits.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Apr 2025 15:55:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-chart-limits-as-percent-of-actual-mean/m-p/870431#M103372</guid>
      <dc:creator>statman</dc:creator>
      <dc:date>2025-04-27T15:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Control chart limits as percent of actual mean</title>
      <link>https://community.jmp.com/t5/Discussions/Control-chart-limits-as-percent-of-actual-mean/m-p/870564#M103399</link>
      <description>&lt;P&gt;I tried to do it in graph builder and went that far (I did not succeed in control chart platform).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created 5 new columns:&lt;/P&gt;
&lt;P&gt;- Mean by category&lt;/P&gt;
&lt;P&gt;- T2 neg = :mean by category*0.85&lt;/P&gt;
&lt;P&gt;- T2 pos = :mean by category*1.15&lt;/P&gt;
&lt;P&gt;- T1 neg = :mean by category*0.925&lt;/P&gt;
&lt;P&gt;- T1 pos = :mean by category*1.075&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I used the following script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Spacing Borders( 1 ),
	Variables(
		Y( :Weight in % of target ),
		Y( :T2 neg, Position( 1 ) ),
		Y( :T2 pos, Position( 1 ) ), 
//Y( :T1 neg, Position( 1 ) ),
//Y( :T1 pos, Position( 1 ) ),
		Group X( :"Concatenate[Batch,Tray]"n )
	),
	Elements(
		Points( Y( 1 ) ),
		Line( Y( 2 ) ),
		Line( Y( 3 ) ), 
//Line(Y( 4 )),
//Line(Y( 5 ))
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;*Note: JSL moved into JSL Box by txnelson&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With only two lines activated, it work well:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zeifer_0-1745853356564.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75254i856C810986CBE0F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zeifer_0-1745853356564.png" alt="Zeifer_0-1745853356564.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but when I activate the four lines (removing the // in the script), i got weird graph:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zeifer_1-1745853391377.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75255i19F4195E98D53D9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Zeifer_1-1745853391377.png" alt="Zeifer_1-1745853391377.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea ?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 15:45:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-chart-limits-as-percent-of-actual-mean/m-p/870564#M103399</guid>
      <dc:creator>Zeifer</dc:creator>
      <dc:date>2025-04-28T15:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Control chart limits as percent of actual mean</title>
      <link>https://community.jmp.com/t5/Discussions/Control-chart-limits-as-percent-of-actual-mean/m-p/870578#M103402</link>
      <description>&lt;P&gt;Maybe the Y-axis is getting grouped together as JMP might do that when you have multiple columns in Y-axis&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1745855902141.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75257i88014A179F0BB4B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1745855902141.png" alt="jthi_0-1745855902141.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size(788, 927),
	Variables(
		Y(:NPN1, Combine("Merged")),
		Y(:neg1, Position(1), Combine("Merged")),
		Y(:pos1, Position(1), Combine("Merged")),
		Y(:neg2, Position(1), Combine("Merged")),
		Y(:pos2, Position(1), Combine("Merged")),
		Group X(:wafer)
	),
	Elements(Points(Y(1), Legend(40)), Line(Y(2), Y(3), Y(4), Y(5), Legend(41))),
	SendToReport(
		Dispatch({"Points"}, "", OutlineBox, {Close(0)}),
		Dispatch({"Line"}, "", OutlineBox, {Close(0)})
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Apr 2025 15:59:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-chart-limits-as-percent-of-actual-mean/m-p/870578#M103402</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-04-28T15:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Control chart limits as percent of actual mean</title>
      <link>https://community.jmp.com/t5/Discussions/Control-chart-limits-as-percent-of-actual-mean/m-p/871631#M103557</link>
      <description>&lt;P&gt;Perfect, Thank you all for the answers.&lt;/P&gt;
&lt;P&gt;It works great.&lt;/P&gt;
&lt;P&gt;Have a nice day.&lt;/P&gt;
&lt;P&gt;Clément&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 07:44:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-chart-limits-as-percent-of-actual-mean/m-p/871631#M103557</guid>
      <dc:creator>Zeifer</dc:creator>
      <dc:date>2025-05-05T07:44:30Z</dc:date>
    </item>
  </channel>
</rss>

