<?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 Create control chart without missing row in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Create-control-chart-without-missing-row/m-p/268643#M52290</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create several control charts from a data set that I have. I made an example so far that includes all information, categorize it and create a new table based on the function I've applied.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From there, I need to create a control chart but without the empty cells.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've made an example data set of what I've done so far, but I still can't figure out how to create a control chart as needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So based on the example data set, I would want to have a control chart for Test 1 without ID5, Test 2 without ID12 and 4 and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Local data filter won't work since I have more than 100 of ID no. in the real data and would like to have this done automatically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Sun, 24 May 2020 03:54:47 GMT</pubDate>
    <dc:creator>ninanoc</dc:creator>
    <dc:date>2020-05-24T03:54:47Z</dc:date>
    <item>
      <title>Create control chart without missing row</title>
      <link>https://community.jmp.com/t5/Discussions/Create-control-chart-without-missing-row/m-p/268643#M52290</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create several control charts from a data set that I have. I made an example so far that includes all information, categorize it and create a new table based on the function I've applied.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From there, I need to create a control chart but without the empty cells.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've made an example data set of what I've done so far, but I still can't figure out how to create a control chart as needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So based on the example data set, I would want to have a control chart for Test 1 without ID5, Test 2 without ID12 and 4 and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Local data filter won't work since I have more than 100 of ID no. in the real data and would like to have this done automatically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 03:54:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-control-chart-without-missing-row/m-p/268643#M52290</guid>
      <dc:creator>ninanoc</dc:creator>
      <dc:date>2020-05-24T03:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create control chart without missing row</title>
      <link>https://community.jmp.com/t5/Discussions/Create-control-chart-without-missing-row/m-p/268662#M52293</link>
      <description>&lt;P&gt;I have semi-figured out the solution, but facing another problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can eliminate cells by applying "where"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Variables(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subgroup( :ID),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Y( test1)&lt;/P&gt;&lt;P&gt;),&lt;/P&gt;&lt;P&gt;Where (&lt;/P&gt;&lt;P&gt;Test1&amp;gt;= 0&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, why doesn't it work with the below function?&lt;/P&gt;&lt;P&gt;Variables(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subgroup( :ID),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Y( test1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;test2&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;/P&gt;&lt;P&gt;),&lt;/P&gt;&lt;P&gt;Where (&lt;/P&gt;&lt;P&gt;Test1&amp;gt;= 0,&lt;/P&gt;&lt;P&gt;Test2&amp;gt;=0&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 09:34:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-control-chart-without-missing-row/m-p/268662#M52293</guid>
      <dc:creator>ninanoc</dc:creator>
      <dc:date>2020-05-24T09:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create control chart without missing row</title>
      <link>https://community.jmp.com/t5/Discussions/Create-control-chart-without-missing-row/m-p/268885#M52341</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1st: To delete the missing you should select the appropriate col, in your case result_2&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;data &amp;lt;&amp;lt; Select Where( Is Missing( :result_2 ) ) &amp;lt;&amp;lt; Delete Rows;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2nd: you could do the multiple Control Charts by means of JMP base functionality, e.g. "by group" or "local data filter", see the examples "Xbar by" and "Xbar Local DF" in the full script generating table and scripts.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "test_controlchart",
	Add Rows( 19 ),
	Compress File When Saved( 1 ),
	New Script(
		"control chart",
		data = Current Data Table();
		data &amp;lt;&amp;lt; Select Where( Is Missing( :test ) ) &amp;lt;&amp;lt; Delete Rows;
		data &amp;lt;&amp;lt; deSelect;
		data &amp;lt;&amp;lt; Split(
			Split By( :test ),
			Split( :result_2 ),
			Group( :ID ),
			Remaining Columns( Drop All )
		);
	),
	New Script(
		"delete missing",
		data = Current Data Table();
		data &amp;lt;&amp;lt; Select Where( Is Missing( :result_2 ) ) &amp;lt;&amp;lt; Delete Rows;
		data &amp;lt;&amp;lt; deSelect;
	),
	New Script(
		"XBar By",
		Control Chart Builder(
			by( :test ),
			Size( 528, 454 ),
			Show Control Panel( 0 ),
			Show Capability( 0 ),
			Variables( Subgroup( :ID ), Y( :result_2 ) )
		)
	),
	New Script(
		"XBar Local DF",
		Control Chart Builder(
			Size( 528, 454 ),
			Show Control Panel( 0 ),
			Show Capability( 0 ),
			Variables( Subgroup( :ID ), Y( :result_2 ) ),
			Local Data Filter(
				Conditional,
				Add Filter( columns( :test ), Where( :test == "Test1" ) )
			)
		)
	),
	New Column( "ID",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [1, 2, 3, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5] ),
		Set Display Width( 48 )
	),
	New Column( "result_2",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [2, 4, 2, 5, ., 5, 1, 4, ., ., ., 8, ., 2, 1, ., ., 6, 3] ),
		Set Display Width( 58 )
	),
	New Column( "method",
		Character( 2 ),
		"Nominal",
		Set Values(
			{"M1", "M2", "M3", "M2", "M3", "M1", "M2", "M3", "M1", "M2", "M3", "M1",
			"M2", "M3", "M1", "M2", "M3", "M1", "M2"}
		),
		Set Display Width( 51 )
	),
	New Column( "test",
		Character( 5 ),
		"Nominal",
		Formula(
			If(
				:method == "M1", "Test1",
				:method == "M2", "Test2",
				:method == "M3", "Test3",
				""
			)
		),
		Set Display Width( 49 )
	)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 May 2020 07:19:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-control-chart-without-missing-row/m-p/268885#M52341</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2020-05-26T07:19:02Z</dc:date>
    </item>
  </channel>
</rss>

