Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
XRCHART Statement

Creating Charts for Means and Ranges from Raw Data

See SHWXR1 in the SAS/QC Sample Library

In the manufacture of silicon wafers, batches of five wafers are sampled, and their diameters are measured in millimeters. The following statements create a SAS data set named WAFERS, which contains the measurements for 25 batches:

   data wafers;
      input batch @;
      do i=1 to 5;
         input diamtr @;
         output;
         end;
      drop i;
   datalines;
    1  35.00 34.99 34.99 34.98 35.00
    2  35.01 34.99 34.99 34.98 35.00
    3  34.99 35.00 35.00 35.00 35.00
    4  35.01 35.00 34.99 34.99 35.00
    5  35.00 34.99 34.98 34.99 35.00
    6  34.99 34.99 35.00 35.00 35.00
    7  35.01 34.98 35.00 35.00 34.99
    8  35.00 35.00 34.99 34.98 34.99
    9  34.99 34.98 34.98 35.01 35.00
   10  34.99 35.00 35.01 34.99 35.01
   11  35.01 35.00 35.00 34.98 34.99
   12  34.99 34.99 35.00 34.98 35.01
   13  35.01 34.99 34.98 34.99 34.99
   14  35.00 35.00 34.99 35.01 34.99
   15  34.98 34.99 34.99 34.98 35.00
   16  34.99 35.00 35.00 35.01 35.00
   17  34.98 34.98 34.99 34.99 34.98
   18  35.01 35.02 35.00 34.98 35.00
   19  34.99 34.98 35.00 34.99 34.98
   20  34.99 35.00 35.00 34.99 34.99
   21  35.00 34.99 34.99 34.98 35.00
   22  35.00 35.00 35.01 35.00 35.00
   23  35.02 35.00 34.98 35.02 35.00
   24  35.00 35.00 34.99 35.01 34.98
   25  34.99 34.99 34.99 35.00 35.00
   ;

The following statements use the PRINT procedure to list the data set WAFERS. The listing is shown in Figure 43.1.

   title 'The Data Set WAFERS';
   proc print data=wafers noobs;
   run;

 
The Data Set WAFERS

batch diamtr
1 35.00
1 34.99
1 34.99
1 34.98
1 35.00
2 35.01
2 34.99
2 34.99
2 34.98
2 35.00
3 34.99
3 35.00
3 35.00
3 35.00
3 35.00
4 35.01
4 35.00
4 34.99
4 34.99
4 35.00
5 35.00
5 34.99
5 34.98
5 34.99
5 35.00
6 34.99
6 34.99
6 35.00
6 35.00
6 35.00
7 35.01
7 34.98
7 35.00
7 35.00
7 34.99
8 35.00
8 35.00
8 34.99
8 34.98
8 34.99
9 34.99
9 34.98
9 34.98
9 35.01
9 35.00
10 34.99
10 35.00
10 35.01
10 34.99
10 35.01
11 35.01
11 35.00
11 35.00
11 34.98
11 34.99
12 34.99
12 34.99
12 35.00
12 34.98
12 35.01
13 35.01
13 34.99
13 34.98
13 34.99
13 34.99
14 35.00
14 35.00
14 34.99
14 35.01
14 34.99
15 34.98
15 34.99
15 34.99
15 34.98
15 35.00
16 34.99
16 35.00
16 35.00
16 35.01
16 35.00
17 34.98
17 34.98
17 34.99
17 34.99
17 34.98
18 35.01
18 35.02
18 35.00
18 34.98
18 35.00
19 34.99
19 34.98
19 35.00
19 34.99
19 34.98
20 34.99
20 35.00
20 35.00
20 34.99
20 34.99
21 35.00
21 34.99
21 34.99
21 34.98
21 35.00
22 35.00
22 35.00
22 35.01
22 35.00
22 35.00
23 35.02
23 35.00
23 34.98
23 35.02
23 35.00
24 35.00
24 35.00
24 34.99
24 35.01
24 34.98
25 34.99
25 34.99
25 34.99
25 35.00
25 35.00
Figure 43.1: Listing of the Data Set WAFERS

The data set WAFERS is said to be in "strung-out" form since each observation contains the batch number and diameter measurement for a single wafer. The first five observations contain the diameters for the first batch, the second five observations contain the diameters for the second batch, and so on. Because the variable BATCH classifies the observations into rational subgroups, it is referred to as the subgroup-variable. The variable DIAMTR contains the wafer diameter measurements and is referred to as the process variable (or process for short).

You can use \bar{X} and R charts to determine whether the manufacturing process is in control. The following statements create the \bar{X} and R charts shown in Figure 43.2:

   title 'Mean and Range Charts for Diameters';
   symbol v=dot c=salmon;
   proc shewhart data=wafers;
      xrchart diamtr*batch / cframe   = bigb
                             cinfill  = ywh
                             cconnect = salmon
                             coutfill = yellow;
   run;

This example illustrates the basic form of the XRCHART statement. After the keyword XRCHART, which specifies the type of control chart to display, you specify the process to analyze (in this case, DIAMTR) followed by an asterisk and the subgroup-variable (BATCH).

The input data set is specified with the DATA= option in the PROC SHEWHART statement.

If you use a graphics device, the SYMBOL statement specifies the symbol to plot the points. For more information on the SYMBOL statement, refer to SAS/GRAPH Software: Reference.

xrgs2.gif (6222 bytes)

Figure 43.2: \bar{X} and R Charts for Wafer Diameter Data

Each point on the \bar{X} chart represents the average (mean) of the measurements for a particular batch. For instance, the mean plotted for the first batch is

[(35.00 + 34.99 + 34.99 + 34.98 + 35.00)/5] = 34.992
Each point on the R chart represents the range of the measurements for a particular batch. For instance, the range plotted for the first batch is 35.00 - 34.98 = 0.02.

By default, the control limits shown are 3\sigma limits estimated from the data; the formulas for the limits are given in Table 43.22. You can also read control limits from an input data set; see "Reading Preestablished Control Limits" .

Since all the points lie within the control limits, it can be concluded that the process is in statistical control. For computational details, see "Constructing Charts for Means and Ranges" . For more details on reading raw data, see "DATA= Data Set" .

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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