Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

lm.ci

Function to calculate confidence intervals for ordinary multiple linear regression.


Description

Calculates (classical) confidence intervals for an ordinary multiple linear regression model in the n > p situation.

Usage

lm.ci(x, y, level = 0.95, ...)

Arguments

x

Design matrix (without intercept).

y

Response vector.

level

Coverage level.

...

Additional arguments to be passed to lm.

Details

A model with intercept is fitted but the p-value of the intercept is not reported in the output.

Value

Matrix of confidence interval bounds (not including the intercept).

Author(s)

Lukas Meier

See Also

Examples

x <- matrix(rnorm(100*5), nrow = 100, ncol = 5)
y <- x[,1] * 2 + x[,2] * 2.5 + rnorm(100)
ci <- lm.ci(x, y)
ci

hdi

High-Dimensional Inference

v0.1-7
GPL
Authors
Lukas Meier [aut, cre], Ruben Dezeure [aut], Nicolai Meinshausen [aut], Martin Maechler [aut], Peter Buehlmann [aut]
Initial release
2019-03-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.