Note: See Saving Group Proportions Using ANOM PCHART in the SAS/QC Sample Library.
In this example, the PCHART statement is used to create a summary data set that can later be read by the ANOM procedure (as
in the preceding example). The following statements read the data set CSection
(see Creating ANOM Charts for Proportions from Group Counts) and create a summary data set named CSummary
:
proc anom data=Csection; pchart Csections*ID / groupn = Total outsummary = CSummary nochart; run;
The OUTSUMMARY= option names the output data set, and the NOCHART option suppresses the display of the chart, which would
be identical to the chart in FigureĀ 4.11. FigureĀ 4.14 contains a partial listing of CSummary
.
There are three variables in the data set CSummary
:
ID
identifies the groups.
CSectionsP
contains the group proportions.
CSectionsN
contains the group sample sizes.
Note that the variables containing the group proportions and group sample sizes are named by adding the suffix characters
P and N to the response CSections
specified in the PCHART statement. In other words, the variable naming convention for OUTSUMMARY= data sets is the same as
that for SUMMARY= data sets. For more information, see OUTSUMMARY= Data Set.