The ANOM Procedure |
Syntax |
The basic syntax for the PCHART statement is as follows:
The general form of this syntax is as follows:
You can use any number of PCHART statements in the ANOM procedure. The components of the PCHART statement are described as follows.
identify one or more responses to be analyzed. The specification of response depends on the input data set specified in the PROC ANOM statement.
If response counts are read from a DATA= data set, response must be the name of the variable containing the counts. For an example, see Creating ANOM Charts for Proportions from Group Summary Data.
If response proportions are read from a SUMMARY= data set, response must be the common prefix of the summary variables in the SUMMARY= data set. For an example, see Creating ANOM Charts for Proportions from Group Summary Data.
If response proportions and decision limits are read from a TABLE= data set, response must be the value of the variable _VAR_ in the TABLE= data set. For an example, see Saving Decision Limits.
A response is required. If you specify more than one response, enclose the list in parentheses. For example, the following statements request distinct ANOM charts for the responses Rejects and Reworks:
proc anom data=Measures; pchart (Rejects Reworks)*Sample / groupn=100; run;
Note that when data are read from a DATA= data set, the GROUPN= option, which specifies group sample sizes, is required.
is the variable that identifies groups in the data. The group-variable is required. In the preceding PCHART statement, Sample is the group variable.
are optional variables that identify sets of consecutive groups on the chart. The blocks are labeled in a legend, and each block-variable provides one level of labels in the legend.
is an optional variable whose levels (unique values) determine the symbol marker used to plot proportions. Distinct symbol markers are displayed for points corresponding to the various levels of the symbol-variable. You can specify the symbol markers with SYMBOL statements.
control the analysis, enhance the appearance of the chart, save results in data sets, and so on. The section Summary of Options lists all options by function.
Copyright © SAS Institute, Inc. All Rights Reserved.