Statistical Procedures

Programming the statistical procedures from SAS
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 is hosting free webinars!
Next up: SAS Trivia Quiz hosted by SAS on Wednesday May 21.
Register now 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 is hosting free webinars!
Next up: SAS Trivia Quiz hosted by SAS on Wednesday May 21.
Register now at https://www.basug.org/events.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

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
  • 990 views
  • 3 likes
  • 2 in conversation