Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mnIptwExLong

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


Description

These data are simulated to demonstrate the iptw function in the "long" data format.

Usage

data(lindner)

Format

A list with a covariate matrix and outcomes.

covariates

Time-invariant covariates are gender and age. The time-varying covariate is use. The reatment indicator is given by tx. An individual level identifier is given in ID, and the time period is time.

outcome

Vector of post-treatment outcomes.


twang

Toolkit for Weighting and Analysis of Nonequivalent Groups

v2.0
GPL-3 | file LICENSE
Authors
Matthew Cefalu <Matthew_Cefalu@rand.org>, Greg Ridgeway, Dan McCaffrey, Andrew Morral, Beth Ann Griffin, and Lane Burgette
Initial release
2021-03-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.