search for: anima4

Displaying 1 result from an estimated 1 matches for "anima4".

Did you mean: animal
2007 Nov 20
1
plotting confidence intervals of regression line
Hello, I am trying to generate a confidence interval (90 or 95%) of a regression line. This is primarily just for illustration on a scatter plot (i.e. I am trying to make this http://www.ast.cam.ac.uk/~rgm/scratch/statsbook/graphics/anima4.gif). I have been trying to use the predict.lm function, with interval set as "confidence", but this still seems to be giving me a prediction interval (as below). It is giving the interval based on the x value of a given point, as opposed to the confidence interval of the regression lin...