subImputations {eatGADS} | R Documentation |
Substitute imputed values.
Description
Substitute imputed values in a imputed GADSdat_imp
object with original, not imputed values from a GADSdat
.
Usage
subImputations(GADSdat, GADSdat_imp, varName, varName_imp = varName, id, imp)
Arguments
GADSdat |
A |
GADSdat_imp |
A |
varName |
A character vector of length 1 containing the variable name in |
varName_imp |
A character vector of length 1 containing the variable name in |
id |
A character vector of length 1 containing the unique identifier column of both |
imp |
A character vector of length 1 containing the imputation number in |
Details
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
.
Value
The modified GADSdat_imp
..
Examples
# tbd
[Package eatGADS version 1.1.0 Index]