Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document flat-line behaviour of mice.impute.2l.lmer() #385

Closed
stefvanbuuren opened this issue Apr 15, 2021 · 2 comments
Closed

Document flat-line behaviour of mice.impute.2l.lmer() #385

stefvanbuuren opened this issue Apr 15, 2021 · 2 comments

Comments

@stefvanbuuren
Copy link
Member

Issue #384 identifies that trace plots become flat if there is a problem with fitting the lme4::lmer() model. It issues a warning and return the old imputations, leading the flat trace lines.

This behaviour needs to be documented.

@shahabjolani
Copy link
Contributor

Indeed, the flat lines can act as an alert. However, this is not necessarily the behaviour of mice.impute.2l.lmer(), I think. If an imputation function (like this one) does not run, you will get such flat lines anyway...

@stefvanbuuren
Copy link
Member Author

stefvanbuuren commented Apr 15, 2021

Imputation methods may use several strategies to deal with running errors. It might be that mice.impute.2l.lmer() is unique in returning the old imputes.

mice 3.13.7 adds to the docs:

If lme4::lmer() fails, the procedure prints the warning "lmer does not run. Simplify imputation model" 
and returns the current imputation.  If that happens we see flat lines in the trace line plots. 
Thus, the appearance of flat trace lines should be taken as an additional alert to a problem with 
imputation model fitting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants