Converts a vimmi object to long format and uses mice::as.mids() to create a proper mids object. This enables use of mice::pool(), mice::with.mids(), and other mice infrastructure.

as.mids.vimmi(x, ...)

Arguments

x

A vimmi object

...

Currently unused

Value

A mids object (from the mice package)

Examples

if (FALSE) { # \dontrun{
result <- vimpute(sleep, method = "ranger", m = 5,
                  boot = TRUE, uncert = "normalerror")
mids_obj <- as.mids.vimmi(result)
# Now use mice infrastructure:
# fits <- with(mids_obj, lm(Sleep ~ Dream + Span))
# mice::pool(fits)
} # }