Closed jay-sf closed 1 year ago
Thanks for reporting this. I suspect this model is too complex for the data and results in a degenerated fit. Use the verbose argument to find out what happens during the fitting process.
Your example crashes R, which shouldn't happen. I don't have time to investigate right now, but I expect to be able to investigate it in a few weeks at least.
I finally found some time to investigate this. Some of the weights are very small. The weights are so small that the formula used to approximate the variance of the individual residual's variance produces negative values. Negative values don't make sense and are not allowed.
If you make sure the weights are not lower than a certain value, e.g., 0.1, then your example runs through just fine.
I will eventually release a new version of the package that warns about weights that small.
New version of the package is on CRAN.
Hi kollerma,
first of all thanks for the robustlmm package!
I face an issue in an
rlmer
call while using weights.In updateSigma function, line 376
scale <- fun2(scale0, object@resp$wtres)
can becomeNaN
which leads to aNA
value inconverged
which in turn leads, while trying to evaluate!converged && (it <- it + 1) < max.iter
to an error. Couldn't find out what goes wrong.Self-contained example:
The boundary message and sqrt(tau2) warning do not appear with my real data.
It would be great if you could look at this.
Cheers!