convert an amelia object to a mice object
Source:R/margot_amelia_to_mice.R
margot_amelia_to_mice.Rdconvert an amelia object to a mice object
Value
a `mids` object compatible with the `mice` package, structured with the original dataset and imputed values
Examples
if (FALSE) { # \dontrun{
# load Amelia package and perform imputation
library(Amelia)
data(africa) # example dataset from Amelia package
amelia_output <- amelia(x = africa, m = 5, idvars = "country") # impute data
# convert amelia object to mice object
mids_obj <- margot_amelia_to_mice(amelia_output)
# verify mids object
print(mids_obj)
} # }