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
The impact of standards and regulation on innovation in uncertain markets
Blind, K., Petersen, S. S., & Riillo, C. A. F. (2017) · Research Policy · doi:10.1016/j.respol.2016.11.003 · Cited by 366
Orriols, L., & Cordero, G. (2016) · South European Society and Politics · doi:10.1080/13608746.2016.1198454 · Cited by 348
What’s in a p? Reassessing best practices for conducting and reporting hypothesis-testing research
Meyer, K. E., van Witteloostuijn, A., & Beugelsdijk, S. (2017) · Journal of International Business Studies · doi:10.1057/s41267-017-0078-8 · Cited by 318
Black-white differences in severe maternal morbidity and site of care
Howell, E. A., Egorova, N., Balbierz, A., Zeitlin, J., & Hebert, P. L. (2016) · American Journal of Obstetrics and Gynecology · doi:10.1016/j.ajog.2015.08.019 · Cited by 317
Global and regional trends in COPD mortality, 1990–2010
Burney, P. G. J., Patel, J., Newson, R., Minelli, C., & Naghavi, M. (2015) · European Respiratory Journal · doi:10.1183/09031936.00142414 · Cited by 311
Post-traumatic Stress Disorder by Gender and Veteran Status
Lehavot, K., Katon, J. G., Chen, J. A., Fortney, J. C., & Simpson, T. L. (2018) · American Journal of Preventive Medicine · doi:10.1016/j.amepre.2017.09.008 · Cited by 296
The Disability Employment Puzzle: A Field Experiment on Employer Hiring Behavior
Ameri, M., Schur, L., Adya, M., Bentley, F. S., McKay, P., & Kruse, D. (2018) · ILR Review · doi:10.1177/0019793917717474 · Cited by 294
Race, Space, and Cumulative Disadvantage: A Case Study of the Subprime Lending Collapse
Rugh, J. S., Albright, L., & Massey, D. S. (2015) · Social Problems · doi:10.1093/socpro/spv002 · Cited by 286
Short-term costs of preeclampsia to the United States health care system
Stevens, W., Shih, T., Incerti, D., Ton, T. G. N., Lee, H. C., Peneva, D., Macones, G. A., Sibai, B. M., & Jena, A. B. (2017) · American Journal of Obstetrics and Gynecology · doi:10.1016/j.ajog.2017.04.032 · Cited by 286
ED door-to-antibiotic time and long-term mortality in sepsis.
Peltan, I. D., Brown, S. M., Bledsoe, J. R., Sorensen, J., Samore, M. H., Allen, T. L., & Hough, C. L. (2019) · Chest · doi:10.1016/j.chest.2019.02.008 · Cited by 243
Strategies of legitimation: MNEs and the adoption of CSR in response to host-country institutions
Rathert, N. (2016) · Journal of International Business Studies · doi:10.1057/jibs.2016.19 · Cited by 233
Asante-Appiah, B., & Lambert, T. A. (2023) · Review of Accounting Studies · doi:10.1007/s11142-022-09706-z · Cited by 230
Planned Out-of-Hospital Birth and Birth Outcomes
Snowden, J. M., Tilden, E. L., Snyder, J., Quigley, B., Caughey, A. B., & Cheng, Y. W. (2015) · New England Journal of Medicine · doi:10.1056/nejmsa1501738 · Cited by 226
Rohrer, J. M., & Murayama, K. (2023) · Advances in Methods and Practices in Psychological Science · doi:10.1177/25152459221140842 · Cited by 216
Economic Burden of COPD in the Presence of Comorbidities
Mannino, D. M., Higuchi, K., Yu, T.-C., Zhou, H., Li, Y., Tian, H., & Suh, K. (2015) · Chest · doi:10.1378/chest.14-2434 · Cited by 210
Cadmium blood and urine concentrations as measures of exposure: NHANES 1999–2010
Adams, S. V., & Newcomb, P. A. (2014) · Journal of Exposure Science & Environmental Epidemiology · doi:10.1038/jes.2013.55 · Cited by 197
Physician age and outcomes in elderly patients in hospital in the US: observational study
Tsugawa, Y., Newhouse, J. P., Zaslavsky, A. M., Blumenthal, D. M., & Jena, A. B. (2017) · BMJ · doi:10.1136/bmj.j1797 · Cited by 188
Drakulich, K., Wozniak, K. H., Hagan, J., & Johnson, D. (2020) · Criminology · doi:10.1111/1745-9125.12239 · Cited by 187
Drivers of agricultural land-use change in the Argentine Pampas and Chaco regions
Piquer-Rodríguez, M., Butsic, V., Gärtner, P., Macchi, L., Baumann, M., Gavier Pizarro, G., Volante, J. N., Gasparri, I. N., & Kuemmerle, T. (2018) · Applied Geography · doi:10.1016/j.apgeog.2018.01.004 · Cited by 186
How does increasing impervious surfaces affect urban flooding in response to climate variability?
Sohn, W., Kim, J.-H., Li, M.-H., Brown, R. D., & Jaber, F. H. (2020) · Ecological Indicators · doi:10.1016/j.ecolind.2020.106774 · Cited by 174
Downie, A., Hancock, M., Jenkins, H., Buchbinder, R., Harris, I., Underwood, M., Goergen, S., & Maher, C. G. (2020) · British Journal of Sports Medicine · doi:10.1136/bjsports-2018-100087 · Cited by 172
Enhancing Rigor in Quantitative Entrepreneurship Research
Maula, M., & Stam, W. (2020) · Entrepreneurship Theory and Practice · doi:10.1177/1042258719891388 · Cited by 167
Rattay, P., Michalski, N., Domanska, O. M., Kaltwasser, A., De Bock, F., Wieler, L. H., & Jordan, S. (2021) · PLOS ONE · doi:10.1371/journal.pone.0251694 · Cited by 166
The determinants of private flood mitigation measures in Germany — Evidence from a nationwide survey
Osberghaus, D. (2015) · Ecological Economics · doi:10.1016/j.ecolecon.2014.12.010 · Cited by 164
Yamamoto, A., Needleman, J., Gelberg, L., Kominski, G., Shoptaw, S., & Tsugawa, Y. (2019) · Social Science & Medicine · doi:10.1016/j.socscimed.2019.112585 · Cited by 163
Internalized Stigma, Social Distance, and Disclosure of HIV Seropositivity in Rural Uganda
Tsai, A. C., Bangsberg, D. R., Kegeles, S. M., Katz, I. T., Haberer, J. E., Muzoora, C., Kumbakumba, E., Hunt, P. W., Martin, J. N., & Weiser, S. D. (2013) · Annals of Behavioral Medicine · doi:10.1007/s12160-013-9514-6 · Cited by 160
Delays From First Medical Contact to Antibiotic Administration for Sepsis*
Seymour, C. W., Kahn, J. M., Martin-Gill, C., Callaway, C. W., Yealy, D. M., Scales, D., & Angus, D. C. (2017) · Critical Care Medicine · doi:10.1097/ccm.0000000000002264 · Cited by 159
Intensive treatment and severe hypoglycemia among adults with type 2 diabetes
McCoy, R. G., Lipska, K. J., Yao, X., Ross, J. S., Montori, V. M., & Shah, N. D. (2016) · JAMA Internal Medicine · doi:10.1001/jamainternmed.2016.2275 · Cited by 143
Neighborhood foreclosures, racial/ethnic transitions, and residential segregation
Hall, M., Crowder, K., & Spring, A. (2015) · American Sociological Review · doi:10.1177/0003122415581334 · Cited by 138
Bornmann, L., & Marx, W. (2015) · Journal of Informetrics · doi:10.1016/j.joi.2015.01.006 · Cited by 138
Kelaher, M., Ng, L., Knight, K., & Rahadi, A. (2016) · International Journal of Epidemiology · doi:10.1093/ije/dyw313 · Cited by 131
Castellacci, F. (2015) · World Development · doi:10.1016/j.worlddev.2014.12.014 · Cited by 129
Handwashing with soap after potential faecal contact: global, regional and country estimates
Wolf, J., Johnston, R., Freeman, M. C., Ram, P. K., Slaymaker, T., Laurenz, E., & Prüss-Ustün, A. (2019) · International Journal of Epidemiology · doi:10.1093/ije/dyy253 · Cited by 107
Rapsey, C. M., Scott, K. M., & Patterson, T. (2019) · Journal of Affective Disorders · doi:10.1016/j.jad.2018.10.095 · Cited by 97
Delays in emergency care and mortality during major U.S. marathons.
Jena, A. B., Mann, N. C., Wedlund, L. N., & Olenski, A. (2017) · New England Journal of Medicine · doi:10.1056/nejmsa1614073 · Cited by 91
Intimate partner violence and mental health in Bolivia
Meekers, D., Pallin, S. C., & Hutchinson, P. (2013) · BMC Women's Health · doi:10.1186/1472-6874-13-28 · Cited by 90
Emissions savings from equitable energy demand reduction
Büchs, M., Cass, N., Mullen, C., Lucas, K., & Ivanova, D. (2023) · Nature Energy · doi:10.1038/s41560-023-01283-y · Cited by 87
Gawande, R., To, M. N., Pine, E., Griswold, T., Creedon, T. B., Brunel, A., Lozada, A., Loucks, E. B., & Schuman-Olivier, Z. (2019) · Journal of General Internal Medicine · doi:10.1007/s11606-018-4739-5 · Cited by 75
Forke, C. M., Myers, R. K., Fein, J. A., Catallozzi, M., Localio, A. R., Wiebe, D. J., & Grisso, J. A. (2018) · Child Abuse & Neglect · doi:10.1016/j.chiabu.2018.07.031 · Cited by 74
Dornbusch, F., & Neuhäusler, P. (2015) · Research Policy · doi:10.1016/j.respol.2015.04.003 · Cited by 67
Shifrer, D. (2016) · Learning and Instruction · doi:10.1016/j.learninstruc.2015.12.001 · Cited by 55
Dawson, J., Campbell, K. L., Craig, J. C., Tong, A., Teixeira-Pinto, A., Brown, M. A., Howard, K., Howell, M., Khalid, R., Sud, K., et al. (2021) · American Journal of Kidney Diseases · doi:10.1053/j.ajkd.2020.11.015 · Cited by 49
Time to vasopressor initiation and organ failure progression in early septic shock
Black, L. P., Puskarich, M. A., Smotherman, C., Miller, T., Fernandez, R., & Guirgis, F. W. (2020) · JACEP Open · doi:10.1002/emp2.12060 · Cited by 36
Discrimination of minority welfare claimants in the real world: The effect of implicit prejudice.
Assouline, M., Gilad, S., & Ben-Nun Bloom, P. (2022) · Journal of Public Administration Research and Theory · doi:10.1093/jopart/muab016 · Cited by 33
Tsai, A. C., & Weiser, S. D. (2014) · AIDS and Behavior · doi:10.1007/s10461-014-0794-z · Cited by 31
Understanding household water-use behaviour in the city of Johannesburg, South Africa
Murwirapachena, G. (2021) · Water Policy · doi:10.2166/wp.2021.157 · Cited by 30
Trajectories of cognitive change following stroke: stepwise decline towards dementia in the elderly
Delgado, J., Masoli, J., Hase, Y., Akinyemi, R., Ballard, C., Kalaria, R. N., & Allan, L. M. (2022) · Brain Communications · doi:10.1093/braincomms/fcac129 · Cited by 28
Edmonds, A. T., Bensley, K. M., Hawkins, E. J., & Williams, E. C. (2021) · Substance Abuse · doi:10.1080/08897077.2020.1803176 · Cited by 24
Outcomes of hyperbolic tapering of antidepressants
van Os, J., & Groot, P. C. (2023) · Therapeutic Advances in Psychopharmacology · doi:10.1177/20451253231171518 · Cited by 22
Park, S., & Chen, J. (2020) · BMC Geriatrics · doi:10.1186/s12877-020-01888-y · Cited by 21
Predictors of Sleep Apnea in the Canadian Population
van der Spuy, I., Zhao, G., Karunanayake, C., & Pahwa, P. (2018) · Canadian Respiratory Journal · doi:10.1155/2018/6349790 · Cited by 21
Shaikh, R. A., Simonsen, K. A., O’Keefe, A., Earley, M., Foxall, M., Islam, K. M., Person, A., Boyle, C., Sandkovsky, U., & Margalit, R. (2015) · Journal of Correctional Health Care · doi:10.1177/1078345815600447 · Cited by 18
Zoorob, M. J. (2018) · Pharmacoepidemiology and Drug Safety · doi:10.1002/pds.4417 · Cited by 17
McIvor, C., Vafai, Y., Kelly, B., O’Toole, S. E., Heys, M., Badrick, E., Iqbal, H., Pickett, K. E., Cameron, C., & Dickerson, J. (2022) · International Journal of Environmental Research and Public Health · doi:10.3390/ijerph192114316 · Cited by 16
Miyawaki, A., Jena, A. B., Gross, N., & Tsugawa, Y. (2023) · Annals of Internal Medicine · doi:10.7326/m22-3723 · Cited by 14
Domènech-Abella, J., Gabarrell-Pascuet, A., García-Mieres, H., Mortier, P., Felez-Nobrega, M., Cristóbal-Narváez, P., Vilagut, G., Olaya, B., Alonso, J., & Haro, J. M. (2023) · Psychiatry Research · doi:10.1016/j.psychres.2023.115327 · Cited by 10
Belitski, M., & Grigore, A.-M. (2022) · European Planning Studies · doi:10.1080/09654313.2021.1985436 · Cited by 10
Coverage and determinants of maternal RSV vaccination in Japan: A nationwide survey
Okubo, Y., Honjo, R., & Tsuzuki, S. (2026) · Journal of Infection and Chemotherapy · doi:10.1016/j.jiac.2025.102892 · Cited by 7
Guo, Z., Weng, X., Lau, A. O. S., Ng, M. C. H., Wu, Y., Lam, T. H., & Wang, M. P. (2022) · Tobacco Induced Diseases · doi:10.18332/tid/156455 · Cited by 3
Moitra, E., Brick, L. A., Cancilliere, M. K., Elwy, A. R., Erbe, A. M., Fenn, N., Nunn, A. S., Salhaney, P., & Chan, P. A. (2023) · Contemporary Clinical Trials · doi:10.1016/j.cct.2023.107211 · Cited by 2
“Given these design parameters, the hypothesis that the active treatment condition (ABBT) results in greater reduction of depression/anxiety symptoms relative to TAU at month 9 will be tested with the sign and signifcance of the treatment group indicator, and expressed using marginal effects [43].”
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.