Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
PCHART Statement

Saving Control Limits

See SHWPCHR in the SAS/QC Sample Library

You can save the control limits for a p chart in a SAS data set; this enables you to apply the control limits to future data (see "Reading Preestablished Control Limits") or modify the limits with a DATA step program.

The following statements read the number of nonconforming items per subgroup from the data set CIRCUITS (see "Creating p Charts from Count Data" ) and save the control limits displayed in Figure 38.2 in a data set named CIRLIM:

   title 'Control Limits for the Proportion of Failing Circuits';
   proc shewhart data=circuits;
      pchart fail*batch / subgroupn=500
                          outlimits=cirlim
                          nochart;
   run;

The OUTLIMITS= option names the data set containing the control limits, and the NOCHART option suppresses the display of the chart. The data set CIRLIM is listed in Figure 38.7.

 
Control Limits for the Proportion of Failing Circuits

_VAR_ _SUBGRP_ _TYPE_ _LIMITN_ _ALPHA_ _SIGMAS_ _LCLP_ _P_ _UCLP_
fail batch ESTIMATE 500 .005040334 3 .000930786 0.019467 0.038003
Figure 38.7: The Data Set CIRLIM Containing Control Limit Information

The data set CIRLIM contains one observation with the limits for process FAIL. The variables _LCLP_ and _UCLP_ contain the lower and upper control limits, and the variable _P_ contains the central line. The value of _LIMITN_ is the nominal sample size associated with the control limits, and the value of _SIGMAS_ is the multiple of \sigma associated with the control limits. The variables _VAR_ and _SUBGRP_ are bookkeeping variables that save the process and subgroup-variable. The variable _TYPE_ is a bookkeeping variable that indicates whether the value of _P_ is an estimate or standard value.

For more information, see "OUTLIMITS= Data Set".

You can create an output data set containing both control limits and summary statistics with the OUTTABLE= option, as illustrated by the following statements:

   title 'Proportion Nonconforming and Control Limit Information';
   proc shewhart data=circuits;
      pchart fail*batch / subgroupn=500
                          outtable=cirtable
                          nochart;
   run;

The data set CIRTABLE is listed in Figure 38.8.

 
Subgroup Proportions and Control Limit Information

_VAR_ batch _SIGMAS_ _LIMITN_ _SUBN_ _LCLP_ _SUBP_ _P_ _UCLP_ _EXLIM_
fail 1 3 500 500 .000930786 0.010 0.019467 0.038003  
fail 2 3 500 500 .000930786 0.012 0.019467 0.038003  
fail 3 3 500 500 .000930786 0.022 0.019467 0.038003  
fail 4 3 500 500 .000930786 0.012 0.019467 0.038003  
fail 5 3 500 500 .000930786 0.008 0.019467 0.038003  
fail 6 3 500 500 .000930786 0.018 0.019467 0.038003  
fail 7 3 500 500 .000930786 0.034 0.019467 0.038003  
fail 8 3 500 500 .000930786 0.020 0.019467 0.038003  
fail 9 3 500 500 .000930786 0.024 0.019467 0.038003  
fail 10 3 500 500 .000930786 0.018 0.019467 0.038003  
fail 11 3 500 500 .000930786 0.016 0.019467 0.038003  
fail 12 3 500 500 .000930786 0.014 0.019467 0.038003  
fail 13 3 500 500 .000930786 0.014 0.019467 0.038003  
fail 14 3 500 500 .000930786 0.030 0.019467 0.038003  
fail 15 3 500 500 .000930786 0.016 0.019467 0.038003  
fail 16 3 500 500 .000930786 0.036 0.019467 0.038003  
fail 17 3 500 500 .000930786 0.024 0.019467 0.038003  
fail 18 3 500 500 .000930786 0.032 0.019467 0.038003  
fail 19 3 500 500 .000930786 0.008 0.019467 0.038003  
fail 20 3 500 500 .000930786 0.014 0.019467 0.038003  
fail 21 3 500 500 .000930786 0.034 0.019467 0.038003  
fail 22 3 500 500 .000930786 0.024 0.019467 0.038003  
fail 23 3 500 500 .000930786 0.016 0.019467 0.038003  
fail 24 3 500 500 .000930786 0.014 0.019467 0.038003  
fail 25 3 500 500 .000930786 0.030 0.019467 0.038003  
fail 26 3 500 500 .000930786 0.012 0.019467 0.038003  
fail 27 3 500 500 .000930786 0.016 0.019467 0.038003  
fail 28 3 500 500 .000930786 0.024 0.019467 0.038003  
fail 29 3 500 500 .000930786 0.014 0.019467 0.038003  
fail 30 3 500 500 .000930786 0.018 0.019467 0.038003  
Figure 38.8: The Data Set CIRTABLE

This data set contains one observation for each subgroup sample. The variables _SUBP_ and _SUBN_ contain the subgroup proportions of nonconforming items and subgroup sample sizes. The variables _LCLP_ and _UCLP_ contain the lower and upper control limits, and the variable _P_ contains the central line. The variables _VAR_ and BATCH contain the process name and values of the subgroup-variable, respectively. For more information, see "OUTTABLE= Data Set".

An OUTTABLE= data set can be read later as a TABLE= data set. For example, the following statements read the information in CIRTABLE and display a p chart (not shown here) identical to the chart in Figure 38.2:

   title 'p Chart for the Proportion of Failing Circuits';
   proc shewhart table=cirtable;
      pchart fail*batch;
   run;

Because the SHEWHART procedure simply displays the information in a TABLE= data set, you can use TABLE= data sets to create specialized control charts (see Chapter 49, "Specialized Control Charts"). For more information, see "TABLE= Data Set".

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.