Rdocumentation
powered by
Learn R Programming
twang (version 2.6.2)
Toolkit for Weighting and Analysis of Nonequivalent Groups
Description
Provides functions for propensity score estimating and weighting, nonresponse weighting, and diagnosis of the weights.
Copy Link
Link to current version
Version
Version
2.6.2
2.6.1
2.6
2.5
2.4
2.3
2.2
2.1
2.0
1.6
1.5
1.4-9.5
1.4-9.3
1.4-0
1.3-20
1.3-18
1.3-14
1.3-11
1.2-7
1.2-6
1.2-5
1.2-4
1.0-3
1.0-2
1.0-1
0.6-7
0.6-5
0.6-4
0.6-2
0.6-1
Install
install.packages('twang')
Monthly Downloads
4,744
Version
2.6.2
License
GPL-3 | file LICENSE
Maintainer
Lane Burgette
Last Published
December 23rd, 2025
Functions in twang (2.6.2)
Search all functions
boxplot.mnps
Boxplot for `mnps` objects
iptw
Inverse probability of treatment weighting for marginal structural models.
means.table
Extract table of means from an`mnps` object
get.weights.num
Get numerators to stabilize propensity score weights for `iptw` fits.
lindner
Lindner Center data on 996 PCI patients analyzed by Kereiakes et al. (2000)
iptwExWide
Example data for iptw function (wide version)
mnIptwExWide
Example data for iptw function (wide version, more than two treatments)
mnIptwExLong
Example data for iptw function (long version, more than two treatments).
print.mniptw
Default print statement for
mniptw
class
plot.iptw
Plots for
iptw
objects
print.mnps
Default print statement for
mnps
class
summary.ps
Summarize a
ps
object
sensitivity
Function to run sensitivity analysis described in Ridgeway's paper; currently works only for ATT.
print.iptw
Default print statement for
iptw
class
print.dxwts
Default print statement for
dxwts
class
summary.iptw
Summarize a
iptw
object
stop.methods
Stop methods (e.g. "es.mean", "ks.mean", etc.) object, used only for backward compatibility
raceprofiling
Traffic stop data
plot.mniptw
Plot
mniptw
print.ps
Default print statement for
ps
class
plot.dxwts
Plot
dxwts
mnps
Propensity score estimation for multiple treatments
twang-package
twang: Toolkit for Weighting and Analysis of Nonequivalent Groups
print.summary.ps
Produces a summary table for
ps
object
iptwExLong
Example data for iptw function (long version)
print.summary.iptw
Produces a summary table for
iptw
object
plot.mnps
Plots for
mnps
objects
print.summary.mniptw
Produces a summary table for
mniptw
object
plot.ps
Plots for
ps
objects
ps
Gradient boosted propensity score estimation
summary.mniptw
Summarize a
mniptw
object
print.summary.mnps
Produces a summary table for
mnps
object
summary.mnps
Summarize a
mnps
object
displayPlots
Display plots
boxplot.ps
Boxplot for `ps` objects
dx.wts
Compute diagnostics assessing covariates balance.
bal.table
Compute the balance table.
get.weights
Extract propensity score weights.
get.weights.unstab
Extract unstabilized propensity score weights for `iptw` fits
egsingle
US Sustaining Effects study
lalonde
Lalonde's National Supported Work Demonstration data
desc.wts
Diagnosis of weights
AOD
Subset of Alcohol and Other Drug treatment data
bal.stat
Calculate weighted balance statistics