View source: R/all_bipartite_matches.R
Computes all matches for the given choice of matching method.
1 2 3 4 5 6 7 8 9 10 11 12 | all_bipartite_matches(
x_mat,
cov_x,
weight_list,
treat_vec,
match_method = c("with_replacement", "optimal", "greedy"),
n_sinks = 0L,
caliper_list = gen_caliper_list(),
propensity_list = match_propensity_list(NULL),
sqrt_mahal = TRUE,
tol_val = NULL
)
|
x_mat |
Input/design matrix |
cov_x |
The covariance of |
weight_list |
List of weight vectors. See 'generate_random_weights' to automatically generate a reasonable set of vectors. |
treat_vec |
Logical (or 1/0) vector, indicating treatment (or control). |
match_method |
"with_replacement", "optimal", or "greedy" |
n_sinks |
Number of potential matches that don't need to be matched. |
caliper_list |
Forces matches that are close on some metric. |
propensity_list |
Default NULL. List of propensity scores. |
sqrt_mahal |
Whether to use square root of Mahalanobis distances. |
tol_val |
For optimal matches, you can set a tolerance to be within optimality of, which can be zero for perfect optimality. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.