The SURVEYFREQ 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 with the PLOTS= option in the TABLES statement. To produce a weighted frequency plot or mosaic plot, you must specify the WTFREQPLOT or MOSAICPLOT plot-request in the PLOTS= option, or you must specify the PLOTS=ALL option. By default, PROC SURVEYFREQ produces all other plots that are associated with the analyses that you request in the TABLES statement. You can suppress default plots and request specific plots by using the PLOTS(ONLY)= option. See the description of the PLOTS= option for more information.

PROC SURVEYFREQ assigns a name to each graph that it creates with ODS Graphics. You can use these names to refer to the graphs. Table 94.10 lists the names of the graphs that PROC SURVEYFREQ generates together with their descriptions, their PLOTS= options (plot-requests), and the TABLES statement options that are required to produce the graphs.

Table 94.10: ODS Graphs Produced by PROC SURVEYFREQ

ODS Graph Name

Description

PLOTS= Option

TABLES Statement Option

KappaPlot

Kappa plot

KAPPAPLOT

AGREE or KAPPA

     

($h \times r \times r$ table)

MosaicPlot

Mosaic plot

MOSAICPLOT

Two-way or multiway table request

ORPlot

Odds ratio plot

ODDSRATIOPLOT

OR ($h \times 2 \times 2$ table)

RelRiskPlot

Relative risk plot

RELRISKPLOT

OR ($h \times 2 \times 2$ table)

RiskDiffPlot

Risk difference plot

RISKDIFFPLOT

RISK ($h \times 2 \times 2$ table)

WtFreqPlot

Weighted frequency plot

WTFREQPLOT

Any table request

WtKappaPlot

Weighted kappa plot

WTKAPPAPLOT

AGREE or WTKAPPA

     

($h \times r \times r$ table, r > 2)