dat <- expand.table(LSAT7)
(mod1 <- mirt(dat, 1))
M2(mod1)
#M2 imputed with missing data present (run in parallel)
dat[sample(1:prod(dim(dat)), 250)] <- NA
mod2 <- mirt(dat, 1)
mirtCluster()
Theta <- fscores(mod2, full.scores=TRUE)
M2(mod2, Theta=Theta, impute = 10)
Run the code above in your browser using DataLab