Chapter Contents |
Previous |
Next |
RCHART Statement |
See SHWRCHR in the SAS/QC Sample Library |
In this example,
the RCHART statement procedure 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 DISKS and create a summary
data set named DISKHIST:
title 'Summary Data Set for Disk Times'; proc shewhart data=disks; rchart time*lot / outhistory = diskhist 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 39.2. Options such as OUTHISTORY= and NOCHART are specified after the slash (/) in the RCHART statement. A complete list of options is presented in the "Syntax" section.
Figure 39.5 contains a listing of DISKHIST.
There are four variables in the data set DISKHIST.
The subgroup mean variable is included in the OUTHISTORY= data set even though it is not required by the RCHART statement. This allows the data set to be used as a HISTORY= data set with the BOXCHART, XCHART, and XRCHART statements, as well as with the RCHART statement. Note that the summary statistic variables are named by adding the suffix characters X, R, and N to the process TIME specified in the RCHART 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 |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.