Chapter Contents |
Previous |
Next |
NPCHART Statement |
See SHWNP1 in the SAS/QC Sample Library |
In this example, the NPCHART statement is used to create a data set that can be read later 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 np Charts from Count Data" ) and create a summary data set named CIRHIST:
title 'Subgroup Proportions of Failing Circuits'; proc shewhart data=circuits; npchart 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 37.2. Figure 37.5 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 NPCHART 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.