Chapter Contents |
Previous |
Next |
PCHART Statement |
See SHWPCHR in the SAS/QC Sample Library |
In this example,
the PCHART statement is used to create a
data set that can later be read by the SHEWHART procedure
(as in the preceding example).
The following statements read the number of nonconforming
items from the data set CIRCUITS (see
"Creating p Charts from Count Data" )
and create a summary data set named CIRHIST:
title 'Subgroup Proportions of Failing Circuits'; proc shewhart data=circuits; pchart fail*batch / subgroupn =500 outhistory=cirhist 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 38.2. Figure 38.6 contains a listing of CIRHIST.
There are three variables in the data set CIRHIST.
Note that the variables containing the subgroup proportions of nonconforming items and subgroup sample sizes are named by adding the suffix characters P and N to the process FAIL specified in the PCHART 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.