Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with impute_rhd (random hot deck) for multiple values #33

Open
MichaelLeviValensin opened this issue Aug 3, 2021 · 0 comments

Comments

@MichaelLeviValensin
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant