Skip to content
Prev 319661 / 398502 Next

nlrob and robust nonlinear regression with upper and/or lower bounds on parameters

On 2013-03-15 07:57, Shane McMahon wrote:
I'm not sure what your example is supposed to illustrate, but the
"lower" argument in nls() is being ignored. As ?nls says: 'Bounds
can only be used with the "port" algorithm', which is not the default,
and nls() does issue a warning with your code.

If you want to force a coefficient to be positive, the usual approach
is to estimate the logarithm of the coefficient by using the
exp(log(coef)) construct. See argument 'lrc' in ?SSasymp for example.
Introducing a shift to accommodate coef > k for given k is simple.

Peter Ehlers