BOXCHART Statement: ANOM Procedure

Saving Summary Statistics for Groups

Note: See Saving Summary Statistics for Groups in the SAS/QC Sample Library.

In this example, the BOXCHART statement is used to create a data set containing group summary statistics that can be read later by the ANOM procedure (as in the preceding example). The following statements read measurements from the data set LabelDeviations and create a summary data set named LabelSummary:

proc anom data=LabelDeviations;
   boxchart Deviation*Position / outsummary=LabelSummary
                                 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 Figure 4.3.

Figure 4.6 contains a listing of LabelSummary.

Figure 4.6: The Summary Data Set LabelSummary

The Data Set LabelSummary

Position DeviationL Deviation1 DeviationX DeviationM Deviation3 DeviationH DeviationS DeviationN
1 -0.06466 -0.03623 -0.022342 -0.026195 -0.00163 0.00944 0.022805 10
2 -0.03323 -0.02014 0.016241 0.020420 0.04378 0.05641 0.033478 10
3 -0.04404 -0.01394 0.006011 0.005680 0.02849 0.04855 0.028847 10
4 0.03620 0.05298 0.064729 0.060315 0.07551 0.10729 0.021492 10
5 -0.04640 -0.00741 0.008121 0.007625 0.03021 0.03736 0.025920 10
6 -0.03839 -0.02845 -0.012812 -0.009495 0.00167 0.00710 0.015974 10


There are nine variables in the data set LabelSummary.

  • Position identifies the group.

  • DeviationL contains the group minimums.

  • Deviation1 contains the first quartile for each group.

  • DeviationX contains the group means.

  • DeviationM contains the group medians.

  • Deviation3 contains the third quartile for each group.

  • DeviationH contains the group maximums.

  • DeviationS contains the group standard deviations.

  • DeviationN contains the group sizes.

Note that the summary statistic variables are named by adding the suffix characters L, 1, X, M, 3, H, S, and N to the response Deviation specified in the BOXCHART 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.