An example dataset from Valeri and VanderWeele (2015) <doi:10.1097/EDE.0000000000000253>.

vv2015

Format

A tibble with 100 rows and 7 variables:

id

Positive integer id.

x

Binary treatment assignment variable.

m

Binary mediator variable.

y

Time to event outcome variable.

cens

Binary censoring indicator. Censored is 1.

c

Continuous confounder variable.

event

Binary event indicator. Event is 1.