reg.ci {RVAideMemoire} | R Documentation |
Confidence intervals of a simple linear regression
Description
Computes and add to a graph the confidence interval of a simple regression line or of individual values.
Usage
reg.ci(model, conf.level = 0.95, type = c("mean", "ind"), ...)
Arguments
model |
|
conf.level |
confidence level. |
type |
interval type : |
... |
other agruments. See help of |
Author(s)
Maxime HERVE <maxime.herve@univ-rennes1.fr>
See Also
Examples
x <- 1:50
y <- 1:50+rnorm(50,0,4)
regression <- lm(y~x)
plot(x,y)
abline(regression)
reg.ci(regression,type="mean",col="red")
reg.ci(regression,type="ind",col="blue")
[Package RVAideMemoire version 0.9-83-7 Index]