These data are simulated to demonstrate the `iptw`

function in the "long" data format.

1 |

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.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.