Chapter Contents |
Previous |
Next |
MCHART Statement |
See SHWMCHR in the SAS/QC Sample Library |
In this example, the MCHART statement is used to create a summary data set that can be read later by the SHEWHART procedure (as in the preceding example). The following statements read measurements from the data set DETERGNT and create a summary data set named DETHIST:
title 'Summary Data Set DETHIST for Detergent Box Weights'; proc shewhart data=detergnt; mchart weight*lot / outhistory = dethist 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 35.2. Figure 35.5 contains a listing of DETHIST.
There are four variables in the data set DETHIST.
Note that the summary statistic variables are named by adding the suffix characters M, R, and N to the process WEIGHT specified in the MCHART statement. In other words, the variable naming convention for OUTHISTORY= data sets is the same as that for HISTORY= data sets.
If you specify the STDDEVIATIONS option,
the OUTHISTORY= data set includes a subgroup standard deviation
variable instead of a subgroup range variable, as
demonstrated by the following statements:
title 'Summary Data Set with Subgroup Standard Deviations'; proc shewhart data=detergnt; mchart weight*lot / outhistory = dethist2 stddeviations nochart; run;
|
The variable WEIGHTS, which contains the subgroup standard deviations, is named by adding the suffix character S to the process WEIGHT.
For more information, see "OUTHISTORY= Data Set" .
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.