match_cohort_ {vaccineff} | R Documentation |
This function constructs pairs of vaccinated and unvaccinated
individuals with similar characteristics. It relies on the matching
algorithm implemented in the package {MatchIt}
.
By default, the function uses method = "nearest"
, ratio = 1
, and
distance = "mahalanobis"
to perform the matching.
match_cohort_(data_set, vacc_status_col, exact = NULL, nearest = NULL)
data_set |
|
vacc_status_col |
Name of the column containing the vaccination. |
exact |
Name(s) of column(s) for |
nearest |
Named vector with name(s) of column(s) for |
data.frame
with the matched population.