ci.reg {s20x}R Documentation

Confidence Intervals for Regression models

Description

Calculates and prints the confidence intervals for the fitted model.

Usage

ci.reg(fit, cilevel=0.95, print.out=TRUE)

Arguments

fit an lm object, i.e. the output from "lm()".
cilevel confidence level of the intervals.
print.out if TRUE, print out the output on the screen.

Value

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

See Also

"lm", "summary", "anova".

Examples

##Peruvian Indians data 
data(peru)
attach(peru)
fit<-lm(BP ~ age + years + weight + height)
ci.reg(fit)
detach(peru)

[Package s20x version 2.6.1.000 Index]