Re: [R] fit non linear model using weighted least squares

From: Dieter Menne <dieter.menne_at_menne-biomed.de>
Date: Sat 06 Aug 2005 - 02:20:12 EST

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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Aug 06 02:32:47 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:06:17 EST