This data was randomly generated and based off the example data provided in the SAS macro <https://www.hsph.harvard.edu/tyler-vanderweele/tools-and-tutorials/>

mediation_example

Format

A data table with 250 rows and 5 variables:

x

Random binary variable (0,1)

m_01

Random binary variable (0,1)

m

Random continuous variable (0.006 to 3.158)

y

Random continuous variable (0 to 1)

c

Random continuous variable (-1.272 to 3.582)