<?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 charts: Charts plotting incline or decline in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Control-charts-Charts-plotting-incline-or-decline/m-p/256091#M50309</link>
    <description>&lt;P&gt;I don't know your specific application, but I have some thoughts. &amp;nbsp;First the MR chart will work fine for detecting special/assignable cause variation in the short-term (as a function of the variables changing between consecutive "measures"). &amp;nbsp;The limits on the X-chart are based on the variation captured on the MR chart. &amp;nbsp;The X-chart is meant to provide some insight into variation over longer-term (due to variables changing over longer periods of time). &amp;nbsp;It answers the question: Is the variation over long-term greater than the variation in consecutive measure? &amp;nbsp;So if there is a trend or shift in the data over time, the X-chart should detect this (as it does).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you expect this to happen, you could regress on the Y (Analyze&amp;gt;Fit Model). &amp;nbsp;Save the predicted values (red triangle&amp;gt;Save Columns&amp;gt;Predicted Values). Create a new column (Y2) with a formula: Predicted Y- Y. &amp;nbsp;This will remove the trend in the data. &amp;nbsp;You could then run the IR charts on the new Y2. &amp;nbsp;You need to understand what this is detecting for you and decide if this is what you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you attach the data table I can give it a look.&lt;/P&gt;</description>
    <pubDate>Sat, 04 Apr 2020 19:50:41 GMT</pubDate>
    <dc:creator>statman</dc:creator>
    <dc:date>2020-04-04T19:50:41Z</dc:date>
    <item>
      <title>Control charts: Charts plotting incline or decline</title>
      <link>https://community.jmp.com/t5/Discussions/Control-charts-Charts-plotting-incline-or-decline/m-p/256077#M50304</link>
      <description>&lt;P&gt;Hi, I would like to plot +/- 3 sigma and apply pattern rules to data inclining and declining data.&amp;nbsp; Cannot seem to find the possibility to do so in JMP, but I see it in other software programs&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ian&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPC_trend.JPG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22779i13AB47766F132323/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPC_trend.JPG" alt="SPC_trend.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 18:20:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-charts-Charts-plotting-incline-or-decline/m-p/256077#M50304</guid>
      <dc:creator>Gadsdon</dc:creator>
      <dc:date>2020-04-04T18:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Control charts: Charts plotting incline or decline</title>
      <link>https://community.jmp.com/t5/Discussions/Control-charts-Charts-plotting-incline-or-decline/m-p/256091#M50309</link>
      <description>&lt;P&gt;I don't know your specific application, but I have some thoughts. &amp;nbsp;First the MR chart will work fine for detecting special/assignable cause variation in the short-term (as a function of the variables changing between consecutive "measures"). &amp;nbsp;The limits on the X-chart are based on the variation captured on the MR chart. &amp;nbsp;The X-chart is meant to provide some insight into variation over longer-term (due to variables changing over longer periods of time). &amp;nbsp;It answers the question: Is the variation over long-term greater than the variation in consecutive measure? &amp;nbsp;So if there is a trend or shift in the data over time, the X-chart should detect this (as it does).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you expect this to happen, you could regress on the Y (Analyze&amp;gt;Fit Model). &amp;nbsp;Save the predicted values (red triangle&amp;gt;Save Columns&amp;gt;Predicted Values). Create a new column (Y2) with a formula: Predicted Y- Y. &amp;nbsp;This will remove the trend in the data. &amp;nbsp;You could then run the IR charts on the new Y2. &amp;nbsp;You need to understand what this is detecting for you and decide if this is what you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you attach the data table I can give it a look.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 19:50:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-charts-Charts-plotting-incline-or-decline/m-p/256091#M50309</guid>
      <dc:creator>statman</dc:creator>
      <dc:date>2020-04-04T19:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Control charts: Charts plotting incline or decline</title>
      <link>https://community.jmp.com/t5/Discussions/Control-charts-Charts-plotting-incline-or-decline/m-p/256106#M50313</link>
      <description>&lt;P&gt;First, heed&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4358"&gt;@statman&lt;/a&gt; words.&lt;/P&gt;
