mitml
objects to filemitml
in R binary formats (similar to ?save
).
write.mitml(x, filename, drop=FALSE)
mitml
as produced by panImpute
and jomoImpute
..R
, .Rdata
).FALSE
.NULL
).panImpute
, jomoImpute
, read.mitml
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.R")
# drop parameters of the imputation model
write.mitml(imp, filename="imputation.R", drop=TRUE)
Run the code above in your browser using DataLab