Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
EWMACHART Statement

Saving Summary Statistics

See MACEW1 in the SAS/QC Sample Library

In this example, the EWMACHART statement is used to create a summary data set that can be read later by the MACONTROL procedure (as in the preceding example). The following statements read measurements from the data set CLIPS1 and create a summary data set named CLIPHIST:

   title 'Summary Data Set for Gap Measurements';
   proc macontrol data=clips1;
      ewmachart gap*day / weight     = 0.3
                          outhistory = cliphist
                          nochart;
   run;

The OUTHISTORY= option names the output data set, and the NOCHART option suppresses the display of the chart, which would be identical to the chart in Figure 20.2.

Figure 20.5 contains a listing of CLIPHIST.

 
Summary Data Set for Gap Measurements

day gapX gapS gapE gapN
1 14.904 0.18716 14.9362 5
2 15.014 0.09317 14.9595 5
3 14.866 0.25006 14.9315 5
4 15.048 0.23732 14.9664 5
5 15.024 0.26792 14.9837 5
6 15.126 0.12260 15.0264 5
7 15.220 0.23098 15.0845 5
8 14.902 0.17254 15.0297 5
9 14.910 0.19824 14.9938 5
10 14.932 0.24035 14.9753 5
11 15.096 0.25618 15.0115 5
12 14.912 0.16903 14.9816 5
13 15.138 0.15928 15.0285 5
14 14.798 0.26329 14.9594 5
15 14.944 0.20876 14.9548 5
16 14.896 0.09965 14.9371 5
17 14.734 0.22512 14.8762 5
18 15.046 0.24141 14.9271 5
19 14.702 0.17880 14.8596 5
20 14.788 0.16634 14.8381 5
Figure 20.5: The Summary Data Set CLIPHIST

There are five variables in the data set CLIPHIST.

Note that the summary statistic variables are named by adding the suffix characters X, S, E, and N to the process GAP specified in the EWMACHART statement. In other words, the variable naming convention for OUTHISTORY= data sets is the same as that for HISTORY= data sets.

For more information, see "OUTHISTORY= Data Set" .

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.