The BOXPLOT Procedure

PROC BOXPLOT Statement

The PROC BOXPLOT statement invokes the BOXPLOT procedure. Table 28.1 summarizes the options available in the PROC BOXPLOT statement.

Table 28.1: PROC BOXPLOT Statement Options

Statement

Description

ANNOTATE=

Enhances traditional graphics box plots

BOX=

Names an input data set containing group summary statistics and outlier values

DATA=

Names an input data set containing raw data to be analyzed

GOUT=

Specifies the SAS catalog in which to save traditional graphics output

HISTORY=

Names an input data set containing group summary statistics


The following options can appear in the PROC BOXPLOT statement.

ANNOTATE=SAS-data-set
ANNO=SAS-data-set

specifies an ANNOTATE= type data set, as described in SAS/GRAPH: Reference, which enhances traditional graphics box plots requested in subsequent PLOT statements. Note: The ANNOTATE= option is ignored when ODS Graphics is enabled.

BOX=SAS-data-set

names an input data set containing group summary statistics and outlier values. Typically, this data set is created as an OUTBOX= data set in a previous run of PROC BOXPLOT. Each group summary statistic or outlier value is recorded in a separate observation in a BOX= data set, so there are multiple observations per group. You cannot use a BOX= data set together with a DATA= or HISTORY= data set. If you do not specify one of these input data sets, the procedure uses the most recently created SAS data set as a DATA= data set.

DATA=SAS-data-set

names an input data set containing raw data to be analyzed. You cannot use a DATA= data set together with a BOX= or HISTORY= data set. If you do not specify one of these input data sets, the procedure uses the most recently created SAS data set as a DATA= data set.

GOUT=<libref.>output catalog

specifies the SAS catalog in which to save traditional graphics output that is produced by the BOXPLOT procedure. If you omit the libref, PROC BOXPLOT looks for the catalog in the temporary library called WORK and creates the catalog if it does not exist. Note: The GOUT= option is ignored when ODS Graphics is enabled.

HISTORY=SAS-data-set
HIST=SAS-data-set

names an input data set containing group summary statistics. Typically, this data set is created as an OUTHISTORY= data set in a previous run of PROC BOXPLOT, but it can also be created using a SAS summarization procedure such as the MEANS procedure. The HISTORY= data set can contain only one observation for each value of the group variable. You cannot use a HISTORY= data set with a DATA= or BOX= data set. If you do not specify one of these three input data sets, PROC BOXPLOT uses the most recently created data set as a DATA= data set.