[R] plotting 95% confidence bands on a simple linear regression model from lm()

Michael Kubovy kubovy at virginia.edu
Fri Oct 20 21:16:21 CEST 2006


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.
>
> - Jason

library(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:    http://www.people.virginia.edu/~mk9y/



More information about the R-help mailing list