Learn R Programming

⚠️There's a newer version (2.6.2) of this package.Take me there.

twang (version 2.6)

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

Version

Install

install.packages('twang')

Monthly Downloads

4,617

Version

2.6

License

GPL-3 | file LICENSE

Maintainer

Lane Burgette

Last Published

December 6th, 2023

Functions in twang (2.6)

mnps

Propensity score estimation for multiple treatments
plot.mnps

Plots for mnps objects
print.mnps

Default print statement for mnps class
plot.ps

Plots for ps objects
print.mniptw

Default print statement for mniptw class
print.summary.iptw

Produces a summary table for iptw object
print.ps

Default print statement for ps class
raceprofiling

Traffic stop data
sensitivity

Function to run sensitivity analysis described in Ridgeway's paper; currently works only for ATT.
means.table

Extract table of means from an`mnps` object
print.dxwts

Default print statement for dxwts class
print.summary.mniptw

Produces a summary table for mniptw object
print.iptw

Default print statement for iptw class
print.summary.mnps

Produces a summary table for mnps object
summary.iptw

Summarize a iptw object
stop.methods

Stop methods (e.g. "es.mean", "ks.mean", etc.) object, used only for backward compatibility
summary.ps

Summarize a ps object
summary.mniptw

Summarize a mniptw object
plot.dxwts

Plot dxwts
twang-package

twang: Toolkit for Weighting and Analysis of Nonequivalent Groups
print.summary.ps

Produces a summary table for ps object
iptwExWide

Example data for iptw function (wide version)
ps

Gradient boosted propensity score estimation
plot.mniptw

Plot mniptw
plot.iptw

Plots for iptw objects
lalonde

Lalonde's National Supported Work Demonstration data
summary.mnps

Summarize a mnps object
boxplot.mnps

Boxplot for `mnps` objects
bal.table

Compute the balance table.
displayPlots

Display plots
dx.wts

Compute diagnostics assessing covariates balance.
get.weights

Extract propensity score weights.
get.weights.num

Get numerators to stabilize propensity score weights for `iptw` fits.
get.weights.unstab

Extract unstabilized propensity score weights for `iptw` fits
iptw

Inverse probability of treatment weighting for marginal structural models.
desc.wts

Diagnosis of weights
boxplot.ps

Boxplot for `ps` objects
lindner

Lindner Center data on 996 PCI patients analyzed by Kereiakes et al. (2000)
AOD

Subset of Alcohol and Other Drug treatment data
egsingle

US Sustaining Effects study
bal.stat

Calculate weighted balance statistics
mnIptwExLong

Example data for iptw function (long version, more than two treatments).
iptwExLong

Example data for iptw function (long version)
mnIptwExWide

Example data for iptw function (wide version, more than two treatments)