Previous Page | Next Page

The EXPAND Procedure

ODS Graphics

This section describes the use of ODS for creating graphics with the EXPAND procedure. To request these graphs, you must specify the statement ods graphics on; in your SAS program prior to the PROC EXPAND step and specify the PLOTS= option in the PROC EXPAND statement.

ODS Graph Names

PROC EXPAND assigns a name to each graph it creates using ODS. You can use these names to reference the graphs when using ODS. The names are listed in Table 14.2.

To request these graphs, you must specify the ODS GRAPHICS statement and the PLOTS= option in the EXPAND statement.

Table 14.2 ODS Graphics Produced by PROC EXPAND

ODS Graph Name

Plot Description

PLOTS= Options

ConvertedSeriesPlot

Converted Series Plot

CONVERTED OUTPUT ALL

CrossInputSeriesPlot

Cross Input Series Plot

CROSSINPUT

CrossOutputSeriesPlot

Cross Output Series Plot

CROSSOUTPUT

InputSeriesPlot

Input Series Plot

INPUT JOINTINPUT ALL

JointInputSeriesPlot

Joint Input Series Plot

JOINTINPUT

JointOutputSeriesPlot

Joint Output Series Plot

JOINTOUTPUT

OutputSeriesPlot

Output Series Plot

SERIES|OUTPUT

TransformedInputSeriesPlot

Transformed Input Series Plot

TRANSFORMIN OUTPUT ALL

TransformedOutputSeriesPlot

Transformed Output Series Plot

TRANSFORMOUT OUTPUT ALL

PLOTS= Option Details

Some plots will only be produced for a series if the relevant options are also specified. For example, if PLOTS=TRANSFORMIN specified, the TRANSFORMIN plot will not be produced for a variable unless the TRANSFORMIN= option is specified on a CONVERT statement for that variable.

The PLOTS=TRANSFORMIN option plots the series after the input transformation (TRANSFORMIN= option) is applied. If the TRANFORMIN= option is not specified in the CONVERT statement for an output variable, the input transformation plot is not produced.

The PLOTS=CONVERTED option plots the series after the input transformation (TRANSFORMIN= option) is applied and after frequency conversion (METHOD= option). If there is no frequency conversion for an output variable, the converted series plot is not produced.

The PLOTS=TRANSFORMOUT option plots the series after the output transformation (TRANSFORMOUT= option) is applied. If the TRANFORMOUT= option is not specified in the CONVERT statement for an output variable, the output transformation plot is not produced.

The PLOTS=OUTPUT option plots the series after it has undergone input transformation (TRANSFORMIN= option), frequency conversion (METHOD= option), and output transformation (TRANSFORMOUT= option) if these CONVERT statement options were specified.

Cross and Joint Plots

The PLOTS= option values CROSSINPUT and CROSSOUTPUT produce graphs that overlay plots of two series using two Y axis and with each of the two plots show at a separate scale. The PLOTS= option values JOINTINPUT and JOINTOUTPUT produce graphs that overly plots of two series using a single Y axis and with both of the plots shown on the same scale.

Note that because the joint graphics options (PLOTS=JOINTINPUT or PLOTS=JOINTOUTPUT) plot the (input or converted) series and the transformed series on the same scale, if the transformation changes the range of the series these plots may be hard to visualize.

The PLOTS=CROSSINPUT option plots both the input series and the series after the input transformation (TRANSFORMIN= option) is applied. The left side vertical axis refers to the input series, while the right side vertical axis refers to the series after the transformation. If the TRANFORMIN= option is not specified in the CONVERT statement for an output variable, the cross input plot is not produced for that variable.

The PLOTS=JOINTINPUT option jointly plots both the input series and the series after the input transformation (TRANSFORMIN= option) is applied. If the TRANFORMIN= option is not specified in the CONVERT statement for an output variable, the joint input plot is not produced for that variable.

The PLOTS=CROSSOUTPUT option plots both the converted series and the converted series after the output transformation (TRANSFORMOUT= option) is applied. The left side vertical axis refers to the input series, while the right side vertical axis refers to the series after the transformation. If the TRANFORMOUT= option is not specified in the CONVERT statement for an output variable, the cross output plot is not produced for that variable.

The PLOTS=JOINTOUTPUT jointly plots both the converted series and the converted series after the output transformation (TRANSFORMOUT= option) is applied. If the TRANFORMOUT= option is not specified in the CONVERT statement for an output variable, the joint output plot is not produced for that variable.

Requesting All Plots

The PLOTS=ALL option is a convenient way to specify all the plots except the OUTPUT plots and the joint and cross plots. The option PLOTS=(ALL OUTPUT JOINTINPUT JOINTOUTPUT CROSSINPUT CROSSOUTPUT) request that all possible plots be produced.

Previous Page | Next Page | Top of Page