cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
Celine1
Level II

How to set control limit in IMR chart and Xbar R chart

Greetings,
I'm using JMP 17, I tried to set control limit for IMR chart and X bar R chart. 
Although I have set the control limits, when I run the script, the control limits do not change as I have set them.
dt is the data table.
below is the script for IMR chart:

dt = Open( "$SAMPLE_DATA/Time Series/Workers.jmp" );

Gra = dt << Control Chart Builder(
	K Sigma( 2.5 ),
	Variables( Subgroup( :DATE ), Y( :"electrical workers, thousands" ) ),
	Chart(
		Position( 1 ),
		Warnings( Test 1( 1 ), Test 3( 1 ) ),
		Set Control Limits( {LCL( 287.5 ), UCL( 312 ), Avg( 300 )} )
	),
	Chart(
		Position( 2 ),
		Warnings( Test Beyond Limits( 1 ) ),
		Set Control Limits( {LCL( 0 ), UCL( 15 )} )
	),
	SendToReport(
		Dispatch( {}, "Warnings[1]", OutlineBox, {Close( 0 )} ),
		Dispatch( {"Warnings[1]"}, "Tests", OutlineBox, {Close( 0 )} ),
		Dispatch( {}, "Warnings[2]", OutlineBox, {Close( 0 )} )
	)
)

below is the script for XbarR chart:

dt = Open( "$SAMPLE_DATA/Quality Control/Line Length.jmp" );

Control Chart Builder(
	K Sigma( 2.5 ),
	Variables( Subgroup( :Run ), Y( :Length ) ),
	Chart(
		Position( 1 ),
		Limits( Sigma( "Levey Jennings" ) ),
		Warnings( Test 1( 1 ), Test 3( 1 ) ),
		Set Control Limits( {LCL( 15.8 ), UCL( 16.2 ), Avg( 16 )} )
	),
	Chart(
		Position( 2 ),
		Limits( Sigma( "Levey Jennings" ) ),
		Warnings( Test Beyond Limits( 1 ) ),
		Set Control Limits( {LCL( 0 ), UCL( 0.16 )} )
	),
	SendToReport(
		Dispatch( {}, "Warnings[1]", OutlineBox, {Close( 0 )} ),
		Dispatch( {"Warnings[1]"}, "Tests", OutlineBox, {Close( 0 )} ),
		Dispatch( {}, "Warnings[2]", OutlineBox, {Close( 0 )} )
	)
)


How to set the control limit?
Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to set control limit in IMR chart and Xbar R chart

I believe the K Sigma(2.5) argument is overriding the Set Control Limits argument. If you remove it, the limits are set as specified.

View solution in original post

1 REPLY 1

Re: How to set control limit in IMR chart and Xbar R chart

I believe the K Sigma(2.5) argument is overriding the Set Control Limits argument. If you remove it, the limits are set as specified.