These data are simulated to demonstrate the
iptw function in the "wide" data format.
A list with a covariate matrix and outcomes.
Baseline substance use
Use following first time period treatment.
Use following second time period treatment.
Treatment indicator (first time period).
Treatment indicator (second time period).
Treatment indicator (third time period).
Time-invariant covariates are
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.