get_matches | R Documentation |
These functions compute distance matrices from a text representation where each row is a document and each column is a feature to measure distance over based on treatment indicator Z
get_matches(x, Z, dist.name, caliper_fun, text_caliper = 0.001, tol = 0)
x |
a matrix of pairwise distances for all potential matches of treatment and control units. See pair_distances. |
Z |
a vector of treatment indicators |
dist.name |
a string or character with the name of the matching method |
caliper_fun |
an optional function specifying the caliper to enforce when matching |
text_caliper |
should a text-based caliper be enforced? If so, specify the caliper (as a quantile of the distribution of pairwise document distances) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.