Skip to content
Prev 337 / 523 Next

[RsR] [R] nlrob problem

> Dear all, I am not sure if this mail is for R-help or
    > should be sent to R-devel instead, and therefore post to
    > both.

    > While using nlrob from package 'robustbase', I ran into
    > the following problem:

    > For psi-functions that can become zero
    > (e.g. psi.bisquare), weights in the internal call to nls
    > can become zero. Example:
You are right.
The next version of robustbase (0.8-1) will have this fixed.

Note however, that for me, in your example and in other more
interesting ones, as soon as I use a redescending  psi() function,
the IRLS iterations do *not* converge...
but rather strangely ``cycle'' around the true solution.
As a redescending psi() has a non-convex rho(), and non-linear
problems depend quite a bit on "feasible"/"good" starting
values, I currently think I would discourage from using such psi().


As others, some possibly more expert in robust non-linear fitting,
may be interested, and have interesting feedback,
I'm crossposting this reply to the R-SIG-robust  mailing
list.
(Further replies should typically only go there!)
You have overlooked that nlrob uses a different *formula* for nls()
 --- nowadays unnecessarily ---
and that formula has  a 'w'.

So this part of your report is not correct.

Martin Maechler, ETH Zurich