PredictCI | R Documentation |
Provides confidence intervals for predictions of a GLM.
PredictCI(mod, newdata, conf.level = 0.95)
mod |
the binomial model |
newdata |
the data to be predicted |
conf.level |
confidence level of the interval. Default is 0.95. |
The confidence intervals for predictions are calculated with the se of the model and the normal quantile.
a matrix with 3 columns for the fit, the lower confidence interval and the upper confidence interval
Andri Signorell <andri@signorell.net>
FitMod
r.logit <- FitMod(diabetes ~ age, d.pima, fitfn = "logit")
head(PredictCI(r.logit, newdata=d.pima))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.