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

btable: Extensive summary tables in Stata

Author

Listed:
  • Lukas Bütikofer

    (University of Bern)

Abstract

The construction of summary tables is a very common, repetitive, and time-consuming step in data analysis. btable is a flexible, easy-to-use, and powerful algorithm for generating such tables in Stata. It is freely available from GitHub. btable can summarize continuous, categorical, count, and time-to-event variables within one table using various descriptive statistics that can be individually chosen and combined for each variable. If the summary is grouped, effect measures with confidence intervals and p-values are added. User-defined effect measures and tests can be integrated. The table is constructed in a two-step approach using two functions: btable produces an unformatted, raw table, which is then formatted by btable_format to produce a final, publication-ready table. By default, the raw table contains all descriptive statistics, and, if grouped, effect measures with confidence intervals and p-values. The formatting step allows for variable-specific selection and formatting. The two-step approach separates data analysis and formatting. The analysis step does not change the current dataset, and the raw data table can be loaded, formatted by hand, or used for other purposes. The formatting step can be modified without rerunning the analysis.

Suggested Citation

  • Lukas Bütikofer, 2022. "btable: Extensive summary tables in Stata," Swiss Stata Conference 2022 13, Stata Users Group.
  • Handle: RePEc:boc:csug22:13
    as

    Download full text from publisher

    File URL: http://repec.org/csug2022/Buetikofer-Bern2022-btable.pdf
    Download Restriction: no

    File URL: http://repec.org/csug2022/Buetikofer-Bern2022-btable.html
    Download Restriction: no
    ---><---

    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:csug22:13. 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.