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 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:
the value 5 is imputed, while 4.6 is expected.