Home  >>  Archives  >>  Volume 12 Number 2  >>  st0260

The Stata Journal
Volume 12 Number 2: pp. 308-331



Subscribe to the Stata Journal
cover

Using the margins command to estimate and interpret adjusted predictions and marginal effects

Richard Williams
Department of Sociology
University of Notre Dame
Notre Dame, IN
Richard.A.Williams.5@nd.edu
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.
Terms of use     View this article (PDF)

View all articles by this author: Richard Williams

View all articles with these keywords: margins, marginsplot, adjusted predictions, marginal effects

Download citation: BibTeX  RIS

Download citation and abstract: BibTeX  RIS