Chapter Contents 
Previous 
Next 
IRCHART Statement 
See SHWIR1 in the SAS/QC Sample Library 
You can save the control limits for individual measurements and moving range charts 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 diameter measurements from the data set JETS (see "Creating Individual Measurements and Moving Range Charts" ) and save the control limits displayed in Figure 34.2 in a data set named JETLIM:
title 'Control Limits for Diameters'; proc shewhart data=jets; irchart diam*engine / outlimits = jetlim 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 JETLIM is listed in Figure 34.5.
The data set JETLIM contains one observation with the limits for process DIAM. The variables _LCLI_ and _UCLI_ contain the control limits for the individual measurements, and the variable _MEAN_ contains the central line. The variables _LCLR_ and _UCLR_ contain the control limits for the moving ranges, and the variable _R_ 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 number of consecutive measurements used to compute the moving ranges, 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 subgroupvariable. The variable _TYPE_ is a bookkeeping variable that indicates whether the values of _MEAN_ and _STDDEV_ are estimates or standard values. 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=jets; irchart diam*engine / outtable=jtable nochart; run;

This data set contains one observation for each subgroup. The variables _SUBI_ and _SUBR_ contain the individual measurements and moving ranges. The variables _LCLI_ and _UCLI_ contain the lower and upper control limits for the individual measurements chart, and the variables _LCLR_ and _UCLR_ contain the lower and upper control limits for the moving range chart. The variable _MEAN_ contains the central line of the individual measurements chart, and the variable _R_ contains the central line of the moving range chart. The variables _VAR_ and ENGINE contain the process name and values of the subgroupvariable, 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 JTABLE and display
charts (not shown here)
identical to those in Figure 34.2:
title 'Individual Measurements and Moving Range Control Charts'; title2 'Jet Engine Diameters (cm)'; proc shewhart table=jtable; irchart diam*engine; 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.