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?
Thanks!
pi
Please also provide the following information in addition to your question:
EDIT: now it seems to work. So basically it will use only the first imputed dataset.
I’ll test swapping the order to check how much the results vary across the imputed datasets.