Re: [R] Plotting nls

From: Francisco J. Zagmutt <gerifalte28_at_hotmail.com>
Date: Fri 26 Aug 2005 - 10:38:20 EST

Review the code in example(predict.nls)

For the R squared question check on this thread http://finzi.psych.upenn.edu/R/Rhelp02a/archive/51678.html

Cheers

Francisco

>From: Lanre Okusanya <ooo@buffalo.edu>
>Reply-To: ooo@buffalo.edu
>To: "'r-help@stat.math.ethz.ch'" <r-help@stat.math.ethz.ch>
>Subject: [R] Plotting nls
>Date: Thu, 25 Aug 2005 19:50:34 -0400
>
>Kindly excuse a non-statistician newbie attempting to wrestle with R.
>
>This might be a relatively easy question, but I am trying to perform nls
>regression and plot the fitted function through the data superimposed on
>the raw data. from reading the R-help, Rtips et al, I am only able to do
>that by extracting the parameter values manually and using it to create
>the plot.
>
>Is there an easier way to do this, (I have ~60 Plots), obtain an r^2,
>and also plot the x axis in the log domain (any attempts I have tried
>have screwed up).
>
>NLS script
>
>fit<- nls(y~-emax*x^h/(ec50^h+x^h),
> data= sample, start=list(emax=4,h=2,ec50=1))
>
>summary(fit)
>
>Thank you all for your help
>
>Lanre Okusanya, Pharm.D.,BCPS
>UB/Pfizer Pharmacometrics Fellow
>University at Buffalo School of Pharmacy and Pharmaceutical Sciences
>237 Cooke Hall
>Buffalo, NY 14260
>Email: ooo@buffalo.edu
>Tel: (716)645-2828 x 275
>Fax: (716)645-2886
>
>______________________________________________
>R-help@stat.math.ethz.ch mailing list
>
https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide!
>http://www.R-project.org/posting-guide.html



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Aug 26 10:42:40 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:53:22 EST