Package: texteffect 0.3
Christian Fong
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.
Authors:
texteffect_0.3.tar.gz
texteffect_0.3.tar.gz(r-4.5-noble)texteffect_0.3.tar.gz(r-4.4-noble)
texteffect_0.3.tgz(r-4.4-emscripten)texteffect_0.3.tgz(r-4.3-emscripten)
texteffect.pdf |texteffect.html✨
texteffect/json (API)
# Install 'texteffect' in R: |
install.packages('texteffect', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
- BioSample - Sample from the Fong and Grimmer Wikipedia Biography Data
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated 6 years agofrom:3d3e575e60. Checks:OK: 1 NOTE: 1. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Dec 16 2024 |
R-4.5-linux | NOTE | Dec 16 2024 |
Exports:infer_Zsibpsibp_amcesibp_amce_plotsibp_exclusivitysibp_param_searchsibp_rank_runssibp_top_words
Dependencies:bootclicolorspacefansifarverggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6RColorBrewerrlangscalestibbleutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Sample from the Fong and Grimmer Wikipedia Biography Data | BioSample |
Infer Treatments on the Test Set | infer_Z |
Supervised Indian Buffet Process (sibp) for Discovering Treatments | sibp |
Infer Treatments on the Test Set | sibp_amce sibp_amce_plot |
Calculate Exclusivity Metric | sibp_exclusivity sibp_rank_runs |
Search Parameter Configurations for Supervised Indian Buffet Process (sibp) | sibp_param_search |
Report Words Most Associated with each Treatment | sibp_top_words |