How can I use the simulate
function on a pooled GLM from MICE?
I have my MICE-imputed data in the object miceData. On this data i made a model as such:
form3 <- survived ~ sex + age * pclass - 1
glm3 <- glm.mids(data=miceData, form3, family = binomial(link=logit))
glm_pooled <- pool(glm3)
I now which to simulate data from this model in an equlivivant way of the following:
form3 <- survived ~ sex + age * pclass - 1
glm3_ref <- glm(form3, family = binomial(link=logit), data = titanic)
yNew <- simulate(glm3_ref)[,1]
How can i do this?