S3 class for storing multiple imputations from vimpute.
Stores the original data once and only the imputed values per variable per
imputation, for memory efficiency.
A vimmi object is returned by vimpute when m > 1.
It contains:
dataThe original data.frame with NAs intact (stored once).
impNamed list: for each variable with missings, a data.frame
with nmis rows and m columns of imputed values.
whereLogical matrix indicating which cells were imputed.
mInteger: number of imputations.
nmisNamed integer vector of missing counts per variable.
methodNamed list of imputation methods used per variable.
bootLogical: was bootstrap resampling used?
uncertCharacter: uncertainty method used.
callThe original function call.
Use complete.vimmi to extract completed datasets,
with.vimmi to fit models across imputations, and
as.mids.vimmi to convert to a mice mids object
for pooling with mice::pool().
vimpute, complete.vimmi,
with.vimmi, as.mids.vimmi
Other imputation methods:
hotdeck(),
impPCA(),
imputeCellEM(),
imputeCellIRMI(),
imputeCellM(),
imputeCellMCD(),
imputeCellwise(),
imputeRobust(),
imputeRobustChain(),
irmi(),
kNN(),
matchImpute(),
medianSamp(),
rangerImpute(),
regressionImp(),
sampleCat(),
vimpute(),
xgboostImpute()
if (FALSE) { # \dontrun{
# Multiple imputation with bootstrap and normal error uncertainty
result <- vimpute(sleep, method = "ranger", m = 5,
boot = TRUE, uncert = "normalerror")
print(result)
summary(result)
# Extract completed datasets
d1 <- complete(result, 1)
all_d <- complete(result, "all")
# Fit models and pool
fits <- with(result, lm(Sleep ~ Dream + Span))
# mice::pool(fits) # requires mice
} # }