Substitute imputed values in a imputed GADSdat_imp
object with original, not imputed values from a GADSdat
.
subImputations(GADSdat, GADSdat_imp, varName, varName_imp = varName, id, imp)
The modified GADSdat_imp
..
A GADSdat
object.
A GADSdat
object.
A character vector of length 1 containing the variable name in GADSdat
.
A character vector of length 1 containing the variable name in GADSdat_imp
.
A character vector of length 1 containing the unique identifier column of both GADSdat
.
A character vector of length 1 containing the imputation number in GADSdat_imp
.
There are two cases in which values are substituted: (a) there are missings in varName_imp
, (b) values have been imputed
even though there is valid information in varName
.