iptwExWide {twang} | R Documentation |
Example data for iptw function (wide version)
Description
These data are simulated to demonstrate the iptw
function in the "wide" data format.
Usage
data(lindner)
Format
A list with a covariate matrix and outcomes.
- gender
Gender.
- age
Age.
- use0
Baseline substance use
.
- use1
Use following first time period treatment.
- use2
Use following second time period treatment.
- tx1
Treatment indicator (first time period).
- tx2
Treatment indicator (second time period).
- tx3
Treatment indicator (third time period).
- covariates
Time-invariant covariates are
gender
andage
. The time-varying covariate isuse
. The reatment indicator is given bytx
. An individual level identifier is given inID
, and the time period istime
.- outcome
Post-treatment outcomes.
[Package twang version 2.6.1 Index]