The following entries provide detailed descriptions of options in the PROC SHEWHART statement.
specifies an input data set containing Annotate variables as described in SAS/GRAPH: Reference. You can use this data set to add features to traditional graphics. Use this data set only when creating traditional graphics. This option is ignored if ODS Graphics is enabled or if you specify the LINEPRINTER option. Features provided in this data set are displayed on every chart produced in the current run of PROC SHEWHART.
specifies an input data set that contains annotate variables. You can use this data set to add features to the secondary chart in statements that produce two charts (the IRCHART, MRCHART, XRCHART, and XSCHART statements and, when you specify the TRENDVAR= option, the BOXCHART, MCHART, and XCHART statements). The restrictions and features are the same as those for the ANNOTATE= option.
names an input data set that contains subgroup summary statistics, control limits, and outlier values in "strung out" form, with more than one observation per subgroup. Each observation corresponds to one feature of one subgroup’s box-and-whisker plot. Typically, this data set is created as an OUTBOX= data set in a previous run of PROC SHEWHART with a BOXCHART statement. The BOX= data set is the only kind of summary data set you can use to produce schematic box-and-whisker plots. The BOXCHART statement is the only chart statement you can use with a BOX= input data set.
You cannot use a BOX= data set together with a DATA= , HISTORY= , or TABLE= data set. If you do not specify one of these four input data sets, PROC SHEWHART uses the most recently created data set as a DATA= data set.
names an input data set that contains raw data as observations. Note that the DATA= data set might need sorting. If the values of the subgroup-variable are numeric, you must sort the data set so that these values are in increasing order (within BY groups). Use PROC SORT if the data are not already sorted.
The DATA= data set can contain more than one observation for each value of the subgroup-variable. This happens, for example, when you produce a control chart for means and ranges with the XRCHART statement.
You cannot use a DATA= data set together with a BOX= , HISTORY= , or TABLE= data set. If you do not specify one of these four input data sets, PROC SHEWHART uses the most recently created data set as a DATA= data set. For more information, see the "DATA= Data Set" subsection in the section for the chart statement you are using.
defines characters used for features on legacy line printer charts, where index is a list of numbers ranging from 1 to 17, and string is a character or hexadecimal string. The index identifies which features are controlled with the string characters, as listed in Table 18.3. If you specify the FORMCHAR= option and omit the index, the string controls all 17 features.
Table 18.3: FORMCHAR= Features
Value of index |
Description of Character |
Chart Feature |
---|---|---|
1 |
Vertical bar |
Frame |
2 |
Horizontal bar |
Frame, central line |
3 |
Box character (upper left) |
Frame |
4 |
Box character (upper middle) |
Serifs, tick (horizontal axis) |
5 |
Box character (upper right) |
Frame |
6 |
Box character (middle left) |
Not used |
7 |
Box character (middle middle) |
Serifs |
8 |
Box character (middle right) |
Tick (vertical axis) |
9 |
Box character (lower left) |
Frame |
10 |
Box character (lower middle) |
Serifs |
11 |
Box character (lower right) |
Frame |
12 |
Vertical bar |
Control limits |
13 |
Horizontal bar |
Control limits |
14 |
Box character (upper right) |
Control limits |
15 |
Box character (lower left) |
Control limits |
16 |
Box character (lower right) |
Control limits |
17 |
Box character (upper left) |
Control limits |
Not all printers can produce all the characters in the preceding list. By default, the form character list specified with the SAS system FORMCHAR= option is used; otherwise, the default is FORMCHAR='|—-|+|—|====='. If you print to a PC screen or if your device supports the ASCII symbol set (1 or 2), the following is recommended:
formchar='B3,C4,DA,C2,BF,C3,C5,B4,C0,C1,D9,BA,CD,BB,C8,BC,D9'X
Note that the FORMCHAR= option in the PROC SHEWHART statement enables you to override temporarily the values of the SAS system option of the same name. The values of the SAS system option are not altered by using the FORMCHAR= option in the PROC SHEWHART statement.
specifies the graphics catalog for traditional graphics output from PROC SHEWHART. This is useful if you want to save the output. The GOUT= option is used only when creating traditional graphics. This option is ignored if ODS Graphics is enabled or if you specify the LINEPRINTER option.
names an input data set that contains subgroup summary statistics. For example, you can read sample sizes, means, and ranges for the subgroups to create and R charts. Typically, this data set is created as an OUTHISTORY= data set in a previous run of PROC SHEWHART, but it can also be created using a SAS summarization procedure such as the MEANS procedure.
Note that the HISTORY= data sets might need sorting. If the values of the subgroup-variable are numeric, you need to sort the data set so that these values are in increasing order (within BY groups). Use PROC SORT if the data are not already sorted. The HISTORY= data set can contain only one observation for each value for the subgroup-variable.
You cannot use a HISTORY= data set together with a BOX= , DATA= , or TABLE= data set. If you do not specify one of these four input data sets, PROC SHEWHART uses the most recently created data set as a DATA= data set. For more information, see the "HISTORY= Data Set" subsection in the section for the chart statement you are using.
names an input data set that contains preestablished control limits or the parameters from which control limits can be computed. Each observation in a LIMITS= data set provides control limit information for a process. Typically, this data set is created as an OUTLIMITS= data set in a previous run of PROC SHEWHART.
If you omit the LIMITS= option, then control limits are computed from the data in the DATA= or HISTORY= input data sets or read from the BOX= or TABLE= input data sets. For details about the variables needed in a LIMITS= data set, see the "LIMITS= Data Set" subsection in the section for the chart statement you are using.
requests that legacy line printer charts be produced. By default, PROC SHEWHART produces ODS Graphics output if ODS Graphics is enabled and traditional graphics output if ODS Graphics is disabled and SAS/GRAPH is licensed.
names an input data set that contains subgroup summary statistics and control limits. Each observation in a TABLE= data set provides information for a particular subgroup and process. Typically, this data set is created as an OUTTABLE= data set in a previous run of PROC SHEWHART.
You cannot use a TABLE= data set together with a BOX= , DATA= , or HISTORY= data set. If you do not specify one of these four input data sets, PROC SHEWHART uses the most recently created data set as a DATA= data set. For more information, see the "TABLE= Data Set" subsection in the section for the chart statement that you are using.
names an input data set for creating links associated with tests for special causes when traditional graphics output is directed
into HTML. A TESTHTML= data set contains variables _TEST_
, _CHART_
, and _URL_
. _TEST_
and _CHART_
are numeric variables identifying a test for special causes (1-8) and the primary or secondary chart (1 or 2). _URL_
is a character variable containing the HTML syntax to create links associated with subgroups for which the given test on
the given chart is positive. This option is ignored if you are not producing traditional graphics. See the section Interactive Control Charts: SHEWHART Procedure for more information.
names an input data set for associating URLs with tests for special causes when ODS Graphics output is directed into HTML.
A TESTURLS= data set contains variables _TEST_
, _CHART_
, and _URL_
. _TEST_
and _CHART_
are numeric variables identifying a test for special causes (1-8) and the primary or secondary chart (1 or 2). _URL_
is a character variable containing the URL to be associated with subgroups for which the given test on the given chart is
positive. This option is ignored when ODS Graphics is disabled. See the section Interactive Control Charts: SHEWHART Procedure for more information.