Re: [R] Confidence Inteval for regression curve.

2008-01-05 Thread hadley wickham
On Jan 5, 2008 7:45 PM, Milton Cezar Ribeiro <[EMAIL PROTECTED]> wrote: > 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? The easiest way is to use th

[R] Confidence Inteval for regression curve.

2008-01-05 Thread Milton Cezar Ribeiro
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,