twang: Toolkit for Weighting and Analysis of Nonequivalent Groups

Provides functions for propensity score estimating and weighting, nonresponse weighting, and diagnosis of the weights.

Version: 2.6
Depends: R (≥ 2.10)
Imports: gbm (≥ 1.5-3), survey, xtable, lattice, latticeExtra, MatrixModels, data.table, ggplot2, xgboost
Suggests: knitr
Published: 2023-12-06
DOI: 10.32614/CRAN.package.twang
Author: Matthew Cefalu, Greg Ridgeway, Dan McCaffrey, Andrew Morral, Beth Ann Griffin, and Lane Burgette
Maintainer: Lane Burgette <burgette at>
License: GPL-3 | file LICENSE
NeedsCompilation: yes
In views: CausalInference
CRAN checks: twang results [issues need fixing before 2024-07-30]


Reference manual: twang.pdf
Vignettes: Propensity scores for time-varying treatments: A tutorial for the iptw function
Propensity scores for multiple treatments: A tutorial for the mnps function
Toolkit for Weighting and Analysis of Nonequivalent Groups: A guide to the twang package


Package source: twang_2.6.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): twang_2.6.tgz, r-oldrel (arm64): twang_2.6.tgz, r-release (x86_64): twang_2.6.tgz, r-oldrel (x86_64): twang_2.6.tgz
Old sources: twang archive

Reverse dependencies:

Reverse depends: OVtool
Reverse imports: CERFIT, CIMTx, cmprskcoxmsm, IRexamples, paths, riAFTBART, SBdecomp, semicmprskcoxmsm, twangMediation
Reverse suggests: cobalt, lmtp, optweight


Please use the canonical form to link to this page.