EconPapers    
Economics at your fingertips  
 

btable: Extensive summary tables in Stata

Lukas Bütikofer
Additional contact information
Lukas Bütikofer: University of Bern

Swiss Stata Conference 2022 from Stata Users Group

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.

Date: 2022-11-30
References: Add references at CitEc
Citations:

Downloads: (external link)
http://repec.org/csug2022/Buetikofer-Bern2022-btable.pdf
http://repec.org/csug2022/Buetikofer-Bern2022-btable.html

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:csug22:13

Access Statistics for this paper

More papers in Swiss Stata Conference 2022 from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-19
Handle: RePEc:boc:csug22:13