[R] Singular gradient

Douglas Bates bates at stat.wisc.edu
Wed Sep 6 14:30:09 CEST 2000


"Albertus J Smit" <asmit at cyllene.uwa.edu.au> writes:

> What does the error 'singular gradient' mean during a nonlinear regression?

The gradient matrix to which the message refers is the derivative of
the vector of predicted values with respect to the vector of
parameters at the current parameter estimates.  If you have 20
observations and three parameters, this will be a matrix with 20 rows
and three columns.

For the model to be estimable in a region of the current estimates,
this matrix must have full column rank.  When it fails to have full
column rank the "singular gradient" message is given and the
iterations stop.

Generally this indicates that the model is overparameterized or that
the starting estimates were poorly chosen.  Try using trace = TRUE in
the call to nls and watching the progress of the iterations.  This
will often show that the estimates are wandering into unreasonable
regions of the parameter space.
-- 
Douglas Bates                            bates at stat.wisc.edu
Statistics Department                    608/262-2598
University of Wisconsin - Madison        http://www.stat.wisc.edu/~bates/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list