textPS: Calculate a univariate projection and pairwise distances for...

View source: R/textPS.R View source: R/get_MNIR.R

textPSR Documentation

Calculate a univariate projection and pairwise distances for a corpus of text documents with binary treatment indicator Z.

Description

Calculate a univariate projection and pairwise distances for a corpus of text documents with binary treatment indicator Z.

Calculate a univariate projection and pairwise distances for a corpus of text documents with binary treatment indicator Z.

Usage

textPS(x, Z, verbose = FALSE, parallel = T, ...)

textPS(x, Z, verbose = FALSE, parallel = T, ...)

Arguments

x

a TDM or DFM text representation

Z

a vector of treatment indicators

normalize

should the TDM features be normalized? Defaults to TRUE.

return.df

Should the distances be returned as a data frame? Default is TRUE.

Value

A data.frame MNIR sufficient reduction scores for a corpus

A data.frame MNIR sufficient reduction scores for a corpus


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