Other packages > Find by keyword >

twangMediation  

Twang Causal Mediation Modeling via Weighting
View on CRAN: Click here


Download and install twangMediation package within the R console
Install from CRAN:
install.packages("twangMediation")

Install from Github:
library("remotes")
install_github("cran/twangMediation")

Install by package version:
library("remotes")
install_version("twangMediation", "1.2")



Attach the package and use:
library("twangMediation")
Maintained by
Dan McCaffrey
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2021-07-27
Latest Update: 2022-08-16
Description:
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.
How to cite:
Dan McCaffrey (2021). twangMediation: Twang Causal Mediation Modeling via Weighting. R package version 1.2, https://cran.r-project.org/web/packages/twangMediation. Accessed 09 Jun. 2025.
Previous versions and publish date:
1.0 (2021-07-27 10:50), 1.1 (2021-12-13 15:40)
Other packages that cited twangMediation R package
View twangMediation citation profile
Other R packages that twangMediation depends, imports, suggests or enhances
Complete documentation for twangMediation
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

TrackReconstruction  
Reconstruct Animal Tracks from Magnetometer, Accelerometer, Depth and Optional Speed Data
Reconstructs animal tracks from magnetometer, accelerometer, depth and optional speed data.Designed ...
Download / Learn more Package Citations See dependency  
cancerGI  
Analyses of Cancer Gene Interaction
Functions to perform the following analyses: i) inferring epistasis from RNAi double knockdown data; ...
Download / Learn more Package Citations See dependency  
KRIS  
Keen and Reliable Interface Subroutines for Bioinformatic Analysis
Provides useful functions which are needed for bioinformatic analysis such as calculating linear pri ...
Download / Learn more Package Citations See dependency  
r2resize  
In-Text Resize for Images, Tables and Fancy Resize Containers in 'shiny', 'rmarkdown' and 'quarto' Documents
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency  
ggfx  
Pixel Filters for 'ggplot2' and 'grid'
Provides a range of filters that can be applied to layers from the 'ggplot2' package and its extens ...
Download / Learn more Package Citations See dependency  
free  
Flexible Regularized Estimating Equations
Unified regularized estimating equation solver. Currently the package includes one solver with the l ...
Download / Learn more Package Citations See dependency  

24,407

R Packages

207,311

Dependencies

65,910

Author Associations

24,331

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA