optimal_match: optimal_match

Description Usage Arguments

View source: R/optimal_match.R

Description

Computes optimal matches. Alternative to "greedy" and "with replacement".

Usage

1
optimal_match(dist_mat, treat_vec, n_sinks = 0, tol_val = 1e-04)

Arguments

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.


rzgross/uRbanmatching documentation built on Dec. 22, 2021, 8:20 p.m.