IDEAS home Printed from https://ideas.repec.org/p/boc/scsy26/03.html

Comparing effects within and across models using marginal effects

Author

Listed:
  • Trenton D. Mize

    (Purdue University)

Abstract

Comparing effects is a common task for the applied data analyst. For example, tests of interaction involve comparing the effects of one variable at multiple levels of another variable. Comparisons of effect sizes within models involve quantifying each focal variable's effect and testing their equality. Cross-model comparisons are also common, for example when comparing processes across different groups. Tests of attenuation like mediation similarly involve comparisons across multiple models. Despite their ubiquity, such tests have challenges: coefficients that do not quantify effects in the metric of interest, rescaling of coefficients in nonlinear and categorical models, and predictors on differing metrics. In this presentation, I detail the statistical underpinnings of within- and across-model comparisons, present a marginal effects framework that allows for comparisons across most any regression model or predictor type, and show how to automate these tests using the new suest2, mecompare, meinequality, and totalme commands. Compared with existing software, the new commands can be used for single or multiple models; single-level, multilevel, and longitudinal models; any amount of change for continuous predictors; summary measures for nominal and ordinal variables; comparisons across variables on different metrics; comparisons across different model types; and custom and nonstandard tests of effects. I demonstrate the utility of the approach and the new commands using publicly available social science data.

Suggested Citation

  • Trenton D. Mize, 2026. "Comparing effects within and across models using marginal effects," Sociology Virtual Symposium 2026 03, Stata Users Group.
  • Handle: RePEc:boc:scsy26:03
    as

    Download full text from publisher

    To our knowledge, this item is not available for download. To find whether it is available, there are three options:
    1. Check below whether another version of this item is available online.
    2. Check on the provider's web page whether it is in fact available.
    3. Perform a
    for a similarly titled item that would be available.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:scsy26:03. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/stataea.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.