if (FALSE) {
data(studentratings)
fml <- ReadDis + SES ~ ReadAchiev + (1|ID)
imp <- panImpute(studentratings, formula = fml, n.burn = 1000, n.iter = 100, m = 5)
# write data file and SPSS syntax
write.mitmlSAV(imp, filename = "imputation")
}
Run the code above in your browser using DataLab