The GAM Procedure |
SCORE Statement |
The SCORE statement calculates predicted values for a new data set. All the variables in the named data set are included in the OUT= data set, along with the predicted values. The predicted values consist of predicted responses after the inverse link function transformation, predicted values of all smoothing terms, and predicted values on the link scale. Predicted values are computed for observations with missing response values whose values of the specified explanatory variables are nonmissing, and whose values of the specified smoothing variables are within the smoothing ranges of the fitted model. The predicted variables use the same naming convention as the OUTPUT statement. If you have multiple data sets to predict, you can specify multiple SCORE statements.
The following options must be specified in the SCORE statement:
specifies an input SAS data set containing all the variables included in independent effects in the MODEL statement. The predicted response is computed for each observation in the SCORE DATA= data set.
specifies the name of the SAS data set to contain the predictions.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.