cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
CrownofTears
Level II

I cannot add USL and LSL to my variability chart automatically

Hi Guys,

I am trying to have my Variability charts generated automatically with LSL and USL. This is the code I am using.
This code runs but it does not generate the limits in the chart. Do you have any idea of what io am doing wrong?

DeltaVar= New Window("GRR Delta Report",
	
		For(l=1, l<=Nitems(ListDelta),l++,
			
			tres=Variability Chart(
				Y(ListDelta[l]),
				X(:Chan, :SN),
				Model (Crossed),
				Historical Sigma (0),
				Connect Cell Means (1),
				Show Group Means (1),
				Show Grand Mean (0),
				Show Grand Median (1),
				XBar Control Limits (1),
				S control Limits (1),
				Std Dev Chart (0),
				Mean Plots (0),
				Mean of Std Dev (1),
				Add Spec Limits({LSL(-0.1),USL(0.1)}),
				Show Spec Limits(1),

			);
			
		);

	
	);
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: I cannot add USL and LSL to my variability chart automatically

I don't think Variability Chart supports "Add Spec Limits". You could add the spec limits to your columns as Spec Limit column properties.

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

ListDelta = {"height", "weight"};

Column(dt, "height") << Set Property("Spec Limits", {LSL(50), USL(100), Show Limits(1)});

DeltaVar = New Window("GRR Delta Report", 	
	For(l = 1, l <= N Items(ListDelta), l++, 
		tres = Variability Chart(
			Y(Eval(ListDelta[l])),
			X(:sex),
			Model(Crossed),
			Historical Sigma(0),
			Connect Cell Means(1),
			Show Group Means(1),
			Show Grand Mean(0),
			Show Grand Median(1),
			XBar Control Limits(1),
			S control Limits(1),
			Std Dev Chart(0),
			Mean Plots(0),
			Mean of Std Dev(1)
		);		
	);	
);
-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: I cannot add USL and LSL to my variability chart automatically

I don't think Variability Chart supports "Add Spec Limits". You could add the spec limits to your columns as Spec Limit column properties.

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

ListDelta = {"height", "weight"};

Column(dt, "height") << Set Property("Spec Limits", {LSL(50), USL(100), Show Limits(1)});

DeltaVar = New Window("GRR Delta Report", 	
	For(l = 1, l <= N Items(ListDelta), l++, 
		tres = Variability Chart(
			Y(Eval(ListDelta[l])),
			X(:sex),
			Model(Crossed),
			Historical Sigma(0),
			Connect Cell Means(1),
			Show Group Means(1),
			Show Grand Mean(0),
			Show Grand Median(1),
			XBar Control Limits(1),
			S control Limits(1),
			Std Dev Chart(0),
			Mean Plots(0),
			Mean of Std Dev(1)
		);		
	);	
);
-Jarmo
statman
Super User

Re: I cannot add USL and LSL to my variability chart automatically

There may be other ways, as Jarmo indicates you can add spec limits to the properties of the column

Screenshot 2023-08-13 at 8.49.39 AM.png

Then when you create the Variability plot, check the box at the bottom:

Screenshot 2023-08-13 at 8.49.58 AM.png

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