Learn R Programming

texteffect (version 0.3)

Discovering Latent Treatments in Text Corpora and Estimating Their Causal Effects

Description

Implements the approach described in Fong and Grimmer (2016) 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.

Copy Link

Version

Install

install.packages('texteffect')

Monthly Downloads

166

Version

0.3

License

GPL (>= 2)

Maintainer

Christian Fong

Last Published

March 24th, 2019

Functions in texteffect (0.3)

sibp_exclusivity

Calculate Exclusivity Metric
sibp_top_words

Report Words Most Associated with each Treatment
sibp_param_search

Search Parameter Configurations for Supervised Indian Buffet Process (sibp)
infer_Z

Infer Treatments on the Test Set
sibp

Supervised Indian Buffet Process (sibp) for Discovering Treatments
sibp_amce

Infer Treatments on the Test Set
BioSample

Sample from the Fong and Grimmer Wikipedia Biography Data