Chapter Contents |
Previous |
Next |
XCHART Statement |
See CUSTWOS1 in the SAS/QC Sample Library |
In this example, the CUSUM procedure is used to save summary statistics and cusums in an output data set. The summary statistics can subsequently be analyzed by the CUSUM procedure (as in the preceding example). The following statements read the raw measurements from the data set OIL (see "Creating a V-Mask Cusum Chart from Raw Data" ) and create a summary data set named OILHIST:
proc cusum data=oil; xchart weight*hour / nochart outhistory = oilhist mu0 = 8.100 /* target mean */ sigma0 = 0.050 /* known standard deviation */ delta = 1 /* shift to be detected */ alpha = 0.10 /* Type 1 error probability */ vaxis = -5 to 3 ; label weight = 'Cumulative Sum'; run; proc print data=oilhist; format weightx weights weightc 6.4 ; run;
The OUTHISTORY= option names the SAS data set containing the summary information, and the NOCHART option suppresses the display of the charts (since the purpose here is simply to create an output data set). Figure 12.4 lists the data set OILHIST.
There are five variables in the data set.
Note that the variables in the OUTHISTORY= data set are named by adding the suffix characters X, S, N, and C to the process WEIGHT specified in the XCHART statement. In other words, the variable naming convention for OUTHISTORY= data sets is the same as for HISTORY= data sets.
For more information, see "OUTHISTORY= Data Set" .
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.