Learn R Programming

twang (version 2.6.1)

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

2,797

Version

2.6.1

License

GPL-3 | file LICENSE

Maintainer

Last Published

July 22nd, 2024

Functions in twang (2.6.1)

lalonde

Lalonde's National Supported Work Demonstration data
iptw

Inverse probability of treatment weighting for marginal structural models.
plot.iptw

Plots for iptw objects
print.dxwts

Default print statement for dxwts class
iptwExLong

Example data for iptw function (long version)
lindner

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

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

Extract table of means from an`mnps` object
plot.mnps

Plots for mnps objects
plot.ps

Plots for ps objects
mnps

Propensity score estimation for multiple treatments
summary.iptw

Summarize a iptw object
plot.dxwts

Plot dxwts
raceprofiling

Traffic stop data
stop.methods

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

Default print statement for ps class
print.iptw

Default print statement for iptw class
print.summary.iptw

Produces a summary table for iptw object
sensitivity

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

Summarize a mnps object
summary.mniptw

Summarize a mniptw object
print.mniptw

Default print statement for mniptw class
print.mnps

Default print statement for mnps class
print.summary.ps

Produces a summary table for ps object
ps

Gradient boosted propensity score estimation
summary.ps

Summarize a ps object
print.summary.mnps

Produces a summary table for mnps object
print.summary.mniptw

Produces a summary table for mniptw object
twang-package

twang: Toolkit for Weighting and Analysis of Nonequivalent Groups
plot.mniptw

Plot mniptw
dx.wts

Compute diagnostics assessing covariates balance.
bal.stat

Calculate weighted balance statistics
egsingle

US Sustaining Effects study
get.weights

Extract propensity score weights.
displayPlots

Display plots
bal.table

Compute the balance table.
get.weights.num

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

Extract unstabilized propensity score weights for `iptw` fits
desc.wts

Diagnosis of weights
boxplot.mnps

Boxplot for `mnps` objects
boxplot.ps

Boxplot for `ps` objects
mnIptwExLong

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

Example data for iptw function (wide version)
AOD

Subset of Alcohol and Other Drug treatment data