predictGLM: Predictions for Generalized Linear Models

Description Usage Arguments Details Value See Also

View source: R/predictGLM.R

Description

An alternative to predictCount to handle Binomial as well as Poisson models

Usage

1
predictGLM(object, newdata, type = "link", cilevel = 0.95, quasit = FALSE, ...)

Arguments

object

a glm object, i.e. the output from glm.

newdata

prediction data frame.

type

"link" (default) or "response" for CI on linear predictor or response scale.

cilevel

confidence level of the interval.

quasit

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.

Details

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.

Value

A data frame with three columns:

Predicted

the predicted count.

Conf.lower

the lower bound of the predicted count.

Conf.upper

the upper bound of the predicted count.

See Also

predict, predict.glm, as.data.frame.


s20x documentation built on Aug. 23, 2021, 9:15 a.m.

Related to predictGLM in s20x...