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

Cannot plot interactions with multiple imputed datasets #124

Open
samuelsaari opened this issue May 27, 2021 · 2 comments
Open

Cannot plot interactions with multiple imputed datasets #124

samuelsaari opened this issue May 27, 2021 · 2 comments

Comments

@samuelsaari
Copy link

Feature request:
cat_plot & interact_plot do not support pooled regression objects (eg. mipo objects). It would be great if it did as there does not seem to be any other package available that would.

More info:
https://stackoverflow.com/questions/67635243/plotting-an-interaction-term-in-moderated-regression-using-mice-imputation
&
https://gist.github.com/samuelsaari/a3be910f57469c7a001ceab9ffef6d6c

@jacob-long
Copy link
Owner

I'm feeling pretty pessimistic about my ability to support this. mice's pooled models do not offer any of the expected functions you'd expect from a "normal" model: no predict(), no vcov(), no coef(), etc. Creating those from scratch could be rather labor-intensive and error-prone (for me). I'm not sure, for instance, whether it makes sense to think of an averaged variance-covariance matrix.

Because this would mostly require work in the jtools package (its make_predictions() function is essential to producing the plots in interactions), I'm going to move it there.

@jacob-long jacob-long transferred this issue from jacob-long/interactions Apr 18, 2022
@jacob-long
Copy link
Owner

As I check back in on this, I'll mention that the good folks over at mice seem to be thinking about the problem that was holding me back when I last commented here. I'll keep an eye out for updates from them.

amices/mice#82

Solomon Kurz's blog post may be a useful reference down the line also.

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

No branches or pull requests

2 participants