options for calculating marginal effects at the mean values of a dataset (i.e., the marginal effects at the mean), an average of the marginal effects at each value of a dataset (i.e., the average marginal effect), marginal effects at representative values, and any of those operations on various subsets of a dataset. (The functionality of Stata’s command to produce <em>predictive</em> margins is not ported, as this is easily obtained from the <a href="https://cran.r-project.org/package=prediction">predicti