Chapter Contents |
Previous |
Next |
MCHART Statement |
See SHWMCHR in the SAS/QC Sample Library |
You can save the control limits for a median 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 measurements from the data set DETERGNT (see "Creating Charts for Medians from Raw Data" ) and save the control limits displayed in Figure 35.2 in a data set named DETLIM:
title 'Control Limits for Detergent Box Weights'; proc shewhart data=detergnt; mchart weight*lot / outlimits=detlim nochart; run;
The OUTLIMITS= option names the data set containing the control limits, and the NOCHART option suppresses the display of the charts. The data set DETLIM is listed in Figure 35.7.
The data set DETLIM contains one observation with the limits for the process WEIGHT. The variables _LCLM_ and _UCLM_ contain the lower and upper control limits for the medians, and the variable _MEAN_ contains the central line. The value of _MEAN_ is an estimate of the process mean, and the value of _STDDEV_ is an estimate of the process standard deviation .The value of _LIMITN_ is the nominal sample size associated with the control limits, and the value of _SIGMAS_ is the multiple of 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 values of _MEAN_ and _STDDEV_ are estimates or standard values.
The variables _LCLR_, _R_, and _UCLR_ are not used to create median charts, but they are included so the data set DETLIM can be used to create an R chart; see Chapter 36, "MRCHART Statement," and Chapter 39, "RCHART Statement." If you specify the STDDEVIATIONS option in the MCHART statement, the variables _LCLS_, _S_, and _UCLS_ are included in the OUTLIMITS= data set. These variables can be used to create an s chart; see Chapter 40, "SCHART Statement." 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 'Summary Statistics and Control Limit Information'; proc shewhart data=detergnt; mchart weight*lot / outtable=dtable nochart; run;
The data set DTABLE is listed in Figure 35.8.
|
This data set contains one observation for each subgroup sample. The variables _SUBMED_ and _SUBN_ contain the subgroup medians and subgroup sample sizes. The variables _LCLM_ and _UCLM_ contain the lower and upper control limits, and the variable _MEAN_ contains the central line. The variables _VAR_ and LOT 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 DTABLE and display a median chart (not shown here) identical to the chart in Figure 35.2:
title 'Median Chart for Detergent Box Weight'; proc shewhart table=dtable; mchart weight*lot; 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 |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.