[R] Confidence Inteval for regression curve.

From: Milton Cezar Ribeiro <milton_ruser_at_yahoo.com.br>
Date: Sat, 5 Jan 2008 17:45:10 -0800 (PST)


Dear all,

I have a dataset which I need to estimate the regression model and plot the estimated curve two other curves with low and high confidence interval (CI=95%). How can I do that?

x<-1:100
y<-x^0.2+rnorm(100,0.1,0.1)
mod<-glm(y~log(x))
plot(y~x)
lines(predict(mod)~x,col=2)

Kind regards,

miltinho
Brazil

 para armazenamento!

        [[alternative HTML version deleted]]



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 Sun 06 Jan 2008 - 01:50:20 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 Sun 06 Jan 2008 - 02:30:05 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.

list of date sections of archive