Example code for tabout
This page contains all the example code for the tables shown in the Gallery on this website and in the User Guide. These files are also available from links inside the User Guide. They are nearly all Stata .do files but they are all shown here with a .txt extension. This is for your security. Clicking on them will open them in your browser window where you can inspect them before you save or download them.
You will need to rename the extensions to .do after you save them.
(If they do not require renaming, or use a different extension, this will be indicated).
Setup files
These files set up the data sets which are used in the examples.
Rename the extension to .do
Consolidated example files
These files contain all the example code in a single file.
Rename the extension to .do
Template files
These files are used in the template example.
Do NOT rename the extension. Leave them as .txt
Dynamic document example
These two files are used in the html dynamic document example.
Rename these extensions to .html
These two files are used in the LaTeX dynamic document example.
Do NOT rename the extensions. Leave them as .txt
Individual example files
These files are all of the individual table examples. The letter which follows the number indicates:
- a : tab delimited output
- b : tex output
- c : docx (Word) output
- d : xlsx (Excel) output
- e : html output
Rename the extension to .do