get_matches: Similarity and distance computation between documents or...

View source: R/get_matches.R

get_matchesR Documentation

Similarity and distance computation between documents or features

Description

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

Usage

get_matches(x, Z, dist.name, caliper_fun, text_caliper = 0.001, tol = 0)

Arguments

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)


reaganmozer/textmatch documentation built on March 7, 2024, 2:41 p.m.