[R] nls question
wsi at gcal.ac.uk
Fri Apr 27 11:25:36 CEST 2001
I have a question about passing arguments to the function f that nlm
I have no problems if I do this:
y<-1.1*x + (1-1.1) + rnorm(length(x),0,.1)
But I would like to define
so that I can pass the x and y variables along, doing something like
This version doesn't work of course. I have looked at the examples and
can't figure out how to do what I want. Is it possible?
Thanks very much for any help.
(BTW I know nls() can be used for nonlinear least squares fitting. It
choked on this problem.)
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help