texteffect: Discovering Latent Treatments in Text Corpora and Estimating Their Causal Effects

Implements the approach described in Fong and Grimmer (2016) <https://aclweb.org/anthology/P/P16/P16-1151.pdf> for automatically discovering latent treatments from a corpus and estimating the average marginal component effect (AMCE) of each treatment. The data is divided into a training and test set. The supervised Indian Buffet Process (sibp) is used to discover latent treatments in the training set. The fitted model is then applied to the test set to infer the values of the latent treatments in the test set. Finally, Y is regressed on the latent treatments in the test set to estimate the causal effect of each treatment.

Version: 0.3
Depends: R (≥ 3.3), MASS, boot, ggplot2
Published: 2019-03-24
DOI: 10.32614/CRAN.package.texteffect
Author: Christian Fong
Maintainer: Christian Fong <christianfong at stanford.edu>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
Materials: ChangeLog
CRAN checks: texteffect results

Documentation:

Reference manual: texteffect.pdf

Downloads:

Package source: texteffect_0.3.tar.gz
Windows binaries: r-devel: texteffect_0.3.zip, r-release: texteffect_0.3.zip, r-oldrel: texteffect_0.3.zip
macOS binaries: r-release (arm64): texteffect_0.3.tgz, r-oldrel (arm64): texteffect_0.3.tgz, r-release (x86_64): texteffect_0.3.tgz, r-oldrel (x86_64): texteffect_0.3.tgz
Old sources: texteffect archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=texteffect to link to this page.