Chapter Contents |
Previous |
Next |
XCHART Statement |
See CUSONES1 in the SAS/QC Sample Library |
This example is a continuation of the previous example that illustrates how to save cusum scheme parameters in a data set specified with the OUTLIMITS= option. This enables you to apply the parameters to future data or to subsequently modify the parameters with a DATA step program.
proc cusum data=cans lineprinter; xchart weight*hour / mu0 = 8.100 /* target mean */ sigma0 = 0.050 /* known standard deviation */ delta = 1 /* shift to be detected */ h = 3 /* decision interval */ k = 0.5 /* reference value */ scheme = onesided /* one-sided scheme */ outlimits = cusparm; label weight = 'Cusum of Weight'; proc print data=cusparm; run;
The chart, shown in Figure 12.9, is similar to the one in Figure 12.5 but is created for output on a line printer since the LINEPRINTER option is included in the PROC CUSUM statement. *
The OUTLIMITS= data set is listed in Figure 12.10.
|
The data set contains one observation with the parameters for process WEIGHT. The variables _TYPE_, _H_, _K_, _MU0_, _DELTA_, and _STDDEV_ save the parameters specified with the options SCHEME=, H=, K=, MU0=, DELTA=, and SIGMA0=, respectively. The variable _MEAN_ saves an estimate of the process mean, and the variable _LIMITN_ saves the nominal sample size. The variables _ARLIN_ and _ARLOUT_ save the average run lengths for and for .
The variables _VAR_ and _SUBGRP_ save the process and subgroup-variable. The variable _TYPE_ is a bookkeeping variable that indicates whether the value of _STDDEV_ is an estimate or a standard value.
For more information, see "OUTLIMITS= Data Set" .
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.