BookmarkSubscribeRSS Feed
bhr-q
Pyrite | Level 9

when I run the below code to perform the special cause test, I receive the warning shown below. Could you please advise on how to fix that?

proc shewhart data=tmp10;
pchart yes_answer*month /Markers subgroupn =  n_per_group     ODSTITLE="P-chart with Tests for Special Causes" 
                           tests = 1 to 4
                           testnmethod = standardize
                           table
                           tablelegend
                           nohlabel;
 LABEL yes_answer ="Prop of Pts Receiving IV Abx";                          
run;

WARNING: Asymmetric control limits encountered for yes_answer for at least one subgroup.
WARNING: It is assumed that the difference between the upper limit and center line represents three standard errors.

 

Thank you!

3 REPLIES 3
Quentin
Super User

Asymmetric control limits often happen for a p-chart, because the lower control limit is truncated at 0.  The warning says "It is assumed that the difference between the upper limit and center line represents three standard errors."  I would think that's a fair assumption, I don't see anywhere in your code that asked for different control limits.  On the chart, it shows the upper control limit as a 3-sigma limit, right?  I don't think I'd worry about this warning.

The Boston Area SAS Users Group (BASUG) is hosting our in person SAS Blowout on Oct 18!
This full-day event in Cambridge, Mass features four presenters from SAS, presenting on a range of SAS 9 programming topics. Pre-registration by Oct 15 is required.
Full details and registration info at https://www.basug.org/events.
bhr-q
Pyrite | Level 9

Thank you for your answer, I have attached the chart, which indicates that the UCL is set at a 3-sigma limit. However, the LCL does not show a corresponding 3-sigma limit. I think this discrepancy is due to varying sample sizes and the proportion being very high for each subgroup, with the UCL approaching one. (in my case LCL doesn't truncate at zero)

Quentin
Super User

Agree, you've got 3-sigma limits.  But in your case the UCL is truncated by the maximum value, 1.  I wouldn't worry about the warning message.  Looking at tests 1-4, I think they should be fine. 

 

Quentin_0-1717982417935.png

 

The Boston Area SAS Users Group (BASUG) is hosting our in person SAS Blowout on Oct 18!
This full-day event in Cambridge, Mass features four presenters from SAS, presenting on a range of SAS 9 programming topics. Pre-registration by Oct 15 is required.
Full details and registration info at https://www.basug.org/events.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 502 views
  • 3 likes
  • 2 in conversation