Learn R Programming

wrappedtools (version 0.9.7)

glmCI: Confidence interval for generalized linear models

Description

glm_CI computes and formats CIs for glm.

Usage

glmCI(model, min = .01, max = 100, cisep = '\U000022ef', ndigit=2)

Value

A list with coefficient, CIs, and pasted coef([CIs]).

Arguments

model

Output from glm.

min, max

Lower and upper limits for CIs, useful for extremely wide CIs.

cisep

Separator between CI values.

ndigit

rounding level.

Examples

Run this code
glm_out <- glm(am ~ mpg, family = binomial, data = mtcars)
glmCI(glm_out)

Run the code above in your browser using DataLab