Skip to content
Prev 244308 / 398506 Next

robustbase problem [bug?] in adjbox function.

On 2010-12-07 12:01, kv wrote:
You're not exactly providing a 'minimal' example. (We don't need
to know your colour preferences and plot titles, etc, since
those have no relation to the problem.)

The problem is with mc() which adjbox() calls (as is stated
on the help page for adjbox).

I suspect that there may indeed be a bug in the C code called
by mc(), possibly related to ties. I saw no comments about
ties on the help page for mc().

A workaround for you might be to add a very small disturbance
to your data, e.g. rnorm(length(datac), sd = 1e-10).

Note to the maintainer:
Here's a slightly simpler reproducible example:

set.seed(15)
x <- sort(sample(67, 101, TRUE))
mc(x)
# maximal number of iterations (100 =? 100) reached prematurely
# Error in mc.default(x) : mc(): not 'converged' in 100 iterations

Eliminating any one of the elements of x with index in
c(17:18, 33:45, 48:50) results in convergence.


Peter Ehlers