mitml objects to filewrite.mitml.RdSaves objects of class mitml in R binary formats (similar to ?save).
write.mitml(x, filename, drop = FALSE)None (invisible NULL).
if (FALSE) { # \dontrun{
data(studentratings)
fml <- ReadDis + SES ~ ReadAchiev + (1|ID)
imp <- panImpute(studentratings, formula = fml, n.burn = 1000, n.iter = 100, m = 5)
# write full 'mitml' object (default)
write.mitml(imp, filename = "imputation.Rdata")
# drop parameters of the imputation model
write.mitml(imp, filename = "imputation.Rdata", drop = TRUE)
} # }