The GAMMOD Procedure
The OUTPUT statement creates a data table that contains observationwise statistics that PROC GAMMOD computes after fitting the model. In order to avoid data duplication for large data tables, the variables in the input data table are not included in the output data table unless you specify them in the COPYVARS= option.
The computation of the output statistics is based on the final parameter estimates. If the model fit does not converge, missing values are produced for the quantities that depend on the estimates.
You must specify the following option:
-
OUT=CAS-libref.data-table
-
names the output data table for PROC GAMMOD to use. You must specify this option before any other options. CAS-libref.data-table is a two-level name, where
- CAS-libref
refers to a collection of information that is defined in the LIBNAME statement and includes the caslib, which includes a path to where the data table is to be stored, and a session identifier, which defaults to the active session but which can be explicitly defined in the LIBNAME statement. For more information about CAS-libref, see the section Using CAS Sessions and CAS Engine Librefs.
- data-table
specifies the name of the output data table.
You can also specify the following syntax elements:
-
ALPHA=number
specifies the significance level for the construction of confidence intervals in the output data table. The confidence level is
. The value of number must be between 0 and 1. By default, number is equal to the value of the ALPHA= option in the PROC GAMMOD statement, or 0.05 if that option is not specified.
-
COMPONENT
requests componentwise statistics for all spline terms if LINP, LOWER, STD, or UPPER is specified as a keyword.
-
COPYVAR=variable
COPYVARS=(variables)
transfers one or more variables from the input data table to the output data table.
-
keyword <=name>
-
specifies a statistic to include in the output data table and optionally assigns a name to the variable. If you do not provide a name, the GAMMOD procedure assigns a default name based on the keyword.
You can specify the following keywords for adding statistics to the OUTPUT data table:
-
LINP | XBETA
requests the linear predictor
. For observations in which only the response variable is missing, values of the linear predictor are computed even though these observations do not affect the model fit. The default name is Xbeta.
-
LOWER
requests a lower Bayesian confidence band value for the predicted value. The default name is Lower.
-
PEARSON | PEARS | RESCHI
requests the Pearson residual,
, where
is the estimate of the predicted response mean and
is the response distribution variance function. The default name is Pearson.
-
PREDICTED | PRED | P
requests predicted values for the response variable. For observations in which only the response variable is missing, the predicted values are computed even though these observations do not affect the model fit. The default name is Pred.
-
RESIDUAL | RESID | R
requests the raw residual,
, where
is the estimate of the predicted mean. The default name is Residual.
-
STD
requests a standard error for the linear predictor. The default name is Std.
-
UPPER
requests an upper Bayesian confidence band value for the predicted value. The default name is Upper.
Last updated: December 08, 2021