Skip to content
Back to formatted view

Raw Message

Message-ID: <499E8C80.6080203@life.ku.dk>
Date: 2009-02-20T10:57:04Z
From: Christian Ritz
Subject: An error in fitting a non linear regression
In-Reply-To: <22118160.post@talk.nabble.com>

Hi Saeed,

one approach is to try out several initial value combinations for a and b.

It often helps to find initial values of the same order of magnitude and of the same sign
as the final estimates.

To get such initial values, you could linearize the model:

lm(log(q) ~ I(-depth))


and supply the estimated coefficients from the linear regression as starting values:

nreg <- nls(q ~ a*exp(-b*depth), start = list(a = 0.76168, b = -0.08484))
summary(nreg)


Christian