powered by
Routes to make_design() with id "mediation_analysis": make_design("mediation_analysis", N = N, a = a, ...).
make_design()
"mediation_analysis"
make_design("mediation_analysis", N = N, a = a, ...)
mediation_analysis_designer( N = 200, a = 1, b = 0.4, c = 0, d = 0.5, rho = 0, args_to_fix = NULL )
A design object.
Sample size.
Effect of treatment on the latent index for the mediator.
Effect of the mediator on the outcome when Z = 0.
Interaction of the mediator and treatment in the outcome.
Direct effect of treatment on the outcome when M = 0.
Correlation between mediator and outcome shocks (-1 to 1).
Ignored. Present for compatibility with DesignLibrary 0.1.
mediation_analysis_designer(N = 40, a = 0.5, d = 0.2)
Run the code above in your browser using DataLab