Chapter Contents |
Previous |
Next |
XCHART Statement |
See SHWXCHR in the SAS/QC Sample Library |
In this example, the XCHART 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 PARTGAPS and create a summary data set named GAPHIST:
title 'Summary Data Set for Gap Widths'; proc shewhart data=partgaps; xchart partgap*sample / outhistory = gaphist 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 42.2.
Figure 42.5 contains a listing of GAPHIST.
There are four variables in the data set GAPHIST.
If you specify the STDDEVIATIONS option, the OUTHISTORY= data set includes a subgroup standard deviation variable rather than a subgroup range variable, as demonstrated by the following statements:
title 'Summary Data Set with Subgroup Standard Deviations'; proc shewhart data=partgaps; xchart partgap*sample / outhistory = gaphist2 stddeviations nochart; run;
Figure 42.6 contains a listing of GAPHIST2.
|
The variable PARTGAPS, which contains the subgroup standard deviations, is named by adding the suffix character S to the process PARTGAP.
For more information, see "OUTHISTORY= Data Set" .
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.