Chapter Contents |
Previous |
Next |
MACHART Statement |
Other variables that can be read from a DATA= data set include
By default, the MACONTROL procedure reads all of the observations in a
DATA= data set. However, if the data set includes the variable
_PHASE_, you can read selected groups of observations (referred to
as phases) with the READPHASES= option
(for an example, see "Displaying Stratification in Phases"
).
For an example of a DATA= data set, see "Creating Moving Average Charts from Raw Data" .
proc macontrol data=parts limits=parms; machart gap*day; run;
The LIMITS= data set can be an OUTLIMITS= data set that was created in a previous run of the MACONTROL procedure. Such data sets always contain the variables required for a LIMITS= data set; see "OUTLIMITS= Data Set" . The LIMITS= data set can also be created directly using a DATA step.
When you create a LIMITS= data set, you must provide the variable _SPAN_, which specifies the number of terms to use in the moving average. In addition, note the following:
Some advantages of working with a LIMITS= data set are that
For an example, see "Reading Preestablished Control Limit Parameters" .
A HISTORY= data set used with the MACHART statement must contain the following:
The names of the subgroup mean, subgroup standard deviation, and subgroup sample size variables must be the process name concatenated with the suffix characters X, S, and N, respectively.
For example, consider the following statements:
proc macontrol history=cliphist; machart (gap diameter)*day / span=3; run;
The data set CLIPHIST must include the variables DAY, GAPX, GAPS, GAPN, DIAMTERX, DIAMTERS, and DIAMTERN.
Although a moving average variable (named by the process name suffixed with A) is saved in an OUTHISTORY= data set, it is not required in a HISTORY= data set, because the subgroup mean variable is sufficient to compute the moving averages.
Note that if you specify a process name that contains eight characters, the names of the summary variables must be formed from the first four characters and the last three characters of the process name, suffixed with the appropriate character.
Other variables that can be read from a HISTORY= data set include
By default, the MACONTROL procedure reads all the observations in a HISTORY= data set. However, if the HISTORY= data set includes the variable _PHASE_, you can read selected groups of observations (referred to as phases) by specifying the READPHASES= option (see "Displaying Stratification in Phases" for an example).
For an example of a HISTORY= data set, see "Creating Moving Average Charts from Subgroup Summary Data" .
The following table lists the variables required in a TABLE= data set used with the MACHART statement:
Variable | Description |
_LCLE_ | lower control limit for Moving Average |
_LIMITN_ | nominal sample size associated with the control limits |
_MEAN_ | process mean |
_SPAN_ | number of terms in the moving average |
subgroup-variable | values of the subgroup-variable |
_SUBN_ | subgroup sample size |
_SUBS_ | subgroup standard deviation |
_SUBX_ | subgroup mean |
_UCLA_ | upper control limit for moving average |
_UWMA_ | uniformly weighted moving average |
Other variables that can be read from a TABLE= data set include
For an example of a TABLE= data set, see "Saving Control Limit Parameters" .
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.