cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar
4396MW
Level I

How do I save (or script) separate control limits for 2 IR charts created using the By function in JMP Pro?

I used to be able to save separate limits directly in the script, but I'm not sure where that would go now as the structure of the script is somewhat different.

2 REPLIES 2
statman
Super User

Re: How do I save (or script) separate control limits for 2 IR charts created using the By function in JMP Pro?

First welcome to the community.  I'm not exactly sure what you are asking and attaching your data table helps us to provide assistance. After you have created the IMR charts, using the red triangle next to each response variable by, scroll down to save script>Options. 

"All models are wrong, some are useful" G.E.P. Box
jthi
Super User

Re: How do I save (or script) separate control limits for 2 IR charts created using the By function in JMP Pro?

How are you setting/loading them? If you are using file it should look something like this

Control Chart Builder(
	SendToByGroup({:sex == "F"}),
	SendToByGroup({:sex == "M"}, Show Limit Labels(1)),
	Variables(Y(:height)),
	SendToByGroup(
		{:sex == "F"},
		Get Limits(<path1>)
	),
	SendToByGroup(
		{:sex == "M"},
		Get Limits(<path2>)
	),
	Show Control Panel(0),
	By(:sex)
);

And if you are doing it with Set Control Limits, you will get list of control  chart builders when using By (at least in JMP18), so send the messages separately

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");

ccb = dt << Control Chart Builder(
	Variables(Y(:height)),
	Show Control Panel(0),
	By(:sex)
);


ccb[1] << Chart(
	Position(1),
	Set Control Limits({LCL(40), Avg(50), UCL(90)})
);

ccb[2] << Chart(
	Position(1),
	Set Control Limits({LCL(20), Avg(30), UCL(50)})
);

 

-Jarmo

Recommended Articles