[R] How to extract convergence code from lmer object?

Ben Bolker
Sun, 06 Jul 2014 06:40:25 -0000

Juan Andres Hernandez <jhernandezcabrera <at> gmail.com> writes:

>
> Does anyone know how to extract the convergence code of an lmer object. I
> am working in a monte carlo simulation with mixed model and I need to know
> if a model has or not convergence. With unclass(mymodel) the following
> information attr(,"optinfo")$conv$lme4 can be seen. How can I get
this
> important information in an automatic way?

 I don't know what you mean by "automatic".

mymodel at optinfo$conv$lme4

is the way that I usually extract it.  Yes, there should be a better
accessor method.

  Follow-ups to r-sig-mixed-models at r-project.org, please ...