Using the Margins Command to Estimate and Interpret Adjusted Predictions and Marginal Effects
Open accessThe DOI matches its Crossref record; 3 of the 3 references it cites were found in a registry or an index.
Abstract
Many researchers and journals place a strong emphasis on the sign and statistical significance of effects—but often there is very little emphasis on the substantive and practical significance of the findings. As Long and Freese (2006, Regression Models for Categorical Dependent Variables Using Stata [Stata Press]) show, results can often be made more tangible by computing predicted or expected values for hypothetical or prototypical cases. Stata 11 introduced new tools for making such calculations—factor variables and the margins command. These can do most of the things that were previously done by Stata's own adjust and mfx commands, and much more. Unfortunately, the complexity of the margins syntax, the daunting 50-page reference manual entry that describes it, and a lack of understanding about what margins offers over older commands that have been widely used for years may have dissuaded some researchers from examining how the margins command could benefit them. In this article, therefore, I explain what adjusted predictions and marginal effects are, and how they can contribute to the interpretation of results. I further explain why older commands, like adjust and mfx, can often produce incorrect results, and how factor variables and the margins command can avoid these errors. The relative merits of different methods for setting representative values for variables in the model (marginal effects at the means, average marginal effects, and marginal effects at representative values) are considered. I shows how the marginsplot command (introduced in Stata 12) provides a graphical and often much easier means for presenting and understanding the results from margins, and explain why margins does not present marginal effects for interaction terms.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Regression Models for Categorical Dependent Variables Using Stata
Guzmán, J. (2013) · Puerto Rico health sciences journal · Cited by 5,304
(2009) · Cited by 4,453
Estimation of Marginal Effects using Margeff
Bartus, T. (2005) · The Stata Journal: Promoting communications on statistics and Stata · doi:10.1177/1536867x0500500303 · Cited by 457
Cited by
Tsugawa, Y., Jena, A. B., Figueroa, J. F., Orav, E. J., Blumenthal, D. M., & Jha, A. K. (2017) · JAMA Internal Medicine · doi:10.1001/jamainternmed.2016.7875 · Cited by 1,063
Best Practices for Estimating, Interpreting, and Presenting Nonlinear Interaction Effects
Mize, T. (2019) · Sociological Science · doi:10.15195/v6.a4 · Cited by 966
Muller, C. J., & MacLehose, R. F. (2014) · International Journal of Epidemiology · doi:10.1093/ije/dyu029 · Cited by 775
The Governance Effect of the Media's News Dissemination Role: Evidence from Insider Trading
DAI, L., PARWADA, J. T., & ZHANG, B. (2015) · Journal of Accounting Research · doi:10.1111/1475-679x.12073 · Cited by 479
Klein, S. L., Pekosz, A., Park, H.-S., Ursin, R. L., Shapiro, J. R., Benner, S. E., Littlefield, K., Kumar, S., Naik, H. M., Betenbaugh, M. J., et al. (2020) · Journal of Clinical Investigation · doi:10.1172/jci142004 · Cited by 432
Metadata
- Authors
- Williams, R.
- Venue
- The Stata Journal: Promoting communications on statistics and Stata
- Publisher
- SAGE Publications
- Published
- 2012-06
- Volume
- 12
- Issue
- 2
- Pages
- 308-331
- ISSN
- 1536-867X (ISSN-L)
- 1536-8734
- OpenAlex
- W1547683213
- Cited by
- 2,141
- References
- 3
- FWCI
- 46.74
- Type
- journal article
- Language
- en
- Open access
- bronze
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.