Extracts the calcated matches for indexing
An object created by calculate_matches()
. Such an
object has class "match_list"
.
The name of the indvidual for which matches are wanted. If unspecified, it takes the first individual.
The name of the outcome variable. If unspecified, it takes the first outcome.
A character vector containing the name of the treatment variables.
The name of the category level within the treatment variable.
The row numbers in
data
corresponding to the matched children. The length
of the list will be always equal to m
if replace == TRUE
,
but may be shorter if replace == FALSE
if the donors are exhausted. The
length is zero if no matches can be found.
van Buuren, S. (2014). Curve matching: A data-driven technique to improve individual prediction of childhood growth. Annals of Nutrition & Metabolism, 65(3), 227-233. van Buuren, S. (2012). Flexible imputation of missing data. Boca Raton, FL: Chapman & Hall/CRC.