Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
MACHART Statement

Output Data Sets

OUTLIMITS= Data Set

The OUTLIMITS= data set saves the control limit parameters. The following variables can be saved:

Variable Description
_ALPHA_probability (\alpha) of exceeding limits
_INDEX_optional identifier for the control limits specified with the OUTINDEX= option
_LIMITN_sample size associated with the control limits
_MEAN_process mean (\overline{\overline{X}} or \mu_{0})
_SIGMAS_multiple (k) of standard error of Ai
_SPAN_number of terms in the moving average
_STDDEV_process standard deviation (\hat{\sigma} or \sigma_{0})
_SUBGRP_subgroup-variable specified in the MACHART statement
_TYPE_type (estimate or standard value) of _MEAN_ and _STDDEV_
_VAR_process specified in the MACHART statement

The OUTLIMITS= data set does not contain the control limits; instead, it contains control limit parameters that can be used to recompute the control limits.

Notes:

  1. If the control limits vary with subgroup sample size, the special missing value V is assigned to the variable _LIMITN_.
  2. If the limits are defined in terms of a multiple k of the standard error of Ai, the value of _ALPHA_ is computed as \alpha=2(1-\Phi(k)), where \Phi(\cdot) is the standard normal distribution function.
  3. If the limits are probability limits, the value of _SIGMAS_ is computed as k=\Phi^{-1}(1-\alpha/2), where \Phi^{-1} is the inverse standard normal distribution function.
  4. Optional BY variables are saved in the OUTLIMITS= data set.

The OUTLIMITS= data set contains one observation for each process specified in the MACHART statement.

You can use OUTLIMITS= data sets

For an example of an OUTLIMITS= data set, see "Saving Control Limit Parameters" .

OUTHISTORY= Data Set

The OUTHISTORY= data set saves subgroup summary statistics. The following variables can be saved:

Given a process name that contains eight characters, the procedure first shortens the name to its first four characters and its last three characters, and then it adds the suffix. For example, the procedure shortens the process DIAMETER to DIAMTER before adding the suffix.

Subgroup summary variables are created for each process specified in the MACHART statement. For example, consider the following statements:

   proc macontrol data=clips;
      machart (gap yldstren)*day / span      =3
                                   outhistory=cliphist;
   run;

The data set CLIPHIST would contain nine variables named DAY, GAPX, GAPS, GAPA, GAPN, YLDSRENX, YLDSRENS, YLDSRENA, and YLDSRENN.

Additionally, the following variables, if specified, are included:

For an example of an OUTHISTORY= data set, see "Saving Summary Statistics" .

OUTTABLE= Data Set

The OUTTABLE= data set saves subgroup summary statistics, control limits, and related information. The following variables can be saved:

Variable Description
_ALPHA_probability (\alpha) of exceeding control limits
_EXLIM_control limit exceeded on moving average chart
_LCLA_lower control limit for moving average
_LIMITN_nominal sample size associated with the control limits
_MEAN_process mean
_SIGMAS_multiple (k) of the standard error associated with control limits
_SPAN_number of terms in the moving average
subgroupvalues 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
_VAR_process specified in MACHART statement

In addition, the following variables, if specified, are included:

Notes:

  1. 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).
  2. The variables _VAR_ and _EXLIM_ are character variables of length 8. The variable _PHASE_ is a character variable of length 16. All other variables are numeric.

For an example of an OUTTABLE= data set, see "Saving Control Limit Parameters" .

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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