The syntax for the PROC ANOM statement is as follows:
The PROC ANOM statement starts the ANOM procedure and optionally identifies various data sets. The following options can appear in the PROC ANOM 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 ANOM charts produced as traditional graphics. Features provided in this data set are displayed on every chart produced in the current run of the ANOM procedure. This option is ignored if you are not producing traditional graphics.
names an input data set that contains group summary statistics, decision limits, and outlier values in "strung out" form, with more than one observation per group. Each observation corresponds to one feature of one group’s box-and-whisker plot. Typically, this data set is created as an OUTBOX= data set in a previous run of the ANOM procedure 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.
names an input data set that contains response values (typically, measurements or counts) as observations. Note that the DATA= data set may need sorting. If the values of the group-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 may contain more than one observation for each value of the group-variable. This happens, for example, when you produce a chart for means and ranges with the XCHART statement.
You cannot use a DATA= data set together with a SUMMARY= or a TABLE= data set. If you do not specify one of these three input data sets, the ANOM procedure 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.
specifies the graphics catalog for traditional graphics output from the ANOM procedure. This is useful if you want to save the output. This option is ignored if you are not producing traditional graphics.
names an input data set that contains group summary statistics. For example, you can read sample sizes, means, and standard deviations for the groups to create an ANOM chart. Typically, this data set is created as an OUTSUMMARY= data set in a previous run of the ANOM procedure, but it can also be created using a SAS summarization procedure such as PROC MEANS.
Note that the SUMMARY= data sets may need sorting. If the values of the group-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 SUMMARY= data set can contain only one observation for each value for the group-variable.
You cannot use a SUMMARY= data set with a DATA= or a TABLE= data set. If you do not specify one of these three input data sets, the ANOM procedure uses the most recently created data set as a DATA= data set. For more information, see the "SUMMARY= Data Set" subsection in the section for the chart statement you are using.
names an input data set that contains preestablished decision limits or the parameters from which decision limits can be computed. Each observation in a LIMITS= data set provides decision limit information for a response. Typically, this data set is created as an OUTLIMITS= data set in a previous run of the ANOM procedure.
If you omit the LIMITS= option, then decision limits are computed from the data in the DATA= or SUMMARY= 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.
names an input data set that contains group summary statistics and decision limits. Each observation in a TABLE= data set provides information for a particular group and response. Typically, this data set is created as an OUTTABLE= data set in a previous run of the ANOM procedure.
You cannot use a TABLE= data set with a DATA= or a SUMMARY= data set. If you do not specify one of these three input data sets, the ANOM procedure 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.