This is the work horse function that implements most of the functionality of impute.
See the user level function impute() for further details.
Arguments
- draws
A
drawsobject created bydraws().- references
A named vector. Identifies the references to be used for reference-based imputation methods. Should be of the form
c("Group1" = "Reference1", "Group2" = "Reference2"). IfNULL(default), the references are assumed to be of the formc("Group1" = "Group1", "Group2" = "Group2"). This argument cannot beNULLif an imputation strategy (as defined bydata_ice[[vars$strategy]]in the call to draws) other thanMARis set.- update_strategy
An optional
data.frame. Updates the imputation method that was originally set via thedata_iceoption indraws(). See the details section for more information.- strategies
A named list of functions. Defines the imputation functions to be used. The names of the list should mirror the values specified in
strategycolumn ofdata_ice. Default =getStrategies(). SeegetStrategies()for more details.- condmean
logical. If TRUE will impute using the conditional mean values, if values will impute by taking a random draw from the multivariate normal distribution.
