select_matches: Given a model for match quality and a corpus of documents,...

View source: R/select_matches.R

select_matchesR Documentation

Given a model for match quality and a corpus of documents, calculate the estimated match quality of each potential pairing of treated and control documents and return a matched dataset containing all pairs of documents with estimated quality above a specified threshold

Description

Given a model for match quality and a corpus of documents, calculate the estimated match quality of each potential pairing of treated and control documents and return a matched dataset containing all pairs of documents with estimated quality above a specified threshold

Usage

select_matches(corpus, Z, mod, threshold)

Arguments

corpus

description

Z

treatment indicator

threshold

for quality scores to return

Value

A data.frame of matched pairs of documents


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