logbin.smooth
object.## S3 method for class 'logbin.smooth':
predict(object, newdata = NULL, type = c("link", "response", "terms"),
terms = NULL, na.action = na.pass, ...)
"logbin.smooth"
.type = "terms"
by default all terms are returned.
A character vector specifies which terms are to be returned.newdata
.
The default is to predict NA
.type = "terms"
, this is a matrix with
a column per term, and may have an attribute "constant"
.predict.logbin.smooth
constructs the underlying basis functions for smooth variables
in newdata
and runs predict.logbin
to obtain predictions. Note that
if values of smooth covariates in newdata
are outside the covariate space of
object
, an error will be returned.
If newdata
is omitted, the predictions are based on the data used for the fit.
In that case how cases with missing values in the original fit are treated is determined by the
na.action
argument of that fit. If na.action = na.omit
, omitted cases
will not appear in the residuals, whereas if na.action = na.exclude
they will
appear, with residual value NA
. See also napredict
.logbin.smooth
, predict.logbin
predict.glm
for the equivalent method for models fit using glm
.## For an example, see example(logbin.smooth)
Run the code above in your browser using DataLab