IDEAS home Printed from https://ideas.repec.org/p/bss/wpaper/1.html

Plotting regression coefficients and other estimates in Stata

Author

Listed:
  • Ben Jann

Abstract

Graphical presentation of regression results has become increasingly popular in the scientific literature, as graphs are much easier to read than tables in many cases. In Stata such plots can be produced by the -marginsplot- command. However, while -marginsplot- is very versatile and flexible, it has two major limitations: it can only process results left behind by -margins- and it can only handle one set of results at the time. In this article I introduce a new command called -coefplot- that overcomes these limitations. It plots results from any estimation command and combines results from several models into a single graph. The default behavior of -coefplot- is to plot markers for coefficients and horizontal spikes for confidence intervals. However, -coefplot- can also produce various other types of graphs. The capabilities of -coefplot- are illustrated in this article using a series of examples. A shorter version of this paper has been published in The Stata Journal 14(4): 708-737 (see: http://www.stata-journal.com/article.html?article=gr0059).

Suggested Citation

  • Ben Jann, 2013. "Plotting regression coefficients and other estimates in Stata," University of Bern Social Sciences Working Papers 1, University of Bern, Department of Social Sciences, revised 18 Sep 2017.
  • Handle: RePEc:bss:wpaper:1
    as

    Download full text from publisher

    File URL: https://boris.unibe.ch/48527/1/jann-2013-coefplot.pdf
    File Function: Revised version, 2017
    Download Restriction: no

    File URL: https://www.stata-journal.com/article.html?article=gr0059
    File Function: Published version, 2014
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. Ben Jann, 2007. "Making regression tables simplified," Stata Journal, StataCorp LLC, vol. 7(2), pages 227-244, June.
    2. Roger Newson, 2003. "Confidence intervals and p-values for delivery to the end user," Stata Journal, StataCorp LLC, vol. 3(3), pages 245-269, September.
    3. John Luke Gallup, 2012. "A new system for formatting estimation tables," Stata Journal, StataCorp LLC, vol. 12(1), pages 3-28, March.
    Full references (including those not matched with items on IDEAS)

    Citations

    Blog mentions

    As found by EconAcademics.org, the blog aggregator for Economics research:
    1. Coefplot for Stata
      by Mark Egan in Economics, Psychology and Policy on 2014-04-04 00:43:00
    2. Why a new study of the Mariel boatlift has not changed our views on the benefits of immigration
      by ? in The GiveWell Blog on 2015-10-21 19:00:00

    Citations

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


    Cited by:

    1. Temple, Jonathan & Van de Sijpe, Nicolas, 2017. "Foreign aid and domestic absorption," Journal of International Economics, Elsevier, vol. 108(C), pages 431-443.
    2. Hagen, Tobias & Waldeck, Stefanie, 2014. "Using panel econometric methods to estimate the effect of milk consumption on the mortality rate of prostate and ovarian cancer," Working Paper Series 03, Frankfurt University of Applied Sciences, Faculty of Business and Law.
    3. Ben Jann & Simon Seiler, 2014. "A new methodological approach for studying intergenerational mobility with an application to Swiss data," University of Bern Social Sciences Working Papers 5, University of Bern, Department of Social Sciences.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Roger B. Newson, 2012. "From resultssets to resultstables in Stata," Stata Journal, StataCorp LLC, vol. 12(2), pages 191-213, June.
    2. Dang, Hai-Anh & Lanjouw, Peter & Luoto, Jill & McKenzie, David, 2014. "Using repeated cross-sections to explore movements into and out of poverty," Journal of Development Economics, Elsevier, vol. 107(C), pages 112-128.
    3. Isphording, Ingo E. & Otten, Sebastian, 2014. "Linguistic barriers in the destination language acquisition of immigrants," Journal of Economic Behavior & Organization, Elsevier, vol. 105(C), pages 30-50.
    4. Michael Kind & John P. Haisken-DeNew, 2012. "Sons‘ Unexpected Long Term Scarring due to Fathers‘ Unemployment," Ruhr Economic Papers 0375, Rheinisch-Westfälisches Institut für Wirtschaftsforschung, Ruhr-Universität Bochum, Universität Dortmund, Universität Duisburg-Essen.
    5. Michael Lokshin & Zurab Sajaia, 2008. "Creating print-ready tables in Stata," Stata Journal, StataCorp LLC, vol. 8(3), pages 374-389, September.
    6. Jacques Muthusi & Samuel Mwalili & Peter Young, 2019. "%svy_logistic_regression: A generic SAS macro for simple and multiple logistic regression and creating quality publication-ready tables using survey or non-survey data," PLOS ONE, Public Library of Science, vol. 14(9), pages 1-14, September.
    7. David Roodman, 2022. "Schooling and Labor Market Consequences of School Construction in Indonesia: Comment," Papers 2207.09036, arXiv.org, revised Oct 2025.
    8. Michael Kind & John P. Haisken-DeNew, 2012. "Sons' Unexpected Long Term Scarring Due to Fathers' Unemployment," Melbourne Institute Working Paper Series wp2012n21, Melbourne Institute of Applied Economic and Social Research, The University of Melbourne.
    9. Raymond P. Guiteras & Ahnjeong Kim & Brian Quistorff & Clayson Shumway, 2023. "statacons: An SCons-based build tool for Stata," Stata Journal, StataCorp LLC, vol. 23(1), pages 148-196, March.
    10. Ben Jann, 2017. "Creating HTML or Markdown documents from within Stata using webdoc," Stata Journal, StataCorp LLC, vol. 17(1), pages 3-38, March.
    11. Koster, Paul R., 2025. "Income inequality and social welfare: Implications for the indirect effects of transport policies," Transport Policy, Elsevier, vol. 168(C), pages 182-197.
    12. Ciani, Emanuele, 2016. "Retirement, pension eligibility and home production," Labour Economics, Elsevier, vol. 38(C), pages 106-120.
    13. Sprengholz, Maximilian, 2025. "Nativity gaps in income poverty in Germany: Examining the role of gendered work intensity and wage patterns in couple households," OSF Preprints ms6jn_v1, Center for Open Science.
    14. Jakob, Martina & Combet, Benita, 2020. "Educational aspirations and decision-making in a context of poverty. A test of rational choice models in El Salvador," SocArXiv w9bkq, Center for Open Science.
    15. Hannes Kröger & Johan Fritzell & Rasmus Hoffmann, 2016. "The Association of Levels of and Decline in Grip Strength in Old Age with Trajectories of Life Course Occupational Position," PLOS ONE, Public Library of Science, vol. 11(5), pages 1-16, May.
    16. Carsten Sauer & Peter Valet & Stefan Liebig, 2013. "The Impact of within and between Occupational Inequalities on People's Justice Perceptions towards Their Own Earnings," SOEPpapers on Multidisciplinary Panel Data Research 567, DIW Berlin, The German Socio-Economic Panel (SOEP).
    17. Hlavac, Marek, 2016. "TableMaker: An Excel Macro for Publication-Quality Tables," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 70(c03).
    18. Vincenzo Atella & Federico Belotti & Ludovico Carrino & Andrea Piano Mortari, 2017. "The future of Long Term Care in Europe. An investigation using a dynamic microsimulation model," CEIS Research Paper 405, Tor Vergata University, CEIS, revised 08 May 2017.
    19. Martina Jakob & Benita Combet, 2020. "Educational aspirations and decision-making in a context of poverty. A test of rational choice models in El Salvador," University of Bern Social Sciences Working Papers 33, University of Bern, Department of Social Sciences, revised 01 Aug 2020.
    20. John Luke Gallup, 2012. "A programmer's command to build formatted statistical tables," Stata Journal, StataCorp LLC, vol. 12(4), pages 655-673, December.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    JEL classification:

    • C88 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Other Computer Software

    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:bss:wpaper:1. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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: Ben Jann (email available below). General contact details of provider: https://www.sowi.unibe.ch/ .

    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.