reg.ci | R Documentation |
Computes and add to a graph the confidence interval of a simple regression line or of individual values.
reg.ci(model, conf.level = 0.95, type = c("mean", "ind"), ...)
model |
|
conf.level |
confidence level. |
type |
interval type : |
... |
other agruments. See help of |
Maxime HERVE <maxime.herve@univ-rennes1.fr>
lm
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.