f



PROC SHEWHART - X chart #2

/*

Jeff Morison <jmt_mtf@YAHOO.COM>

asked

>Subject: PROC SHEWHART  - X chart

>Is there way to get 1,2, and 3 sigma control limits
>ALL in the same X chart?

>I know to get them as seperate charts, but my boss
>wants see all 3 in one.

>TIA,
>Jeff


Hi Jeff, Sounds like your boss wants "Zones" in your XChart?

See code below.  If you need the lines labeled with values you can
use an annotate data set....

HTH?


*/


dm 'clear log';
dm 'clear output';
goptions reset=all;
options ls=100 ps=60;
goptions ftext="Times New Roman" fby="Times New Roman" htext=11pt ftitle
="Arial" htitle=16pt
      vsize=6.0 hsize=6.75 device=win hby=3 pct cby=red;
title;

data junk;
      do sub=1 to 100;
            response=15+2*rannor(12345);
            output;
      end;
run;

title1 "Individuals Control Chart using Classical 3 Sigma Limits";
title2 c=blue "Zones C, B, and A are at +/- 1, 2, and 3 Std Errors";
symbol v=dot c=blue h=.5;
goptions vsize=5.5 hsize=7.0;
proc shewhart data=junk;
xchart response*sub  / npanelpos=500 cout=red outlimits=limits cout=red
            zonelabels  lzones=33 czones=green;
      label sub="Sample Number";
run;
Best regards,

John Hixon
Eastman Kodak Company
Rochester, NY USA
585-477-1984
0
john.hixon (31)
10/13/2003 8:55:36 PM
comp.soft-sys.sas 142827 articles. 4 followers. Post Follow

0 Replies
58169 Views

Similar Articles

[PageSpeed] 28

Reply: