Last chance! 50% off unlimited learning
Sale ends in
"lm"
.confint(object, parm, level = 0.95, ...)
confint
is a generic function. The default method assumes
asymptotic normality, and needs suitable coef
and
vcov
methods to be available. The default method can be
called directly for comparison with other methods. For objects of class "lm"
the direct formulae based on $t$
values are used.
There are stub methods in package "glm"
and "nls"
which call those in package
confint.glm
and
confint.nls
in package fit <- lm(100/mpg ~ disp + hp + wt + am, data = mtcars)
confint(fit)
confint(fit, "wt")
## from example(glm)
counts <- c(18,17,15,20,10,20,25,13,12)
outcome <- gl(3, 1, 9); treatment <- gl(3, 3)
glm.D93 <- glm(counts ~ outcome + treatment, family = poisson())
confint(glm.D93) # needs MASS to be installed
confint.default(glm.D93) # based on asymptotic normality
Run the code above in your browser using DataLab