mice.impute.pmm(y, ry, x, ...)
y
(TRUE
=observed, FALSE
=missing)length(y)
rows and p
columns containing
complete covariates.sum(!ry)
with imputationsy
by predictive mean matching, based on Rubin (1987, p. 168, formulas a and b).
The procedure is as follows:
yobs
beta andymis
beta*ymis
, find the observation with closest predicted
value, and take its observed value iny
as the imputation.y
, NOT on observedy
.