predict()
on a
bdGlm
Object
bdGlm
object
and returns a matrix of predictions.
This function requires the bigdata library section to be loaded.
predict.bdGlm(object, newdata, type = c("link", "response"))
bdGlm
object.
newdata
.
"link"
(the default),
or
"response"
.
The default produces predictions on the scale of the additive
predictors, and with
newdata
missing,
predict()
is simply an
extractor function for this component
of a
bdGlm
object.
If
"response"
is selected,
the predictions are on the scale of the response,
and are monotone transformations of the additive predictors,
using the inverse link function.
Unlike
predict.glm
"terms"
is not a valid
value for
type
.
This function is a method for the generic function for classbdGlm . It can be invoked by calling for an objectx of the appropriate class, or directly by calling regardless of the class of the object.
The function does not support the same arguments as
In particular
se.fit
,
terms
,
dispersion
,
ci.fit
pi.fit
are not supported.
bigKyph <- as.bdFrame(kyphosis) Kyph.glm <- glm(Kyphosis ~ Age + Number, family=binomial, data=bigKyph) predict(Kyph.glm) # Same thing as above: predict(Kyph.glm, newdata=bigKyph)