For each missing value, finds k nearest observed values based on model score (predicted value) distance, then aggregates using the chosen method.
pmm_donor_selection(
y_obs,
score_obs,
score_miss,
k = 1L,
agg_method = "random"
)Numeric vector of length(score_miss) with imputed values
Observed values of target variable
Model scores for observed rows
Model scores for missing rows
Number of nearest donors
One of "mean", "median", "random", or a function