[R] Plotting the regression curve with its confidence interval

David Winsemius dwinsemius at comcast.net
Sun Nov 11 08:33:26 CET 2012


On Nov 10, 2012, at 9:36 PM, Осипов Денис wrote:

> Hello.
> 
> How can I plot the regression curve with its confidence interval?
> I use nls(y~a*x^b), then plot(x,y), add curve with lines(x,predict(nls(y~a*x^b))). But I can't add to plot CI for my curve.

Have your read:

?predict.nls  # ?


-- 
David Winsemius, MD
Alameda, CA, USA




More information about the R-help mailing list