I’m trying to compare two models fitted on imputed data.
I’ve used mice to impute 5 datasets and used brm_multiple to fit the models.
Everything fine, until I try to perform a K-fold on these models. Then I get an error saying that newdata must be a list of data.frames.
I’ve tried to pass manually a list of data.frames by newdata argumen but I still get the same error.
Is there a way to run K-fold on brm_multiple models?
If not, can you please suggest a way to compare two models?
Please also provide the following information in addition to your question:
- Operating System: Win 10
- brms Version: 2.8.7