Learn R Programming

NADIA (version 0.4.2)

replace_overimputes: Replace overimputes. Used in mice.reuse.

Description

Replace all overimputed data points in the mice imputation of one variable. Overimputed data points are those data that were not missing in the original but were marked for imputation manually and imputed by the imputation procedure.

Usage

replace_overimputes(data, imp, j, i)

Arguments

data

data.frame the original, non-imputed dataset (mids$data)

imp

list of data.frames all imputations stored in the mids object

j

character scalar the name of the variable whose imputations should be replaced

i

character or integer scalar the number of the current imputation (can be 1:m)