Jason Horn
2006-Oct-20 18:46 UTC
[R] plotting 95% confidence bands on a simple linear regression model from lm()
What's the best / simplest way to create 95% confidence bands for a model created with lm() that can be plotted around teh regression line? I've looked everywhere for this - I guess I must be missing something. - Jason
Michael Kubovy
2006-Oct-20 19:16 UTC
[R] plotting 95% confidence bands on a simple linear regression model from lm()
On Oct 20, 2006, at 2:46 PM, Jason Horn wrote:> What's the best / simplest way to create 95% confidence bands for a > model created with lm() that can be plotted around teh regression > line? I've looked everywhere for this - I guess I must be missing > something. > > - Jasonlibrary(effects) ?summary.effect _____________________________ Professor Michael Kubovy University of Virginia Department of Psychology USPS: P.O.Box 400400 Charlottesville, VA 22904-4400 Parcels: Room 102 Gilmer Hall McCormick Road Charlottesville, VA 22903 Office: B011 +1-434-982-4729 Lab: B019 +1-434-982-4751 Fax: +1-434-982-4766 WWW: people.virginia.edu/~mk9y
Marc Schwartz
2006-Oct-20 19:25 UTC
[R] plotting 95% confidence bands on a simple linear regression model from lm()
On Fri, 2006-10-20 at 14:46 -0400, Jason Horn wrote:> What's the best / simplest way to create 95% confidence bands for a > model created with lm() that can be plotted around teh regression > line? I've looked everywhere for this - I guess I must be missing > something. > > - JasonSee the examples in ?predict.lm, which _is_ noted in the See Also section of ?lm Within the R console, using: RSiteSearch("model confidence bands") or similar keywords would search the list archives for additional resources, where you will find that this has been covered relatively frequently. HTH, Marc Schwartz