PCHART Statement: ANOM Procedure

Saving Group Proportions

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.

Figure 4.14: The Data Set CSummary

Group Proportions and Decision Limit Information

ID CsectionsP CsectionsN
1A 0.16251 923
1K 0.15101 298
1B 0.20000 170
1D 0.13636 132
3I 0.18868 106
3M 0.11429 105
1E 0.12987 77
1N 0.25676 74
1Q 0.10145 69
3H 0.16923 65



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.