Helper function to marginalize outcome regression over mediator distributions. Used to get each of the relevant nuisance parameters needed to evaluate the total, direct, and indirect effects.
1 2 3 4 5 6 7 8 | get_Qbarbar(
Qbar_n,
Q_M_n,
unique_M1_values,
unique_M2_values,
all_mediator_values,
...
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.