The MACONTROL Procedure |
[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 9.5.4.
Figure 9.5.7 contains a partial listing of Cliphist.
There are five variables in the data set Cliphist.
Day contains the subgroup index.
GapX contains the subgroup means.
GapS contains the subgroup standard deviations.
GapA contains the subgroup moving averages.
GapN contains the subgroup sample sizes.
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.
Copyright © SAS Institute, Inc. All Rights Reserved.