gampredict
statistics: yFit = gampredict (Parameters, X, Intercept)
statistics: score = gampredict (Parameters, X, Intercept, Link)
Evaluate a generalized additive model on new data.
yFit = gampredict (Parameters, X, Intercept)
adds the intercept to the sum of the additive terms evaluated at each row of
X and returns the result. It is the prediction engine
shared by ClassificationGAM and RegressionGAM, and it is not
meant to be called directly.
gamtrain in the field of the same name.
NaN, since no term of the model is defined
at it. A value outside the range the term was fitted over is extrapolated
from the nearest piece, as ppval extrapolates.
0 returns it as it stands and 1 takes it as a
log-odds, returning the matrix of class probabilities whose
second column is the logistic function of it. The default is 0.
See also: gamtrain, ClassificationGAM, RegressionGAM, fitcgam, fitrgam
Source Code: gampredict