View source: R/confint_sigma2.R
confint_sigma2 | R Documentation |
The confint_sigma2
function computes confidence interval for the sigma2 parameter in a linear model fitted with the lm function.
confint_sigma2(object, level = 0.95)
object |
a lm object. |
level |
the confidence level required. |
A matrix with columns giving lower and upper confidence limits.
# Example for simple linear regression
mod <- lm(dist ~ speed, data=cars)
confint_sigma2(object=mod, level=0.95)
confint_sigma2(object=mod, level=0.80)
# Example for multiple linear regression
mod <- lm(mpg ~ wt + hp, data=mtcars)
confint_sigma2(object=mod, level=0.95)
confint_sigma2(object=mod, level=0.80)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.