PredictCI {ModTools}R Documentation

Confidence Intervals for Predictions of a GLM

Description

Provides confidence intervals for predictions of a GLM.

Usage

PredictCI(mod, newdata, conf.level = 0.95)

Arguments

mod

the binomial model

newdata

the data to be predicted

conf.level

confidence level of the interval. Default is 0.95.

Details

The confidence intervals for predictions are calculated with the se of the model and the normal quantile.

Value

a matrix with 3 columns for the fit, the lower confidence interval and the upper confidence interval

Author(s)

Andri Signorell <andri@signorell.net>

References

https://stackoverflow.com/questions/14423325/confidence-intervals-for-predictions-from-logistic-regression

See Also

FitMod

Examples

r.logit <- FitMod(diabetes ~ age, d.pima, fitfn = "logit")
head(PredictCI(r.logit, newdata=d.pima))

[Package ModTools version 0.9.6 Index]