Skip to content

Singular Gradient in nls

4 messages · glenn andrews, Katharine Mullen

#
A QR decomposition is done on the weighted gradient matrix; if the
estimate of the rank that results is less than the number of columns in
the gradient (the number of nonlinear parameters), or less than the number
of rows (the number of observations), nls stops.

You can see the calls in the source code of nlsModel
(https://svn.r-project.org/R/trunk/src/library/stats/R/nls.R).
On Fri, 28 Mar 2008, glenn andrews wrote:

            
#
sorry, the below should read:

 A QR decomposition is done on the weighted gradient matrix; if the
columns in
number
so you look at the number of observations, and the number of parameters,
and take the smaller of the two.  if the estimated rank of the weighted
gradient is small than this number, you stop.
On Fri, 28 Mar 2008, Katharine Mullen wrote:

            
#
Is the nls() algorithm based on a weighted non-linear least squares -- I 
noticed you mentioned a weighted gradient matrix?

Glenn
Katharine Mullen wrote: