Description Usage Arguments Examples
Calculates subgroup margins by running on subset of data. Doesn't matter for OLS but does matter, e.g., for logit.
1 2 3 4 5 6 7 8 |
mod |
glm |
subgrp_var |
Subgroup variable, character. The subgroup variable must be a categorical variable |
treat_var |
Treatment variable, character |
mod_df |
Dataframe used to estimate model, defaults to mod$data |
weight |
Weight parameter to pass to 'modmarg::marg', defaults to mod$prior.weights |
... |
Other parameters passed to modmarg::marg |
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.