Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

Arguments

dat

Dataset

ignore

Vector of variables which should be ignored in imputation

Value

List with entries

method

Imputation method

predictorMatrix

Predictor matrix

See Also

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

Examples

#############################################################################
# EXAMPLE 1: Inits for mice imputation
#############################################################################

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

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

miceadds

Some Additional Multiple Imputation Functions, Especially for 'mice'

v3.11-6
GPL (>= 2)
Authors
Alexander Robitzsch [aut,cre] (<https://orcid.org/0000-0002-8226-3132>), Simon Grund [aut] (<https://orcid.org/0000-0002-1290-8986>), Thorsten Henke [ctb]
Initial release
2021-01-21 11:48:47

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.