View source: R/optimal_match.R
Computes optimal matches. Alternative to "greedy" and "with replacement".
1 | optimal_match(dist_mat, treat_vec, n_sinks = 0, tol_val = 1e-04)
|
dist_mat |
Matrix of pairwise distances. |
treat_vec |
Vector representing all subjects; 0 for control, 1 for treated. |
n_sinks |
single value |
tol_val |
Tolerance for solving optimal matches (how far from the true optimal value is acceptable). Speed with large value, accuracy with small. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.