The SURVEYMEANS Procedure

ODS Graphics

Statistical procedures use ODS Graphics to create graphs as part of their output. ODS Graphics is described in detail in Chapter 21: Statistical Graphics Using ODS.

Before you create graphs, ODS Graphics must be enabled (for example, by specifying the ODS GRAPHICS ON statement). For more information about enabling and disabling ODS Graphics, see the section Enabling and Disabling ODS Graphics in Chapter 21: Statistical Graphics Using ODS.

The overall appearance of graphs is controlled by ODS styles. Styles and other aspects of using ODS Graphics are discussed in the section A Primer on ODS Statistical Graphics in Chapter 21: Statistical Graphics Using ODS.

When ODS Graphics is enabled, you can request specific plots by specifying the PLOTS= option in the PROC SURVEYMEANS statement.

PROC SURVEYMEANS provides a summary plot that includes a box plot and a histogram plot for continuous analytical variables. For categorical variables, plots are available in PROC SURVEYFREQ.

By default, PROC SURVEYMEANS produces summary plots. When you specify a DOMAIN statement, PROC SURVEYMEANS also produce domain plots by default. You can suppress default plots and request specific plots by specifying the PLOTS(ONLY)= option. For more information, see the description of the PLOTS= option.

PROC SURVEYMEANS assigns a name to each graph that it creates using ODS Graphics. You can use these names to refer to the graphs. Table 99.5 lists the names of the graphs that PROC SURVEYMEANS generates, together with their descriptions and the PLOTS= options (plot-requests) and statements that produce them.

Table 99.5: ODS Graphs Produced by PROC SURVEYMEANS

ODS Graph Name

Description

PLOTS= Option

Statement

BoxPlot

Box plots

BOXPLOT

PROC

DomainPlot

Box plots for domain statistics for each domain definition

DOMAIN

DOMAIN

Histogram

Histograms with overlaid kernel densities and normal densities

HISTOGRAM

PROC

SummaryPanel

Histograms with overlaid kernel densities and normal densities, and box plots in a single panel

SUMMARY

PROC