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

Ben Bolker bbolker at gmail.com
Sun Jul 6 08:40:25 CEST 2014


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 ...



More information about the R-help mailing list