I used the mice package in R to perform multiple imputation for my data:
### multiple inputation by chained equations
imp.data <- mice(data, maxit = 5, m = 5, seed = 92385, print = F)
I want to run a logistic regression model after the MI, and predict the outcome based on the model:
model <- with(imp.data, glm(died ~ agecat + female_1 + insurance + mech + transfer +
iss + mxaisbr1 + maxais + cm_chf_1 + cm_mets_1 + cm_liver_1 +
cm_htn_c_1 + cm_bldloss_1 + state, family = binomial))
However, the predict command does not work:
predict(pool(model), type = c('response'))
It would be much simpler if I have the data with imputed values, but the imputation got 5 imputed data sets, making the post estimation complicated. Any idea ?
Thanks!!