simputation icon indicating copy to clipboard operation
simputation copied to clipboard

Problem with impute_rhd (random hot deck) for multiple values

Open MichaelLeviValensin opened this issue 4 years ago • 0 comments

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) image

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 image

Thanks for your help

MichaelLeviValensin avatar Aug 03 '21 06:08 MichaelLeviValensin