Creating Control Charts Using SAS by n9P0aK

VIEWS: 5 PAGES: 3

									                                 Creating Control Charts Using SAS

Steps in creating mean and range control charts, using the piston ring example:
1) Create a SAS data set, with variables a) the process variable (in this case, piston ring diameter), and b)
the sample label (in this case, time). The SAS program for creating this data set is shown below.
2) The program should sort the data set by the sample label, if the data are not already sorted.
3) Choose Solutions, Quality Improvement, Control Charts.
4) For the Active Data Set, choose the appropriate data set from the Work library, in this case
WORK.RING.
5) For Type of Control Chart, choose Mean and range charts.
6) For Process variable, choose diameter.
7) For Subgroup variable, choose the sample label, in this case, time.
8) Since in this case we are creating the preliminary control chart using the preliminary data sets, for
Method of Establishing Control Limits, choose Compute from the data….
9) Click Run, print the Graph window.

data ring;
input time diameter;
cards;
 1 74.030
 2 73.995
 3 73.988
 4 74.002
 5 73.992
 6 74.009
 7 73.995
 8 73.985
 9 74.008
10 73.998
11 73.994
12 74.004
13 73.983
14 74.006
15 74.012
16 74.000
17 73.994
18 74.006
19 73.984
20 74.000
21 73.988
22 74.004
23 74.010
24 74.015
25 73.982
 1 74.002
 2 73.992
 3 74.024
 4 73.996
 5 74.007
 6 73.994
 7 74.006
 8 74.003
 9 73.995
10 74.000
11 73.998
12 74.000
13 74.002
14 73.967
15   74.014
16   73.984
17   74.012
18   74.010
19   74.002
20   74.010
21   74.001
22   73.999
23   73.989
24   74.008
25   73.984
 1   74.019
 2   74.001
 3   74.021
 4   73.993
 5   74.015
 6   73.997
 7   73.994
 8   73.993
 9   74.009
10   73.990
11   73.994
12   74.007
13   73.998
14   73.994
15   73.998
16   74.005
17   73.986
18   74.018
19   74.003
20   74.013
21   74.009
22   73.990
23   73.990
24   73.993
25   73.995
 1   73.992
 2   74.011
 3   74.005
 4   74.015
 5   73.989
 6   73.985
 7   74.000
 8   74.015
 9   74.005
10   74.007
11   73.995
12   74.000
13   73.997
14   74.000
15   73.999
16   73.998
17   74.005
18   74.003
19   74.005
20   74.020
21   74.005
22   74.006
23   74.009
24   74.000
25   74.017
 1   74.008
  2 74.004
  3 74.002
  4 74.009
  5 74.014
  6 73.993
  7 74.005
  8 73.988
  9 74.004
10 73.995
11 73.990
12 73.996
13 74.012
14 73.984
15 74.007
16 73.996
17 74.007
18 74.000
19 73.997
20 74.003
21 73.996
22 74.009
23 74.014
24 74.010
25 74.013
;
proc sort;by time;
;
proc print;
;
run;

								
To top