Description Usage Arguments Examples

Estimates the average causal mediation effect (AMCE) for all provided treatments. Can estimate clustered and/or robust standard errors.

1 2 |

`data` |
Data |

`post` |
Post treatment variable. |

`...` |
The treatment components (without quotes). |

`cluster` |
Variable indicating clusters if SEs should be clustered. |

`subgroup` |
Variable(s) indicating which subgroups, if any, to independently calculate AMCEs for. If multiple subgroups are provided, then it will iterate over each combination. |

`diff` |
If |

`subset` |
Subset to estimate AMCEs for. |

1 2 3 4 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.