Learn R Programming

miceadds (version 3.17-44)

mice_inits: Arguments for mice::mice Function

Description

Defines initial arguments of imputation method and predictor matrix for mice::mice function.

Usage

mice_inits(dat, ignore=NULL)

Value

List with entries

method

Imputation method

predictorMatrix

Predictor matrix

Arguments

dat

Dataset

ignore

Vector of variables which should be ignored in imputation

See Also

See mice::make.predictorMatrix and mice::make.method for generating an initial predictor matrix and a vector of imputation methods.

Examples

Run this code
if (FALSE) {
#############################################################################
# EXAMPLE 1: Inits for mice imputation
#############################################################################

data(data.ma04, package="miceadds")
dat <- data.ma04

res <- miceadds::mice_inits(dat, ignore=c("group") )
str(res)
}

Run the code above in your browser using DataLab