Description Usage Arguments Value
View source: R/optimal_sink_wrap.R
Given a vector of sink values, generates an optimal match for each.
1 | optimal_sink_wrap(dist_mat, treat_vec, n_sinks, tol_val, weight_vec = NULL)
|
dist_mat |
Matrix of pairwise distances. |
treat_vec |
Vector representing all subjects; 0 for control, 1 for treated. |
n_sinks |
Default NULL, vector of sink values to use. |
tol_val |
Tolerance for solving optimal matches (how far from the true optimal value is acceptable). Speed with large value, accuracy with small. |
weight_vec |
Default |
List of lists.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.