High-Performance Open-Source Archive
Provides functions for estimating natural direct and indirect effects for mediation analysis. It uses weighting where the weights are functions of estimates of the probability of exposure or treatment assignment (Hong, G (2010). <https://cepa.stanford.edu/sites/default/files/workshops/GH_JSM%20Proceedings%202010.pdf> Huber, M. (2014). <doi:10.1002/jae.2341>). Estimation of probabilities can use generalized boosting or logistic regression. Additional functions provide diagnostics of the model fit and weights. The vignette provides details and examples.
| Version: | 1.2.1 |
| Depends: | R (≥ 2.10) |
| Imports: | twang, gbm (≥ 1.5-3), gridExtra, graphics, stats, lattice, latticeExtra, survey |
| Suggests: | R.rsp, testthat (≥ 3.0.0) |
| Published: | 2025-11-16 |
| DOI: | 10.32614/CRAN.package.twangMediation |
| Author: | Dan McCaffrey [aut, cre], Katherine Castellano [aut], Donna Coffman [aut], Brian Vegetabile [aut], Megan Schuler [aut], Haoyu Zhou [aut] |
| Maintainer: | Dan McCaffrey <dmccaffrey at ets.org> |
| License: | GPL-3 |
| NeedsCompilation: | no |
| Materials: | NEWS |
| In views: | CausalInference |
| CRAN checks: | twangMediation results |
| Reference manual: | twangMediation.html , twangMediation.pdf |
| Vignettes: |
twangMediation Tutorial (source) |
| Package source: | twangMediation_1.2.1.tar.gz |
| Windows binaries: | r-devel: twangMediation_1.2.1.zip, r-release: twangMediation_1.2.1.zip, r-oldrel: twangMediation_1.2.1.zip |
| macOS binaries: | r-release (arm64): twangMediation_1.2.1.tgz, r-oldrel (arm64): twangMediation_1.2.1.tgz, r-release (x86_64): twangMediation_1.2.1.tgz, r-oldrel (x86_64): twangMediation_1.2.1.tgz |
| Old sources: | twangMediation archive |
Please use the canonical form https://CRAN.R-project.org/package=twangMediation to link to this page.
Need mirroring services?
Contact our team at info@vpspulse.com.
Mirror powered by VPSpulse
Infrastructure sponsored by VPSPulse & Secure Payments by ArionPay.