I've imputed data using the MICE package. Now I would like to present the results of a GLM based on the pooled data.
This is how I came up with the data:
data.imputed <- mice(data, m=5, maxit = 50, method = 'pmm', seed = 500)
And this is what I used to create the model:
model.imputed1 <- with(data = data.imputed, expr = glm(dv ~ iv1 + iv2 + iv3, family=binomial))
model.imputed <- pool(model.imputed1)
However, when I run
AIC(model.imputed)
or
logLik(model.imputed)
for that matter, I receive the message
Error in UseMethod("logLik") : no applicable method for 'logLik' applied to an object of class "c('mipo', 'data.frame')"
This looks like it has something to do with the way mice stores its imputed files. Is there a way to extract these two metrics (AIC and logLik) from this model? How could I convert it into a model from which to extract these two metrics?
Thanks!
TT