simputation icon indicating copy to clipboard operation
simputation copied to clipboard

fault in predictive mean matching

Open markvanderloo opened this issue 7 years ago • 1 comments

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.

markvanderloo avatar Jan 05 '18 15:01 markvanderloo

The clean solution will require a breaking, but not very problematic, change in the impute_pmm interface.

markvanderloo avatar Jan 12 '18 09:01 markvanderloo