IDEAS home Printed from https://ideas.repec.org/p/boc/chic11/9.html
   My bibliography  Save this paper

Using the Margins Command to Estimate and Interpret Adjusted Predictions and Marginal Effects

Author

Listed:
  • Richard Williams

    (University of Notre Dame)

Abstract

As Long & Freese show, it can often be helpful to compute predicted/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 many of the things that were previously done by Stata’s own adjust and mfx commands, as well as Long & Freese’s spost9 commands like prvalue. 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 may have dissuaded researchers from using it. This paper therefore shows how margins can easily replicate analyses done by older commands. It demonstrates how margins provides a superior means for dealing with interdependent variables (e.g. X and X^2; X1, X2, and X1 * X2; multiple dummies created from a single categorical variable), and is also superior for data that are svyset. The paper explains how the new asobserved option works and the substantive reasons for preferring it over the atmeans approach used by older commands. The paper primarily focuses on the computation of adjusted predictions but also shows how margins has the same advantages for computing marginal effects.

Suggested Citation

  • Richard Williams, 2011. "Using the Margins Command to Estimate and Interpret Adjusted Predictions and Marginal Effects," CHI11 Stata Conference 9, Stata Users Group.
  • Handle: RePEc:boc:chic11:9
    as

    Download full text from publisher

    File URL: http://fmwww.bc.edu/repec/chic2011/chi11_williams.pptx
    Download Restriction: no
    ---><---

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Alvaro Morales & Prakarsh Singh, 2014. "The Effect of Civil Conflict on Child Abuse: Evidence from Peru," HiCN Working Papers 187, Households in Conflict Network.
    2. Dornbusch, Friedrich & Neuhäusler, Peter, 2015. "Composition of inventor teams and technological progress – The role of collaboration between academia and industry," Research Policy, Elsevier, vol. 44(7), pages 1360-1375.
    3. David Córcoles & Carmen Díaz-Mora & Rosario Gandoy, 2015. "Export Survival in Global Production Chains," The World Economy, Wiley Blackwell, vol. 38(10), pages 1526-1554, October.
    4. Dornbusch, Friedrich & Brenner, Thomas, 2013. "Universities as local knowledge hubs under different technology regimes: New evidence from academic patenting," Working Papers "Firms and Region" R6/2013, Fraunhofer Institute for Systems and Innovation Research (ISI).
    5. Daniel Weimar & Pamela Wicker, 2017. "Moneyball Revisited," Journal of Sports Economics, , vol. 18(2), pages 140-161, February.
    6. Badran, Mona Farid, 2017. "Electronic Health Records Prospects in Egypt: A Demand-Side Perspective," 28th European Regional ITS Conference, Passau 2017 169447, International Telecommunications Society (ITS).
    7. Alvaro Morales & Prakarsh Singh, 2016. "“Face the bullet, spare the rod?” Evidence from the aftermath of the Shining Path Insurgency," HiCN Working Papers 191 updated, Households in Conflict Network.
    8. Badran, Mona Farid, 2019. "eHealth in Egypt: The demand-side perspective of implementing electronic health records," Telecommunications Policy, Elsevier, vol. 43(6), pages 576-594.
    9. Friedrich Dornbusch & Thomas Brenner, 2013. "Universities as local knowledge hubs under different technology regimes – New evidence from academic patenting," Working Papers on Innovation and Space 2013-10, Philipps University Marburg, Department of Geography.
    10. Prakarsh Singh & Alvaro Morales, 2015. "The Effect of Civil Conflict on Child Abuse: Evidence from Peru," NCID Working Papers 04/2015, Navarra Center for International Development, University of Navarra.
    11. Nga T Q Nguyen & Paul Cockwell & Alexander P Maxwell & Matthew Griffin & Timothy O’Brien & Ciaran O’Neill, 2018. "Chronic kidney disease, health-related quality of life and their associated economic burden among a nationally representative sample of community dwelling adults in England," PLOS ONE, Public Library of Science, vol. 13(11), pages 1-12, November.
    12. Cheryl Carleton & Mary Kelly, 2019. "Alternative Work Arrangements and Job Satisfaction," Atlantic Economic Journal, Springer;International Atlantic Economic Society, vol. 47(3), pages 293-309, September.
    13. Ori Heffetz & Daniel B. Reeves, 2016. "Difficulty to Reach Respondents and Nonresponse Bias: Evidence from Large Government Surveys," NBER Working Papers 22333, National Bureau of Economic Research, Inc.

    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:chic11:9. 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.