View source: R/textPS.R View source: R/get_MNIR.R
textPS | R Documentation |
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.
textPS(x, Z, verbose = FALSE, parallel = T, ...)
textPS(x, Z, verbose = FALSE, parallel = T, ...)
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. |
A data.frame MNIR sufficient reduction scores for a corpus
A data.frame MNIR sufficient reduction scores for a corpus
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.