Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Getting calculated control limits from a Levey Jennings chart

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Nov 27, 2019 10:40 AM
(391 views)

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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:

-- Cameron Willden

1 REPLY 1

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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:

-- Cameron Willden