&lt;P&gt;Second, JMP does not have a builtin option for drawing such lines in Control Chart Builder, however, JMP does have the ability to modify the graphic output using JSL.&amp;nbsp; Below is a sample output and below that, the fairly simple script that modifies the chart.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clregress.PNG" style="width: 942px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22780i58F8A870698E82F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="clregress.PNG" alt="clregress.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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");

cc = dt &amp;lt;&amp;lt; Control Chart Builder(
	Show Control Panel( 0 ),
	Show Capability( 0 ),
	Variables( Subgroup( :Sample ), Y( :Weight ) ),
	SendToReport(
		Dispatch(
			{},
			"Weight",
			ScaleBox,
			{Format( "Best", 10 ), Min( 16.9881233437177 ), Max( 24.2481694370065 ),
			Inc( 1 ), Minor Ticks( 0 )}
		),
		Dispatch(
			{},
			"Control Chart Builder",
			FrameBox,
			{DispatchSeg( Line Seg( 3 ), {Line Color( "White" )} ),
			DispatchSeg( Line Seg( 4 ), {Line Color( "White" )} )}
		)
	)
);


Report( cc )[FrameBox( 1 )] &amp;lt;&amp;lt; add graphics script(
	yMat = dt:weight &amp;lt;&amp;lt; get values;
	xMat = dt:sample &amp;lt;&amp;lt; get values;
	{Estimates, Std_Error, Diagnostics} = Linear Regression( yMat, xMat );
	sigma = ((Report( cc )["Weight Limit Summaries"][Number Col Box( 3 )] &amp;lt;&amp;lt; get)[1] - 
	(Report( cc )["Weight Limit Summaries"][Number Col Box( 1 )] &amp;lt;&amp;lt; get)[1]) / 2;
	Pen Color( "red" );
	Pen Size( 2 );
	line style( "Dashed" );
	List1 = {};
	List1[1] = col minimum(:sample);
	List1[2] = sigma + estimates[1] + Estimates[2] * mean(:sample[dt&amp;lt;&amp;lt;get rows where(:sample == col minimum(:sample))]);
	List2 = {};
	List2[1] = col Maximum(:Sample);
	List2[2] = sigma + estimates[1] + Estimates[2] * mean(:sample[dt&amp;lt;&amp;lt;get rows where(:sample == col maximum(:sample))]);
	Line(list1,list2);
	List1[2] = List1[2] - 2 * sigma;
	List2[2] = List2[2] - 2 * sigma;
	Line(list1,list2)
)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Apr 2020 20:21:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-charts-Charts-plotting-incline-or-decline/m-p/256106#M50313</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-04T20:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Control charts: Charts plotting incline or decline</title>
      <link>https://community.jmp.com/t5/Discussions/Control-charts-Charts-plotting-incline-or-decline/m-p/256172#M50331</link>
      <description>&lt;P&gt;Thanks for the response, my application is assessing processes where there is an expectation of and incline or deline in a process, such as degradation of a substance over time, or even the contamination rate of Covid 19, its useful to assess if the increase or decrease is consistent or not.&amp;nbsp; The Rule sets for normal control charts work fine in detecting a change, but I wanted to see if the change was consistent.&amp;nbsp; I think the second solution shown is the best course for me, but thank you for responding&lt;/P&gt;&lt;P&gt;Regards Ian&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 16:01:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-charts-Charts-plotting-incline-or-decline/m-p/256172#M50331</guid>
      <dc:creator>Gadsdon</dc:creator>
      <dc:date>2020-04-05T16:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Control charts: Charts plotting incline or decline</title>
      <link>https://community.jmp.com/t5/Discussions/Control-charts-Charts-plotting-incline-or-decline/m-p/256176#M50333</link>
      <description>&lt;P&gt;Thanks Jim for this, this is the closest to the solution for me, I guess I need to invest some time to understand JLS, if this is a simply script!!!&amp;nbsp; I need to to learn this language.&amp;nbsp; Appreciate yours and &lt;A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4358" target="_blank"&gt;@statman&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;support cheers Ian&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 16:08:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Control-charts-Charts-plotting-incline-or-decline/m-p/256176#M50333</guid>
      <dc:creator>Gadsdon</dc:creator>
      <dc:date>2020-04-05T16:08:38Z</dc:date>
    </item>
  </channel>
</rss>

