ci {gregmisc}R Documentation

Compute Confidence Intervals

Description

Compute and display confidence intervals for model estimates. Methods for lm and summary.lm objects are provided.

Usage

ci(x, ...)
ci.lm(x, ...)
ci.summary.lm(x, confidence = 0.95, alpha = 1 - confidence) 

Arguments

x object from which to compute confidence intervals.
confidence confidence level. Defaults to 0.95.
alpha Type one error rate. Defaults to 1.0-confidence

Value

matrix with one row per model parameter and columns Estimate, CI lower, CI upper, Std. Error, and p-value.

Author(s)

Gregory R. Warnes

See Also

\ref{MASS}confint, lm, summary.lm

Examples


data(state)
reg  <-  lm(Area ~ Population, data=as.data.frame(state.x77))
ci(reg)