Re: [R] plotting SE

From: Peter Dalgaard <P.Dalgaard_at_biostat.ku.dk>
Date: Tue, 04 Dec 2007 15:03:31 +0100

Duccio - wrote:
> I used the lm function for a univariate regression model.
> Then I plotted it within the x/y scatterplot by abline(lm).
> I would like to plot standard error (or confidence intervals but SE should
> be better)...
> Any suggestion?
>

help(predict.lm) has an example of this.

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard_at_biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 04 Dec 2007 - 14:06:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 04 Dec 2007 - 14:30:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.