glmer model from early 2013: warning message about convergence when re-running it

倖福魔咒の 提交于 2019-12-04 14:27:59

(Upgraded from a comment)

install.packages("lme4.0",repos="http://lme4.r-forge.r-project.org/repos")

and see ?convert_old_lme4 for a utility function to convert the saved model fit so you can use it in lme4.0.

  • Your convergence warning is almost certainly a false positive: see this mailing list thread or the tail end of this Github issue. You can either install the development version from Github (via devtools::install_github("lme4","lme4")) or the repository listed above, or just try this:
relgrad <- with(mixmod1@optinfo$derivs, solve(Hessian, gradient))
max(abs(relgrad))

and see if the scaled gradient is small.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!