The SHEWHART Procedure |
The OUTLIMITS= data set saves control limits and control limit parameters. The following variables are saved.
Variable |
Description |
---|---|
_ALPHA_ |
probability () of exceeding limits |
_CP_ |
capability index |
_CPK_ |
capability index |
_CPL_ |
capability index |
_CPM_ |
capability index |
_CPU_ |
capability index |
_INDEX_ |
optional identifier for the control limits specified with the OUTINDEX= option |
_LCLR_ |
lower control limit for subgroup range |
_LCLX_ |
lower control limit for subgroup mean |
_LIMITN_ |
nominal sample size associated with the control limits |
_LSL_ |
lower specification limit |
_MEAN_ |
process mean ( or ) |
_R_ |
value of central line on chart |
_SIGMAS_ |
multiple () of standard error of or |
_STDDEV_ |
process standard deviation ( or ) |
_SUBGRP_ |
subgroup-variable specified in the XRCHART statement |
_TARGET_ |
target value |
_TYPE_ |
type (estimate or standard value) of _MEAN_ and _STDDEV_ |
_UCLR_ |
upper control limit for subgroup range |
_UCLX_ |
upper control limit for subgroup mean |
_USL_ |
upper specification limit |
_VAR_ |
process specified in the XRCHART statement |
Notes:
If the control limits vary with subgroup sample size, the special missing value V is assigned to the variables _LIMITN_, _LCLX_, _UCLX_, _LCLR_, _R_, and _UCLR_.
If the limits are defined in terms of a multiple of the standard errors of and , the value of _ALPHA_ is computed as , where is the standard normal distribution function.
If the limits are probability limits, the value of _SIGMAS_ is computed as , where is the inverse standard normal distribution function.
The variables _CP_, _CPK_, _CPL_, _CPU_, _LSL_, and _USL_ are included only if you provide specification limits with the LSL= and USL= options. The variables _CPM_ and _TARGET_ are included if, in addition, you provide a target value with the TARGET= option. See Capability Indices for computational details.
Optional BY variables are saved in the OUTLIMITS= data set.
The OUTLIMITS= data set contains one observation for each process specified in the XRCHART statement. For an example, see Saving Control Limits.
The OUTHISTORY= data set saves subgroup summary statistics. The following variables are saved:
the subgroup-variable
a subgroup mean variable named by process suffixed with X
a subgroup range variable named by process suffixed with R
a subgroup sample size variable named by process suffixed with N
Given a process name containing 32 characters, the procedure first shortens the name to its first 16 characters and its last 15 characters, and then it adds the suffix.
Variables containing subgroup means, ranges, and sample sizes are created for each process specified in the XRCHART statement. For example, consider the following statements:
proc shewhart data=Steel; xrchart (Width Diameter)*Lot / outhistory=Summary; run;
The data set Summary contains variables named Lot, WidthX, WidthR, WidthN, DiameterX, DiameterR, and DiameterN.
Additionally, the following variables, if specified, are included:
BY variables
block-variables
symbol-variable
ID variables
_PHASE_ (if the OUTPHASE= option is specified)
For an example of an OUTHISTORY= data set, see Saving Summary Statistics.
The OUTTABLE= data set saves subgroup summary statistics, control limits, and related information. The following variables are saved:
Variable |
Description |
---|---|
_ALPHA_ |
probability () of exceeding control limits |
_EXLIM_ |
control limit exceeded on chart |
_EXLIMR_ |
control limit exceeded on chart |
_LCLR_ |
lower control limit for range |
_LCLX_ |
lower control limit for mean |
_LIMITN_ |
nominal sample size associated with the control limits |
_MEAN_ |
process mean |
_R_ |
average range |
_SIGMAS_ |
multiple (k) of the standard error associated with control limits |
subgroup |
values of the subgroup variable |
_SUBN_ |
subgroup sample size |
_SUBR_ |
subgroup range |
_SUBX_ |
subgroup mean |
_TESTS_ |
tests for special causes signaled on chart |
_TESTS2_ |
tests for special causes signaled on chart |
_UCLR_ |
upper control limit for range |
_UCLX_ |
upper control limit for mean |
_VAR_ |
process specified in the XRCHART statement |
In addition, the following variables, if specified, are included:
BY variables
block-variables
symbol-variable
ID variables
_PHASE_ (if the READPHASES= option is specified)
Notes:
Either the variable _ALPHA_ or the variable _SIGMAS_ is saved, depending on how the control limits are defined (with the ALPHA= or SIGMAS= options, respectively, or with the corresponding variables in a LIMITS= data set).
The variable _TESTS_ is saved if you specify the TESTS= option. The th character of a value of _TESTS_ is if Test is positive at that subgroup. For example, if you request all eight tests and Tests 2 and 8 are positive for a given subgroup, the value of _TESTS_ has a 2 for the second character, an 8 for the eighth character, and blanks for the other six characters.
The variable _TESTS2_ is saved if you specify the TESTS2= option.
The variables _EXLIM_, _EXLIMR_, _TESTS_, and _TESTS2_ are character variables of length 8. The variable _PHASE_ is a character variable of length 48. The variable _VAR_ is a character variable whose length is no greater than 32. All other variables are numeric.
For an example, see Saving Control Limits.
Copyright © SAS Institute, Inc. All Rights Reserved.