View source: R/sim_mediation.R
sim_target_from_mediator | R Documentation |
This function takes a mediator matrix and simulates downstream outcomes or targets.
sim_target_from_mediator(M, mediator_effect_size = 0.5, sim_label = "sim_y")
M |
Vector or matrix of mediator variables. Multiple mediator variables are supported. Names or rownames must match across y and X, and Z and w (if provided). |
mediator_effect_size |
DEFAULT = 0.5. The proportion of variation in the simulated outcomes explained by the mediator. |
sim_target_from_mediator()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.