R/causal_mediator.R
causal_mediator.Rd
This dataset contains 100 observations, generated under the following mechanism: X ~ N(0, 1) Z ~ X + N(0,1) Y ~ Z + N(0, 1)
causal_mediator
A dataframe with 100 rows and 3 variables:
x: exposure
x
z: a known factor (mediator)
z
y: outcome
y