mice_inits | R Documentation |
mice::mice
Function
Defines initial arguments of imputation method and
predictor matrix for mice::mice
function.
mice_inits(dat, ignore=NULL)
dat |
Dataset |
ignore |
Vector of variables which should be ignored in imputation |
List with entries
method |
Imputation method |
predictorMatrix |
Predictor matrix |
See mice::make.predictorMatrix
and
mice::make.method
for generating an initial predictor matrix
and a vector of imputation methods.
## Not run:
#############################################################################
# EXAMPLE 1: Inits for mice imputation
#############################################################################
data(data.ma04, package="miceadds")
dat <- data.ma04
res <- miceadds::mice_inits(dat, ignore=c("group") )
str(res)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.