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

Error: No glance method recognized for this list. #190

Closed
sff06 opened this issue Aug 22, 2019 · 2 comments
Closed

Error: No glance method recognized for this list. #190

sff06 opened this issue Aug 22, 2019 · 2 comments

Comments

@sff06
Copy link

sff06 commented Aug 22, 2019

Dear Prof. van Buuren,

I am aware that others have issued similar questions (#142 #148 #187), so I keep it short.
After
expr <- expression(adcom(cbind(pmeanV1, Cond, pmeanV1 * V1), V4, xout = TRUE))
fit <- with(ComiIIaM, expr)
mice::pool(fit)
I receive the error meassage written in the issue title.

As far as I understand the reason for this message is that "pool() works [only] for any object having both coef() and vcov() methods." (van Buuren & Groothius-Oudshoorn, 2011, p. 48)? So in order to pool coefficents from my mira object I would need to transform the (output of the) adcom function (which only provides estimates and p-values) to accomodate it with broom (or apply any other of your suggestions from #106)?

Thank you for clarifying the subject!

@stefvanbuuren
Copy link
Member

mice 3.0 switched to broom to support pooling.

The sentence "pool() works for any object having both coef() and vcov() methods." (van Buuren & Groothuis-Oudshoorn, 2011, p. 48)" is therefore not actual anymore since mice 3.0.

If adcom() does not produce an estimate of the variance, then the usual route via broom won't work. An alternative is to use the D2() statistic to pool the p-values. See https://stefvanbuuren.name/fimd/sec-multiparameter.html#sec:chi .

Hope this helps.

@stefvanbuuren
Copy link
Member

See also #187 and #199.

I am closing because we can't provide the glance methods for every analysis method.

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