Help using Base SAS procedures

Control Chart

Reply
Super Contributor
Posts: 1,041

Control Chart

Hi,

I have the following table:

I need to make a  Control Chart by Unit

with Average days and number of persons

name       Unit         Days

Kevin      Dep1        0.1

Peter      Dep2        2.0

Sam      Dep3         7.0

Ben      Dep1          3.0

Kim     Dep3           4.0

bill       Dep1           5.0

joe      Dep1           3.0

I have used proc schewhart in the past..But i dont really remember how to do it now??

Thanks

Community Manager
Posts: 2,952

Re: Control Chart

Posted in reply to robertrao

PROC SHEWHART (read about Dr. Shewhart here) offers lots of control chart options.

Here's one example that might not make sense for your data, but it gives you a feel for the syntax/mechanics.

Result:

shewhart.png

Program:

data cc;

length name $ 10 unit $ 4 days 8;

infile datalines dsd;

input name unit days;

datalines;

Kevin,Dep1,0.1

Peter,Dep2,2.0

Sam,Dep3,7.0

Ben,Dep1,3.0

Kim,Dep3,4.0

bill,Dep1,5.0

joe,Dep1,3.0

run;

proc sort data=cc; by name unit; run;

ods graphics off;

proc shewhart data = cc

;

  xrchart (days) * unit (name) /

;

run;

quit;

Chris

Super Contributor
Posts: 1,041

Re: Control Chart

Posted in reply to ChrisHemedinger

Hi Chris,

Thanks a lot for the reply. I also read some literature in the mean while.. I was wondering if I need to set the control limits for my data.

Will SAS set the limits by itself????

Thanks

Ask a Question
Discussion stats
  • 2 replies
  • 175 views
  • 3 likes
  • 2 in conversation