Twang Causal Mediation Modeling via Weighting
Compute the balance table for mediation object.
Calculate the actual effects
Check vector for NA or NAN values.
Describe the effects from a mediation object
Describe the effects
Compute diagnostics assessing covariates balance.
Plot the mediation
object.
Default print statement for mediation
class
Default print statement for mediation
class
Displays a useful description of a mediation
object.
Auxiliary function to swap treatment and control in one element of a d...
twangMediation: Twang Causal Mediation Modeling via Weighting
Calculate a weighted mean.
Weighted mediation analysis.
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.