Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
MACHART Statement

Saving Summary Statistics

See MACMA1 in the SAS/QC Sample Library

In this example, the MACHART 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;
      machart gap*day / span       = 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 21.2.

Figure 21.5 contains a listing of CLIPHIST.

 
Summary Data Set for Gap Measurements

day gapX gapS gapA gapN
1 14.904 0.18716 14.9040 5
2 15.014 0.09317 14.9590 5
3 14.866 0.25006 14.9280 5
4 15.048 0.23732 14.9760 5
5 15.024 0.26792 14.9793 5
6 15.126 0.12260 15.0660 5
7 15.220 0.23098 15.1233 5
8 14.902 0.17254 15.0827 5
9 14.910 0.19824 15.0107 5
10 14.932 0.24035 14.9147 5
11 15.096 0.25618 14.9793 5
12 14.912 0.16903 14.9800 5
13 15.138 0.15928 15.0487 5
14 14.798 0.26329 14.9493 5
15 14.944 0.20876 14.9600 5
16 14.896 0.09965 14.8793 5
17 14.734 0.22512 14.8580 5
18 15.046 0.24141 14.8920 5
19 14.702 0.17880 14.8273 5
20 14.788 0.16634 14.8453 5
Figure 21.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, A, and N to the process GAP specified in the MACHART 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.