[R] fit non linear model using weighted least squares

Dieter Menne dieter.menne at menne-biomed.de
Fri Aug 5 18:20:12 CEST 2005


Di Tanna Gian Luca <GDiTanna <at> Regione.Emilia-Romagna.it> writes:

> I'd like to fit a non linear model using weighted least squares.
> I am using the gnls function but I don't know how to perform a weighted
> least squares (my weights are a "simple" colum of data).

In your case it probably would be easier to use nls (in stats) instead of gnls. 
There is an example using weighting on the help-page.

Dieter Menne




More information about the R-help mailing list