baselinetable: A command for creating one- and two-way tables of summary statistics
Susan Donath ()
Additional contact information
Susan Donath: University of Melbourne
Stata Journal, 2018, vol. 18, issue 2, 327-344
Abstract:
In this article, I describe baselinetable, a community-contributed command for creating one- and two-way tables of summary statistics for a list of numeric variables. Unlike other Stata tabulation commands such as tabulate, table, or tabstat, the variables forming the table rows can be a mixture of contin- uous (summarized by mean, standard deviation, etc.) and categorical (summarized by percentages and frequencies). baselinetable provides considerable flexibility in the way the results are displayed. In particular, the summary statistics and their presentation can be different for each row variable. Additional features in- clude several options for displaying counts of missing and nonmissing data points and the ability to restrict results to subgroups of the data for individual row vari- ables. The contents of the table can be saved as a data file or text file, or they can be exported to Excel. The motivation for baselinetable is the descriptive table commonly seen in health research publications in which the baseline charac- teristics of two or more groups are compared. This descriptive table usually has only one column for each group, generally with at least two summary statistics in each column (for example, mean and standard deviation for continuous vari- ables or frequency and percentage for categorical variables). The baselinetable command supports reproducible research by enabling researchers to easily create tables whose contents can be used unchanged in publications. Copyright 2018 by StataCorp LP.
Keywords: baselinetable; summary statistics table; health research tables (search for similar items in EconPapers)
Date: 2018
References: Add references at CitEc
Citations:
Downloads: (external link)
http://www.stata-journal.com/article.html?article=st0524 link to article purchase
http://www.stata-journal.com/software/sj18-2/st0524/ (text/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:tsj:stataj:v:18:y:2018:i:2:p:327-344
Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html
Access Statistics for this article
Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins
More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().