Converts known imputation objects (e.g., amelia
, aregImpute
,
mi
, mids
, missForest
) to a list
of dataframes.
Details
This function attempts to unify imputation object formats in supplying
datasets. This is done by extracting the imputed datasets from the imputation
object and assembling them into a list
. If an unknown object is
supplied, the function will throw an error with the request to supply a list
of data frames instead.
This is a generic function: methods can be defined for it directly,
see methods(imp2list)
for a list of all available methods.