-
Notifications
You must be signed in to change notification settings - Fork 11
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
Question on missRanger and BRMS #30
Comments
I think Let me know if the results look (un-)reasonable.
|
HI, You so much for the answer, that's actually what I tried to do-my imputed dataset (called imputed) was fed straight into the bar and multiple just like you did in your example with fit_imp2. The model runs, the problem comes after-I'd like to compare different models together using the LOO function, but because it isn't pooled it only uses the first imputed dataset |
Hmm. If you could adapt my examples (both mice and missRanger) accordingly, that would be fantastic. |
I'm not sure what you mean by adapt your examples, sorry!! |
I would need a fully reproducible example to see what works and what not. |
Ah ok, great! Please find below: Here is a subset of my data:
Then I imputed:
Then I ran 5 models
And finally the LOO
|
Okay, thanks a lot for that example. I visited
My first thought:
I would actually suggest to ask the brms team how they would approach the problem. I think it would be quite cool if |
OK great thank you for that, I will do! |
Hi,
Thank you for a brilliant package. I'm using missRanger to impute, and then apply BRMS to the imputed dataset. BRMS describes how to use the
mice
package, but missRanger imputed data comes out quite different.Ideally I would have imputed the data, pooled the data, run my models, run model comparisons. But I cannot then pool using mice, it doesn't work. So instead I run multiple models on imputed data like this:
models_imputed <- brm_multiple(formula = score ~ 1 + cs(group), data = imputed, family = acat("cloglog"), combine=TRUE, chains=1)
But this is pretty clunky, and if I try to do a LOO on my models (I have 5) I get the error:
Using only the first imputed data set. Please interpret the results with caution until a more principled approach has been implemented.
This isn't an issue with missRanger as such, more that I'm caught in the space between missRanger and BRMS and am not sure how to get them to work together...hoping someone might have advice!
Thanks
The text was updated successfully, but these errors were encountered: