Use predict() on a bdGlm Object

DESCRIPTION:

Extracts the fitted values from a bdGlm object and returns a matrix of predictions.

This function requires the bigdata library section to be loaded.

USAGE:

predict.bdGlm(object, newdata, type = c("link", "response"))

REQUIRED ARGUMENTS:

object
a fitted bdGlm object.

OPTIONAL ARGUMENTS:

newdata
a data frame containing the values at which predictions are required. If this argument is missing, predictions are made at the same values used to compute the object. Only those predictors referred to in the right side of the formula in object need be present by name in newdata.
type
type of predictions, with choices "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.

VALUE:

a bdVector of predictions.

DETAILS:

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.

SEE ALSO:

EXAMPLES:

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)