effect_summary | R Documentation |
This averages direct or indirect effects across settings j, leading to the effect estimates given in equation (10) of the preprint.
effect_summary(effects)
effects |
The output from direct_effect or indirect_effect. A data.frame containing effect estimates for each variable and indirect/direct setting along rows. |
A version of the input with all indirect/direct settings averaged over.
direct_effect indirect_effect
# example with null data
exper <- demo_joy() |>
mediation_data("PHQ", "treatment", starts_with("ASV"))
multimedia(exper) |>
estimate(exper) |>
direct_effect() |>
effect_summary()
# example with another dataset
exper <- demo_spline(tau = c(2, 1)) |>
mediation_data(starts_with("outcome"), "treatment", "mediator")
multimedia(exper) |>
estimate(exper) |>
direct_effect() |>
effect_summary()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.