<?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 CUSUM chart with subgroup variable in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/CUSUM-chart-with-subgroup-variable/m-p/470233#M71431</link>
    <description>&lt;P&gt;I'm trying to understand how the cusum chart is calculated usind a subgroup variable X where some X values are present multiple times. For example, I have 3-5 measurements per day and the cusum chart should be grouped by day. Since it says in the JMP help regarding X "&lt;SPAN&gt;If a value of this column is present more than once, the average response at each X value is plotted on the CUSUM chart.", I thought&lt;/SPAN&gt;&amp;nbsp;that the daily averages of Y are calculated and then the cusum calculation is done with the aggregated data. For T and sigma this gives the same results as the cusum calculation with the original data and day as X variable, but the chart looks completely different. Can you please give me an explanation how the calculation is done? Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 00:46:54 GMT</pubDate>
    <dc:creator>Kristin</dc:creator>
    <dc:date>2023-06-09T00:46:54Z</dc:date>
    <item>
      <title>CUSUM chart with subgroup variable</title>
      <link>https://community.jmp.com/t5/Discussions/CUSUM-chart-with-subgroup-variable/m-p/470233#M71431</link>
      <description>&lt;P&gt;I'm trying to understand how the cusum chart is calculated usind a subgroup variable X where some X values are present multiple times. For example, I have 3-5 measurements per day and the cusum chart should be grouped by day. Since it says in the JMP help regarding X "&lt;SPAN&gt;If a value of this column is present more than once, the average response at each X value is plotted on the CUSUM chart.", I thought&lt;/SPAN&gt;&amp;nbsp;that the daily averages of Y are calculated and then the cusum calculation is done with the aggregated data. For T and sigma this gives the same results as the cusum calculation with the original data and day as X variable, but the chart looks completely different. Can you please give me an explanation how the calculation is done? Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 00:46:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/CUSUM-chart-with-subgroup-variable/m-p/470233#M71431</guid>
      <dc:creator>Kristin</dc:creator>
      <dc:date>2023-06-09T00:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: CUSUM chart with subgroup variable</title>
      <link>https://community.jmp.com/t5/Discussions/CUSUM-chart-with-subgroup-variable/m-p/472647#M71734</link>
      <description>&lt;P&gt;Can you share an illustrative data example as a .jmp file? That will help the community to help you.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Phil&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 14:48:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/CUSUM-chart-with-subgroup-variable/m-p/472647#M71734</guid>
      <dc:creator>Phil_Kay</dc:creator>
      <dc:date>2022-03-24T14:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: CUSUM chart with subgroup variable</title>
      <link>https://community.jmp.com/t5/Discussions/CUSUM-chart-with-subgroup-variable/m-p/473044#M71762</link>
      <description>&lt;P&gt;The file CUSUM_example contains the raw data. There are several measurements for each MEAS_STARTDATE. The other file contains the average number of counts grouped by MEAS_STARTDATE (daily averages). I thought that the cusum charts should be equal for both cases, but they look completely different. Can anybody explain why? Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 09:08:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/CUSUM-chart-with-subgroup-variable/m-p/473044#M71762</guid>
      <dc:creator>Kristin</dc:creator>
      <dc:date>2022-03-25T09:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: CUSUM chart with subgroup variable</title>
      <link>https://community.jmp.com/t5/Discussions/CUSUM-chart-with-subgroup-variable/m-p/473107#M71774</link>
      <description>&lt;P&gt;In conjunction with the documentation for the platform, the script below should help you to understand how it works. Do 'File &amp;gt; New &amp;gt; New Script' cut and paste the code below into the resulting window, then do 'Edit &amp;gt; Run Script'):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

ng = 10;		// Number of groups
ns = 5;			// Size of group

