mice_inits: Arguments for 'mice::mice' Function

Description Usage Arguments Value See Also Examples

View source: R/mice_inits.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
9
#############################################################################
# EXAMPLE 1: Inits for mice imputation
#############################################################################

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

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

alexanderrobitzsch/miceadds documentation built on Dec. 15, 2018, 8:18 p.m.