BookmarkSubscribeRSS Feed
deepika951
Calcite | Level 5

Hi Everyone, 
I was trying to plot a p-chart using PROC SHEWHART on SAS 9.4.

I wanted to show a positive shift in my process centerline to 100%. However, SAS shows me the following error: 

WARNING: No variability was encountered in the data for process variable Completion.

 

Is there any suggestion on how should I show a 100% centerline?

6 REPLIES 6
PaigeMiller
Diamond | Level 26

It would help if you showed your SAS code and a portion of your data.

 

Also: could you please explain how a p-chart can have a centerline at 100%? A p-chart has percent or proportion on the vertical axis, it goes from 0% to 100%, so it doesn't make sense to me to have the centerline at 100%.

--
Paige Miller
deepika951
Calcite | Level 5
Week BeginningNumDenCompletion %
20/01/201988100
27/01/201988100
03/02/20192020100
10/02/201981172.72727
17/02/2019111384.61538
24/02/20198988.88889
03/03/2019162857.14286
10/03/20193475
17/03/2019192095
24/03/2019152075
31/03/201944100
07/04/201922100
14/04/201955100
21/04/201922100
28/04/201955100
05/05/201911100
12/05/201966100
19/05/201911100
26/05/20192366.66667
02/06/20192366.66667
09/06/201944100
16/06/201933100
23/06/201944100

 

My baseline was calculated using the 1st 8 points (~81%) and then a new centerline for 100% was calculated from the week 03/31/2019-05/19/2019 (using the 8 points above the centerline rule). However, SAS code is showing me error for not being able to calculate control limits when the centerline becomes 100%. I have tried to create 2 "Phases" in my program to calculate the 2 centerlines as shown below:

 

proc sort data=V; by _PHASE_;run;

proc shewhart data=V;
by _PHASE_;
pchart Completion*Week_Beginning/subgroupn=Den dataunit=percent
outlimits = LimV(rename=(_PHASE_=_INDEX_)) interval=day discrete
nochart;
run;

 

proc shewhart data=V limits=LimV;
pchart Completion*Week_Beginning/
markers discrete
subgroupn=Den
totpanels=1
dataunit=percent
nolegend 
cout=red
height=6
odstitle=none
yscale=percent
readindexes= all
readphases=all
readlimits;
label Completion="Weekly Proportion %"
Week_Beginning="Week Beginning";
run;

 

 

PaigeMiller
Diamond | Level 26

The error message is correct. Control limits cannot be calculated when the mean value is 100%. There is no variability from which you can compute upper or lower control limits.

--
Paige Miller
deepika951
Calcite | Level 5

I understand. But is there a way to have control limits for the 1st Phase in which my centerline is not 100% and then have no limits when the centerline becomes 100%?

PaigeMiller
Diamond | Level 26

Well, to be honest, I have never tried. So I cannot answer further.

--
Paige Miller
deepika951
Calcite | Level 5

No problem. Thank you for your help anyway. 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 6 replies
  • 499 views
  • 0 likes
  • 2 in conversation