Skip to content
Prev 253713 / 398498 Next

Problem with nls.lm function of minpack.lm package.

One things you should do, as Kate suggested, is to check whether the Jacobian functiions are correctly code.  You can do this with "numDeriv" package:

require(numDeriv)
?jacobian

Compare the jacobian from numDeriv with your jacobian for a few reasonable parameter vectors.  

Ravi.
____________________________________________________________________

Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
School of Medicine
Johns Hopkins University

Ph. (410) 502-2619
email: rvaradhan at jhmi.edu


----- Original Message -----
From: Yann P?riard Larriv?e <yann.periard-larrivee.1 at ulaval.ca>
Date: Tuesday, March 15, 2011 11:57 am
Subject: [R] Problem with nls.lm function of minpack.lm package.
To: "r-help at r-project.org" <r-help at r-project.org>