2
$\begingroup$

This question from several years back describes the "singular gradient matrix at initial parameter estimates" error.

The answers say the reason for the error is that the parameters in the model are not identifiable.

I am trying to use nls in a nonlinear predictive model, that looks something like a neural network, so I don't care about parameter identifiability, just predictive performance. Right now I am using optim and it is painfully slow. I was hoping to use nls instead. Is it true that nls will not work in any case where the parameters are not identifiable?

$\endgroup$
1
  • $\begingroup$ Have you tried examining a trace of the parameter estimates from optim? How do they perform? I believe nonlinear least squares is still estimated by a root-finding equation, so you should be implementing this procedure with uniroot or a direct Gauss Newton implementation. $\endgroup$
    – AdamO
    Commented Jul 20, 2015 at 20:33

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.