-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hello
I have a problem with the random hot deck in the package simputation
I want to impute several variables that are linked (the sum equals 100) with the random hot deck on three criterias (with the option "complete")
capit_imput=impute_rhd(capit_mod,CAPITAL_W+CAPITAL_PERSMOR+CAPITAL_HORSW_FAM+CAPITAL_HORW_HORSFAM~ SIEGE_DEP+CDEX_COEF2017+OTE64_COEF2017,pool="complete")
But for some units, it seems that only one value is imputed
The first unit missing (with ind=TRUE) has to be imputed among two potential donors (SIEGE_DEP=10 CDEX_COEF2017=11, OTE64_COEF2017=1600)
It seems that the second unit is the donor with CAPITAL_W=10 but CAPITAL_PERSMOR is different of 90
Can you explain why ?
And when I set the model
capit_imput=impute_rhd(capit_mod,CAPITAL_PERSMOR+CAPITAL_W+CAPITAL_HORSW_FAM+CAPITAL_HORW_HORSFAM~ SIEGE_DEP+CDEX_COEF2017+OTE64_COEF2017,pool="complete")
The line is well imputated as if the order of the variables was worth with the complete option
Thanks for your help