[R] nls plinear formula

From: gutierrez.m05 <gutierrez.m05_at_gmail.com>
Date: Tue, 29 Apr 2008 08:27:32 +0200

I want to fit a nonlinear model of the form: Y=A+B*X1+C*X2+log(X3/(X3+D))
I think that the best way is to use the plinear algorithm, but I don't know how to specify the formula in the nls function. I've tried:
Y~cbind(rep(1,times=length(Y)),X1,X2,log(X3/(X3+D))) But this fits the model:
How can I specify the formula correctly? Thanks,

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 Tue 29 Apr 2008 - 07:21:43 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 Tue 29 Apr 2008 - 08:30:35 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