Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
NPCHART Statement

Output Data Sets

OUTLIMITS= Data Set

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

Table 37.21: OUTLIMITS= Data Set
Variable Description
_ALPHA_probability (\alpha) of exceeding limits
_INDEX_optional identifier for the control limits specified with the OUTINDEX= option
_LCLNP_lower control limit for number of nonconforming items
_LIMITN_sample size associated with the control limits
_NP_average number of nonconforming items (n_i\bar{p} or nip0)
_P_average proportion of nonconforming items (\bar{p} or p0)
_SIGMAS_multiple (k) of standard error of Xi
_SUBGRP_subgroup-variable specified in the NPCHART statement
_TYPE_type (standard or estimate) of _NP_
_UCLNP_upper control limit for number of nonconforming items
_VAR_process specified in the NPCHART statement

Notes:

  1. If the control limits vary with subgroup sample size, the special missing value V is assigned to the variables _LIMITN_, _LCLNP_, _UCLNP_, _NP_, and _SIGMAS_.
  2. If the limits are defined in terms of a multiple k of the standard error of Xi, the value of _ALPHA_ is computed as \alpha = P\{X_i \lt {\_LCLNP\_}\}
+ P\{X_i \gt {\_UCLNP\_}\}, using the incomplete beta function.
  3. If the limits are probability limits, the value of _SIGMAS_ is computed as k=({\_UCLNP\_} - {\_NP\_})/
\sqrt{{\_NP\_}(1-{\_NP\_}) /{\_LIMITN\_}}.If _LIMITN_ has the special missing value V, this value is assigned to _SIGMAS_.
  4. Optional BY variables are saved in the OUTLIMITS= data set.

The OUTLIMITS= data set contains one observation for each process specified in the NPCHART statement. For an example, see "Saving Control Limits" .

OUTHISTORY= Data Set

The OUTHISTORY= data set saves subgroup summary statistics. The following variables are 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 REJECTED to REJETED before adding the suffix.

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

   proc shewhart data=input;
      npchart (rework rejected)*batch / outhistory=summary
                                        subgroupn =30;
   run;

The data set SUMMARY contains variables named BATCH, REWORKP, REWORKN, REJETEDP, and REJETEDN.

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


For an example of an OUTHISTORY= data set, see "Saving Proportions of Nonconforming Items" .

OUTTABLE= Data Set

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

Variable Description
_ALPHA_probability (\alpha) of exceeding control limits
_EXLIM_control limit exceeded on np chart
_LCLNP_lower control limit for number of nonconforming items
_LIMITN_nominal sample size associated with the control limits
_SIGMAS_multiple (k) of the standard error of Xi associated with the control limits
subgroupvalues of the subgroup variable
_SUBNP_subgroup number of nonconforming items
_SUBN_subgroup sample size
_TESTS_tests for special causes signaled on np chart
_UCLNP_upper control limit for number of nonconforming items
_VAR_process specified in the NPCHART 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 variable _TESTS_ is saved if you specify the TESTS= option. The k th character of a value of _TESTS_ is k if Test k is positive at that subgroup. For example, if you request the first four tests (the tests appropriate for np charts) and Tests 2 and 4 are positive for a given subgroup, the value of _TESTS_ has a 2 for the second character, a 4 for the fourth character, and blanks for the other six characters.
  3. The variables _VAR_, _EXLIM_, and _TESTS_ are character variables of length 8. The variable _PHASE_ is a character variable of length 16. All other variables are numeric.

For an example, see "Saving Control Limits" .

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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