[R] weights in nls

Douglas Bates bates at stat.wisc.edu
Tue Sep 26 16:44:04 CEST 2000


ben at zoo.ufl.edu writes:

>   Does the nls package actually allow for weighted nonlinear regression?
> (i.e., I have data with individual variances associated, I'd like to use
> 1/var to weight the points.)  The "nls" function does have a weights
> argument, but it doesn't seem to do anything as far as I can tell ...

Hmm.  You're right.  The weights argument is supposed to do something
but it does not appear to be functional.  I'll look at it.

In the meantime, you can use the approach that John Chambers and I
describe in chapter 10 of "Statistical Models in S" (a.k.a. the white
book) and write the model as a one sided formula giving the weighted
residual.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 mailing list