simputation
simputation copied to clipboard
fault in predictive mean matching
the impute_pmm method uses the distance between donor and imputed values while it should use distance between predicted donor values and imputed values.
Example provided by Susie Jentoft by e-mail:
dat <- iris[1:15,]
dat[8,1] <- NA
impute_pmm(dat, Sepal.Length ~ Sepal.Width)
the value 5 is imputed, while 4.6 is expected.
The clean solution will require a breaking, but not very problematic, change in the impute_pmm interface.