π¨New R package! {easymediation}π¨
The *Simplest* and *Most Correct* Way to Do Causal Mediation Analysis
Are you tired of explaining mediation analysis to your colleagues? Just send them this package.
https://github.com/rpsychologist/easymediation
The *Simplest* and *Most Correct* Way to Do Causal Mediation Analysis
Are you tired of explaining mediation analysis to your colleagues? Just send them this package.
https://github.com/rpsychologist/easymediation
Comments
U <- rnorm(n)
X <- rbinom(n, 1, plogis(0.5 * U))
M <- 0.8 * U + 0.3 * X + rnorm(n)
Y <- 0.5 * M + 1.2 * U + rnorm(n)
data.frame(id = 1:n, X, M, Y)
- Overwrite all known R mediation functions
- Reference and print all relevant literature to console
This made my day, thank you
*mediated