Abstract
In this article, I review Create and Export Tables Using Stata, by Michael N. Mitchell (2025, Stata Press).
Introduction
Good tables are excellent ways of sharing information with others. Creating them can involve a mix of automatic and manual steps. Eliminating manual steps can make tables free from transcribing errors and easy to reproduce. Over the years, several community-contributed commands have helped Stata users create, automate, and share various tables. Recently, Stata introduced new commands to create many kinds of customized tables and share them in various formats; these commands are the
The
Unfamiliar commands can take time to learn, especially if they are complex. To help one understand how to use these commands, several resources are available. Stata’s official resources relating to these commands are conveniently listed on this FAQ page: https://www.stata.com/support/faqs/reporting/official-resources-available/. This page has links to Stata’s PDF documentation, recordings of past webinars, web training, Stata Blog posts, YouTube videos, feature descriptions, FAQs, and advice on how to reach out for help.
Michael N. Mitchell’s Create and Export Tables Using Stata is another such resource. Being new to these commands, I read this book to test its stated purpose: “to help you create a table of statistical results that you can export as a Word document, a
file”.
Content
Before describing the content of each chapter, I wish to share this link, which has some details about the book and its contents: https://www.stata.com/bookstore/create-and-export-tablesusing-stata/.
In chapter 1, Mitchell overviews how to create tables in Stata, overviews the book, and introduces making and exporting tables, as well as provides some commands that are used in the book.
In chapter 2, Mitchell shows how to quickly create various popular table layouts, specifically the following:
Tables of summary statistics Tables of regression output Tables showing what can be extracted by using the Tables featuring parts of correlation matrices, sometimes supplemented by means and standard deviations Tables relating to the modeling of longitudinal data for two groups (specifically a table of marginal means and a table of between-group differences in mean change from baseline at follow-up time points)
There is a step-by-step explanation of how to achieve each table, with relevant Stata output and a picture of the table after it has been successfully exported to a Word document. The tables of summary statistics are often created with a single line of syntax using the
In chapter 3, Mitchell illustrates how to create more tables of summary statistics, with a little more explanation. Once again, the tables are mostly achieved with one use of the
In chapter 4, Mitchell illustrates how to create more tables of regression output using the
In chapter 5, Mitchell gives a deeper explanation of collections, how
In addition, Mitchell provides information on different ways of exporting tables to Word documents and other formats, describes various errors and how to overcome them, and describes and illustrates the
Strengths and weaknesses
As a newcomer to Stata’s recent commands to create and export tables, I found this book to be a good introduction to just what is possible in this space. Despite the book being 461 pages, it did not take me long to have a first read of big chunks of it. Throughout the book, concepts and commands are illustrated with simple examples. Many examples are similar, with one example building on the previous one. There is a fair amount of repetition. The pace of the book is gentle, and explanations are clear. Mitchell does not get bogged down in too much detail.
The book is organized such that readers can dive into parts that most interest them. This may be some of the examples in chapter 2 and parts of the following chapters and appendixes. Of course, reading parts that seem less relevant might also be beneficial.
Typing some of Mitchell’s syntax into Stata, I quickly re-created example tables. Then I set about creating some custom tables of my own. Things slowed down! Of course, figuring things out for the first time often takes some experimenting and reading. I reread parts of the book more slowly, understanding more each time I read. I did succeed in finding a way to create the tables I wanted. Using Mitchell’s book together with other official resources, I have started a repository of do-files to create a variety of tables that I see myself (and possibly colleagues) wanting.
I noticed some examples in Mitchell’s book that were similar to some in Stata’s documentation. I did not mind this. Mitchell sometimes takes a slightly different tack to approaching the same kind of problem. Even within the book, Mitchell may attack the same problem from slightly different angles. I found it helpful that Mitchell’s book used similar variables from a similar dataset to Stata’s documentation.
I found it curious that Mitchell did not write much about or much use the
I would have also liked to see other things, for example, a mention that the Tables Builder dialog box (
Conclusion
Create and Export Tables Using Stata is a well-written, example-laden introduction to creating and exporting tables. The book shows how to create various popular table layouts, which are mostly achieved by using the
I recommend the book as a launch pad for users motivated to learn how to automate the production of good tables using Stata’s latest commands.
Footnotes
About the author
Mark D. Chatfield is a senior statistician at The University of Queensland, where he collaborates on clinical trials with researchers in the Faculty of Health, Medicine and Behavioural Sciences. He has used Stata exclusively for over 20 years. In 2017, he adapted a community- contributed command that is similar in nature to the recently released
