The GAM Procedure
OUTPUT Statement
OUTPUT OUT= SAS-data-set <keyword<=prefix> …keyword<=prefix>>;
The OUTPUT statement creates a new SAS data set that contains diagnostic measures calculated after fitting the model.
All the variables in the original data set are included in the new data set, along with new variables that are created with keywords specified in the OUTPUT statement. These new variables contain the values of a variety of statistics and diagnostic measures that are calculated for each observation in the data set. If no keywords are present, the OUT= data set contains only the original data set and predicted values. The predicted values include the linear predictor for the response and the prediction for each smoothing term in the model. When you specify a distribution family with the DIST= or LINK= option in the MODEL statement, predicted response values after applying the inverse link function are also included. Predicted values are computed for observations that have missing response values, nonmissing values in the explanatory variables, and values of the smoothing variables that are within the smoothing ranges of the fitted model.
You can specify the following options in the OUTPUT statement:
Copyright © SAS Institute Inc. All rights reserved.