ODS Graphics Template Modification

%Marginal Macro Options

You must specify the DEPENDENT=, INDEPENDENTS=, and PREDICTED= options. The remaining options have defaults and are not required. The macro provides the following options:


specifies the SAS data set to be displayed. If you do not specify this option, the %Marginal macro uses the most recently created SAS data set.


specifies the dependent variable. You must specify this option.


specifies GTL BEGINGRAPH statement graph size options. The default size depends on the number of rows and columns in the panel.

Rows and Columns

Default GOPTS=


$1 \times 1$, $2 \times 2$


$1 \times 2$


$2 \times 3$


$3 \times 4$


$3 \times 3$, $4 \times 4$, others



specifies the independent variables. You must specify this option.

PANEL=<number-of-rows> <number-of-columns>

specifies the number of rows and columns in the panel. Specify two values (rows then columns) or one value (when the number of rows equals the number of columns). For example, PANEL=2 3. Additional panels are automatically created when you have more graphs than available cells in the current panel. The default depends on both the number of independent variables and the number of graphs that can fit in a panel. For example, the default for 16 cells (14 independent variables, one predicted values plot, and a legend) is a $4 \times 4$ panel; the default for 17 cells (15 independent variables, one predicted values plot, and a legend) is two $3 \times 3$ panels (each panel has eight graphs and a legend that fills 18 cells). By default, the macro chooses to fill two panels that have fewer cells rather than to display more graphs in a first panel that has more cells and the last few graphs in the second panel. Multiple panels always have the same number of cells, although some cells might not be filled in the last panel. Defaults include $2 \times 2$, $2 \times 3$, $3 \times 3$, $3 \times 4$, and $4 \times 4$.


specifies the variable that contains the predicted values. You must specify this option.


specifies the smoothing method.

  • LOESS specifies a loess fit

  • PBSPLINE specifies a penalized B-spline

  • REGRESSION specifies a linear regression

  • REGRESSION along with SMOOTHOPTS=DEGREE=3 specifies a cubic-polynomial regression.

By default, SMOOTH=LOESS.


specifies GTL options for smoothing. These options are added to the GTL LOESSPLOT, PBSPLINEPLOT or REGRESSIONPLOT statement. By default, no options are specified.