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

From: Dieter Menne <>
Date: Sat 06 Aug 2005 - 02:20:12 EST

Di Tanna Gian Luca <GDiTanna <at>> 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 mailing list PLEASE do read the posting guide! 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