Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
IRCHART Statement

Saving Individual Measurements and Moving Ranges

See SHWIR1 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:

   title 'Individual Measurements and Moving Ranges for Diameters';
   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 34.2. Options such as OUTHISTORY= and NOCHART are specified after the slash (/) in the IRCHART statement. A complete list of options is presented in the "Syntax" section.

Figure 34.3 contains a listing of 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
6 83.5 3.1
7 73.8 9.7
8 83.5 9.7
9 75.0 8.5
10 76.8 1.8
11 70.5 6.3
12 80.3 9.8
13 82.4 2.1
14 79.4 3.0
15 86.4 7.0
16 90.5 4.1
17 77.7 12.8
18 82.5 4.8
19 79.9 2.6
20 83.2 3.3
Figure 34.3: The Data Set JETINFO

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


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" .

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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