IRCHART Statement: SHEWHART Procedure

Saving Individual Measurements and Moving Ranges

Note: See Individual Measurement and Moving Range Charts in the SAS/QC Sample Library.

In this example, the IRCHART statement is used to create an output data set containing individual measurements and moving ranges. The following statements read the diameter measurements from the data set Jets (see Creating Individual Measurements and Moving Range Charts) and create a data set named Jetinfo:

proc shewhart data=Jets;
   irchart Diam*Engine / outhistory = Jetinfo
                         nochart;
run;

The OUTHISTORY= option names the output data set, and the NOCHART option suppresses the display of the charts, which would be identical to those in Figure 17.26. Options such as OUTHISTORY= and NOCHART are specified after the slash (/) in the IRCHART statement. A complete list of options is presented in the section Syntax: IRCHART Statement.

Figure 17.27 contains a partial listing of Jetinfo.

Figure 17.27: The Data Set Jetinfo

Individual Measurements and Moving Ranges for Diameters

Engine Diam DiamR
1 78.4 .
2 80.1 1.7
3 84.4 4.3
4 79.1 5.3
5 80.4 1.3


The data set Jetinfo contains one observation for each engine, and it includes three variables.

  • Engine contains the subgroup index.

  • Diam contains the individual measurements.

  • DiamR contains the moving ranges.

Note that the variable containing the moving ranges is named by adding the suffix character R to the process Diam specified in the IRCHART statement.

For more information, see OUTHISTORY= Data Set.