An alternative to predictCount
to handle Binomial as well as
Poisson models
predictGLM(object, newdata, type = "link", cilevel = 0.95, quasit = FALSE, ...)
A data frame with three columns:
the predicted count.
the lower bound of the predicted count.
the upper bound of the predicted count.
a glm
object, i.e. the output from glm
.
prediction data frame.
"link"
(default) or "response"
for CI on linear predictor or response scale.
confidence level of the interval.
if TRUE
, t multiplier for CI rather than normal multiplier in the case of a quasi model.
optional arguments that are passed to the generic predict
.
Note: The data frame, newdata, must have the same column order and data types (e.g. numeric or factor) as those used in fitting the model.