CRAN/E | twangMediation

twangMediation

Twang Causal Mediation Modeling via Weighting

Installation

About

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). 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.

Key Metrics

Version 1.2
R ≥ 2.10
Published 2022-08-16 617 days ago
Needs compilation? no
License GPL-3
CRAN checks twangMediation results

Downloads

Yesterday 5 0%
Last 7 days 40 -27%
Last 30 days 168 -11%
Last 90 days 628 -24%
Last 365 days 2.667 -10%

Maintainer

Maintainer

Dan McCaffrey

dmccaffrey@ets.org

Authors

Dan McCaffrey

aut / cre

Katherine Castellano

aut

Donna Coffman

aut

Brian Vegetabile

aut

Megan Schuler

aut

Haoyu Zhou

aut

Material

Reference manual
Package source

In Views

CausalInference

Vignettes

A tutorial for conducting causal mediation analysis with the twangMediation package

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

twangMediation archive

Depends

R ≥ 2.10

Imports

twang
gbm ≥ 1.5-3
graphics
stats
lattice
latticeExtra
survey

Suggests

knitr
xgboost