Simulated dataset containing 10,000 i.i.d. observations organized in long format as person-time rows.
The binary exposure is TI
and binary outcome is Y.tplus1
. See /tests/
for R code that generated this data as well as R code that uses stremr to analyze this data.
1 |
A data frame with 10,000 observations and variables:
Unique subject identifier
Interger for current time period, range 0-16
Baseline confounder (time invariant)
Time since last monitoring event, set to 0 when N[t-1]=0 and then added one for each new period where N[t] is 0.
Time-varying confounder
Binary exposure variable
Administrative censoring indicator, always set to 0 unless the end of study is reached (t==16)
The random indicator of being monitored (having a visit), simulated as a Bernoulli RV with P(N(t)=1)=0.5
Indicator of the survival event at t
Counterfactual exposure under static intervention - always treat
Counterfactual exposure under dynamic intervention - treat only when highA1c is above 1 and the subject is being monitored
Poisson probability of counterfactual monitoring indicator being equal to 1
Poisson probability of counterfactual monitoring indicator being equal to 1
Bernoulli probability of counterfactual monitoring indicator being equal to 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.