get_CEM: Create a data frame of pairs of documents obtained through...

View source: R/get_CEM.R

get_CEMR Documentation

Create a data frame of pairs of documents obtained through coarsened exact matching (CEM) within a specified number of bins and return indices for matched sets

Description

Create a data frame of pairs of documents obtained through coarsened exact matching (CEM) within a specified number of bins and return indices for matched sets

Usage

get_CEM(x, Z, rep.name, cuts, caliper_fun, verbose = FALSE, SR = NULL)

Arguments

x

a text representation

Z

a vector of treatment indicators

rep.name

a string or character with the name of the matching method

cuts

a function for how the variables will be binned. Defaults to "median"

Value

A data.frame of indices for matched pairs of documents


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