ciReg function

Confidence Intervals for Regression models

Confidence Intervals for Regression models

Calculates and prints the confidence intervals for the fitted model.

ciReg(fit, conf.level = 0.95, print.out = TRUE)

Arguments

  • fit: an object of classlm, i.e. the output from lm.
  • conf.level: confidence level of the intervals.
  • print.out: if TRUE, print out the output on the screen.

Returns

The function returns a two-column matrix containing the upper and lower endpoints of the intervals.

Examples

##Peruvian Indians data data(peru.df) fit=lm(BP ~ age + years + weight + height, data = peru.df) ciReg(fit)

See Also

lm, summary, anova.

  • Maintainer: James Curran
  • License: GPL-2 | file LICENSE
  • Last published: 2023-08-21