Uses the main output and some error messages from R function 'predict' but gives you more output. (Error messages are not reliable when used in Splus.)
predictCount(object, newdata, cilevel = 0.95, digit = 3, print.out = TRUE, ...)
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.
confidence level of the interval.
decimal numbers after the point.
if TRUE
, print out the prediction matrix.
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.