Helper function for extracting marginal distributions at particular values of the mediator.
1 2 3 4 5 6 7 8 | extract_marginal(
Q_M_n_i,
mediator = "M1",
M_i,
unique_M_values,
a_val = "a_star",
...
)
|
Q_M_n_i |
An entry in the |
mediator |
Which mediator are you interested in extracting the marginal of? Possible
values are |
M_i |
The particular value at which you are interested in evaluating the marginal density.
Note that the general idea is to |
unique_M_values |
The unique values that the selected |
a_val |
Which treatment are you interested in extracting the marginal under? Possible values
are |
... |
Not used |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.