Juan Andres Hernandez
2014-Jul-04 12:47 UTC
[R] How to extract convergence code from lmer object?
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? Thank's in advance Juan A. Hernández Spain [[alternative HTML version deleted]]
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 ...