R/utils.R
extract_marginal.RdHelper function for extracting marginal distributions at particular values of the mediator.
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 |