// Make some data
sVals = SortAscending(Repeat((1::ng)`, ns));
cVals = J(ng*ns, 1, RandomInteger(0, 20));
dt1 = NewTable("Raw Data",
		NewColumn("Group", Numeric, Ordinal, Values(sVals)),
		NewColumn("Count", Numeric, Continuous, Values(cVals))		
	);

// Do the Cusum Control Chart (note the 'Data Units' option)
dt1 &amp;lt;&amp;lt; CUSUM Control Chart(Y( :Count ), X( :Group ), Show Center Line( 0 ), Data Units( 1 ));

// Agregate the data (use the 'sum' not the 'mean'!)
dt2 = dt1 &amp;lt;&amp;lt; Summary(Group( :Group ), Sum( :Count ));

// Do the Cusum Control Chart with the agregated data (note the 'Data Units' option)
dt2 &amp;lt;&amp;lt; CUSUM Control Chart( Y( :"Sum(Count)"n ), Show Center Line( 0 ), Data Units( 1 ));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Mar 2022 13:30:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/CUSUM-chart-with-subgroup-variable/m-p/473107#M71774</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2022-03-25T13:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: CUSUM chart with subgroup variable</title>
      <link>https://community.jmp.com/t5/Discussions/CUSUM-chart-with-subgroup-variable/m-p/473634#M71827</link>
      <description>&lt;P&gt;Hi Ian,&lt;/P&gt;&lt;P&gt;thanks for the script. I see that it's working with Data Unit option set to 1.&amp;nbsp;Apart from scaling I get the same result for the sum or the mean if I dont't use data units. That's what I expected. However, the chart for the raw data looks different when setting data units to 0 (see attached image). Can you explain this?&lt;BR /&gt;This is my script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

ng = 10;		// Number of groups
ns = 5;			// Size of group

// Make some data
sVals = SortAscending(Repeat((1::ng)`, ns));
cVals = J(ng*ns, 1, RandomInteger(0, 20));
dt1 = NewTable("Raw Data",
		NewColumn("Group", Numeric, Ordinal, Values(sVals)),
		NewColumn("Count", Numeric, Continuous, Values(cVals))		
	);

// Do the Cusum Control Chart (note the 'Data Units' option)
dt1 &amp;lt;&amp;lt; CUSUM Control Chart(Y( :Count ), X( :Group ), Show Center Line( 0 ), Data Units( 1 ));
dt1 &amp;lt;&amp;lt; CUSUM Control Chart(Y( :Count ), X( :Group ), Show Center Line( 0 ), Data Units( 0 ));

// Agregate the data (use the 'sum' not the 'mean'!)
dt2 = dt1 &amp;lt;&amp;lt; Summary(Group( :Group ), Mean( :Count ));

// Do the Cusum Control Chart with the agregated data (note the 'Data Units' option)
dt2 &amp;lt;&amp;lt; CUSUM Control Chart( Y( :"Mean(Count)"n ), Show Center Line( 0 ), Data Units( 1 ));
dt2 &amp;lt;&amp;lt; CUSUM Control Chart( Y( :"Mean(Count)"n ), Show Center Line( 0 ), Data Units( 0 ));

// Agregate the data (use the 'sum' not the 'mean'!)
dt3 = dt1 &amp;lt;&amp;lt; Summary(Group( :Group ), Sum( :Count ));

// Do the Cusum Control Chart with the agregated data (note the 'Data Units' option)
dt3 &amp;lt;&amp;lt; CUSUM Control Chart( Y( :"Sum(Count)"n ), Show Center Line( 0 ), Data Units( 1 ));
dt3 &amp;lt;&amp;lt; CUSUM Control Chart( Y( :"Sum(Count)"n ), Show Center Line( 0 ), Data Units( 0 ));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Mar 2022 07:27:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/CUSUM-chart-with-subgroup-variable/m-p/473634#M71827</guid>
      <dc:creator>Kristin</dc:creator>
      <dc:date>2022-03-28T07:27:52Z</dc:date>
    </item>
  </channel>
</rss>

