Skip to content
Prev 17315 / 20628 Next

Constraining error variance to 0 in a mixed model.

Hi Rolf, 

Thanks for the enthusiasm. I believe the ability to force the variance into the RE in glmmTMB was Kasper Kristensen?s idea.

I had a look at your example and it seems that it could be a false positive coming from nlminb. The maximum gradient component is 2.4e-6, so it looks to me like the model converged. 

In the future, the glmmTMB developers will reconsider the convergence check that relies on nlminb?s convergence codes.

if (!is.null(fit$convergence) && fit$convergence != 0) warning()

cheers,
Mollie