cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
jan_solo_ff
Level I

Getting calculated control limits from a Levey Jennings chart

Hi Everyone,

 

I'm currently working on a script that generates a LJ chart.  I need to drop a bunch of lines in there and must make sure the scale of the Y-axis allows to see all these lines.

This all works perfectly except for the calculated control limits.  Is there any way that I can get these calculated limits, preferably before I generated the chart, so I can use them in the calculation I make to determine the Y-axis scale?

 

Thanks!

 

--Jan

1 ACCEPTED SOLUTION

Accepted Solutions
cwillden
Super User (Alumni)

Re: Getting calculated control limits from a Levey Jennings chart

Levey Jennings just uses the long term sigma to compute control limits, so you can just take the standard deviation of the entire column of the response you are plotting.  Here's an example using the Vial Fill Weights example from the Sample Data Library.

dt = Data Table("Vial Fill Weights");
y = :Fill Weight << Get Values;
y_bar = mean(y);
sigma = std dev(y);

UCL = y_bar + 3*sigma;
LCL = y_bar - 3*sigma;

This returns 5.90482338181099 and 6.32439884041124 for LCL and UCL respectively.  This matches the Levey Jennings limits:LJ.png

 

-- Cameron Willden

View solution in original post

1 REPLY 1
cwillden
Super User (Alumni)

Re: Getting calculated control limits from a Levey Jennings chart

Levey Jennings just uses the long term sigma to compute control limits, so you can just take the standard deviation of the entire column of the response you are plotting.  Here's an example using the Vial Fill Weights example from the Sample Data Library.

dt = Data Table("Vial Fill Weights");
y = :Fill Weight << Get Values;
y_bar = mean(y);
sigma = std dev(y);

UCL = y_bar + 3*sigma;
LCL = y_bar - 3*sigma;

This returns 5.90482338181099 and 6.32439884041124 for LCL and UCL respectively.  This matches the Levey Jennings limits:LJ.png

 

-- Cameron Willden