[R] Weighted nls

Peter Dalgaard p.dalgaard at biostat.ku.dk
Mon Jul 11 19:52:14 CEST 2005


"Rundle, Daniel" <stdmr03 at moravian.edu> writes:

> Dear R Community,
>  
> I am attempting to perform a weighted non-linear least squares fit.
> It has already been noted that the weights option is not yet
> implemented for the nls function, but no one seems to offer any
> suggestions for getting around this problem. I am still curious if
> a) anyone has code they have written which includes a weight options
> for nls, or b) if there is another model which would allow least
> squares fitting to a non-linear function.
>  

gnls in the nlme package. Or follow the example on help(nls) immediately
after the      

## weighted nonlinear regression

(!)

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907




More information about the R-help mailing list