syn.pmm(y, x, xp, proper = FALSE, ...)n.n x p) of original covariates.k x p) of synthesised covariates.k with synthetic values of y.y by predictive mean matching. The procedure
is as follows: y.hat
and ysyn.hat for the original x and synthesised
xp covariates respectively.
ysyn.hat find donor
observations with the closest predicted values y.hat
(ties are broken by random selection), randomly sample one of
them and take its observed value y as the synthetic value.
The Bayesian version (for proper synthesis) includes additional step before computing predicted values:
syn