An embedded and charset-unspecified text was scrubbed... Name: ??????????? URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20121111/8bc194c4/attachment.pl>
Plotting the regression curve with its confidence interval
5 messages · Осипов Денис, David Winsemius, Jim Lemon
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
On 11/11/2012 04: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.
Hi Denis, If you know where you want the lines for the CI the dispersion function in the plotrix package will do what you want, use the type=l and border=1 arguments with fill=NA. Jim
Yes, but it says that arguments, that could help me, now isn't implemented.
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
On Nov 10, 2012, at 11:48 PM, ?????? ????? wrote:
Yes, but it says that arguments, that could help me, now isn't implemented.
I think the authors might have had their reasons for leaving it out. There have been quite a few threads ofver the years discussing why it is not a straightforward task to define a confidence interval. Do you have a particular approach that is acceptable in your domain of investigation?
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
David Winsemius, MD Alameda, CA, USA