mice.impute.fastpmm(y, ry, x, donors = 5, type = 1, ridge = 1e-05, ...)
y
(TRUE
=observed, FALSE
=missing)length(y)
rows and
p
columns containing complete covariates.donors
= 5
.type = 1
calculates the distance between the
predicted value of yobs
and the drawn values of
ymis
. Other choices are type = 0
(distance
between predi.norm.draw()
to prevent problems with
multicollinearity. The default is ridge = 1e-05
,
which means that 0.01 percent of the diagonal is added to
the cross-product. Larger ridges may result in 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
.Rubin, D.B. (1987). Multiple imputation for nonresponse in surveys. New York: Wiley.