IDEAS home Printed from https://ideas.repec.org/a/tsj/stataj/v12y2012i2p191-213.html
   My bibliography  Save this article

From resultssets to resultstables in Stata

Author

Listed:
  • Roger B. Newson

    (National Heart and Lung Institute)

Abstract

The listtab package supersedes the listtex package. It inputs a list of variables and outputs them as a table in one of several formats, including TeX, LaTeX, HTML, Microsoft Rich Text Format, or possibly future XML-based formats. It works with a team of four other packages: sdecode, chardef, xrewide, and ingap, which are downloaded from the Statistical Software Components archive. The sdecode package is an extension of decode; it allows the user to add prefixes or suffixes and to output exponents as TeX, HTML, or Rich Text Format superscripts. It is called by another package, bmjcip, to convert estimates, confidence limits, and p-values from numeric to string. The chardef package is an extension of char define; it allows the user to define a characteristic for a list of variables, adding prefixes or suffixes. The xrewide package is an extension of reshape wide; it allows the user to store additional results in variable characteristics or local macros. The ingap package inserts gap observations into a dataset to form gap rows when the dataset is converted to a table. Together, these packages form a general toolkit to convert Stata datasets (or resultssets) to tables, complete with row labels and column labels. Examples are demonstrated using LaTeX and also using the rtfutil package to create Rich Text Format documents. This article uses data from the Avon Longitudinal Study of Parents and Children, based at Bristol University, UK. Copyright 2012 by StataCorp LP.

Suggested Citation

  • Roger B. Newson, 2012. "From resultssets to resultstables in Stata," Stata Journal, StataCorp LP, vol. 12(2), pages 191-213, June.
  • Handle: RePEc:tsj:stataj:v:12:y:2012:i:2:p:191-213
    Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj12-2/st0254/
    as

    Download full text from publisher

    File URL: http://www.stata-journal.com/article.html?article=st0254
    File Function: link to article purchase
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Ben Jann, 2007. "Making regression tables simplified," Stata Journal, StataCorp LP, 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 LP, vol. 3(3), pages 245-269, September.
    3. Adam Jacobs, 2009. "Improving the output capabilities of Stata with Open Document Format xml," United Kingdom Stata Users' Group Meetings 2009 06, Stata Users Group.
    Full references (including those not matched with items on IDEAS)

    Citations

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


    Cited by:

    1. Roger Newson, 2022. "Resultssets in resultsframes in Stata 16-plus," London Stata Conference 2022 01, Stata Users Group.
    2. Roger B. Newson, 2023. "Customized Markdown and .docx tables using listtab and docxtab," UK Stata Conference 2023 01, Stata Users Group.
    3. Roger Newson, 2013. "Creating factor variables in resultssets and other datasets," United Kingdom Stata Users' Group Meetings 2013 01, Stata Users Group.

    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. 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.
    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. David Roodman, 2022. "Schooling and Labor Market Consequences of School Construction in Indonesia: Comment," Papers 2207.09036, arXiv.org, revised Mar 2024.
    4. 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.
    5. Hlavac, Marek, 2016. "TableMaker: An Excel Macro for Publication-Quality Tables," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 70(c03).
    6. 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.
    7. Höglinger, Marc & Diekmann, Andreas, 2017. "Uncovering a Blind Spot in Sensitive Question Research: False Positives Undermine the Crosswise-Model RRT," Political Analysis, Cambridge University Press, vol. 25(1), pages 131-137, January.
    8. Daniel Homocianu, 2023. "Exploring the Predictors of Co-Nationals’ Preference over Immigrants in Accessing Jobs—Evidence from World Values Survey," Mathematics, MDPI, vol. 11(3), pages 1-29, February.
    9. Hannes Kröger & Rasmus Hoffmann, 2018. "The association between CVD-related biomarkers and mortality in the Health and Retirement Survey," Demographic Research, Max Planck Institute for Demographic Research, Rostock, Germany, vol. 38(62), pages 1933-2002.
    10. Dagmar Brožová & Jan Zouhar, 2022. "The effect of court-mandated mediation on the length of court proceedings in the Czech Republic," European Journal of Law and Economics, Springer, vol. 53(3), pages 485-508, June.
    11. Diriwaechter, Patric & Shvartsman, Elena, 2018. "The anticipation and adaptation effects of intra- and interpersonal wage changes on job satisfaction," Journal of Economic Behavior & Organization, Elsevier, vol. 146(C), pages 116-140.
    12. Przepiorka, Wojtek, 2013. "Buyers pay for and sellers invest in a good reputation: More evidence from eBay," Journal of Behavioral and Experimental Economics (formerly The Journal of Socio-Economics), Elsevier, vol. 42(C), pages 31-42.
    13. Kröger, Hannes & Hoffmann, Rasmus, 2018. "The Association between Cvd-Related Biomarkers and Mortality in the Health and Retirement Survey," EconStor Open Access Articles and Book Chapters, ZBW - Leibniz Information Centre for Economics, vol. 38, pages 1933-2002.
    14. Ben Jann, 2016. "Creating LaTeX documents from within Stata using texdoc," Stata Journal, StataCorp LP, vol. 16(2), pages 245-263, June.
    15. 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.
    16. 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.
    17. 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.
    18. Raymond P. Guiteras & Ahnjeong Kim & Brian Quistorff & Clayson Shumway, 2023. "statacons: An SCons-based build tool for Stata," Stata Journal, StataCorp LP, vol. 23(1), pages 148-196, March.
    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. Hannes Kröger & Rasmus Hoffmann & Lasse Tarkiainen & Pekka Martikainen, 2018. "Comparing Observed and Unobserved Components of Childhood: Evidence From Finnish Register Data on Midlife Mortality From Siblings and Their Parents," Demography, Springer;Population Association of America (PAA), vol. 55(1), pages 295-318, February.

    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:tsj:stataj:v:12:y:2012:i:2:p:191-213. 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: Christopher F. Baum or Lisa Gilmore (email available below). General contact details of provider: http://www.stata-journal.com/ .

    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.