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

impute_rhd: pool = "complete": If a record has multiple missings, imputations are taken from a different donors #31

Open
tatsianapek opened this issue Apr 7, 2021 · 2 comments
Labels

Comments

@tatsianapek
Copy link

In package specification there is defined that for impute_rhd when pool value is "complete" and "a record has multiple missings, all imputations are taken from a single donor", while it does not apply.

Example:
test <- data.frame(seq(1,15), seq(1,15))
colnames(test) <- c("num1", "num2")
test$num1[2:6] <- NA
test$num2[4:8] <- NA
set.seed(1000)
head(test %>% impute_rhd(num1 + num2 ~ 1, pool = "complete"), 10)

image

@markvanderloo
Copy link
Owner

Thank you Tatsiana, for taking the trouble of creating a simple example.

by coincidence I received a similar issue with impute_rhd this week. Will fix.

@MichaelLeviValensin
Copy link

I had the same problem

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

No branches or pull requests

3 participants