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

cancer_data_setup.txt

nlsw_data_setup.txt

Consolidated example files

These files contain all the example code in a single file.
Rename the extension to .do

txt_examples.txt

tex_examples.txt

docx_examples.txt

xlsx_examples.txt

htm_examples.txt

Template files

These files are used in the template example.
Do NOT rename the extension. Leave them as .txt

oneway_basic_a.txt

oneway_basic_b.txt

oneway_basic_c.txt

oneway_basic_d.txt

oneway_basic_e.txt

Dynamic document example

These two files are used in the html dynamic document example.
Rename these extensions to .html

topblock.txt

bottomblock.txt

These two files are used in the LaTeX dynamic document example.
Do NOT rename the extensions. Leave them as .txt

topblock.txt

bottomblock.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

table1a.txt

table1b.txt

table1c.txt

table1d.txt

table1e.txt

table2a.txt

table2b.txt

table2c.txt

table2d.txt

table2e.txt

table3a.txt

table3b.txt

table3c.txt

table3d.txt

table3e.txt

table4a.txt

table4b.txt

table4c.txt

table4d.txt

table4e.txt

table5a.txt

table5b.txt

table5c.txt

table5d.txt

table5e.txt

table6a.txt

table6b.txt

table6c.txt

table6d.txt

table6e.txt

table7a.txt

table7b.txt

table7c.txt

table7d.txt

table7e.txt

table8a.txt

table8b.txt

table8c.txt

table8d.txt

table8e.txt

table9a.txt

table9b.txt

table9c.txt

table9d.txt

table9e.txt

table10a.txt

table10b.txt

table10c.txt

table10d.txt

table10e.txt

table11a.txt

table11b.txt

table11c.txt

table11d.txt

table11e.txt

table12a.txt

table12b.txt

table12c.txt

table12d.txt

table12e.txt

table13a.txt

table13b.txt

table13c.txt

table13d.txt

table13e.txt

table14a.txt

table14b.txt

table14c.txt

table14d.txt

table14e.txt

table15a.txt

table15b.txt

table15c.txt

table15d.txt

table15e.txt

table16a.txt

table16b.txt

table16c.txt

table16d.txt

table16e.txt

table17a.txt

table17b.txt

table17c.txt

table17d.txt

table17e.txt

table18a.txt

table18b.txt

table18c.txt

table18d.txt

table18e.txt

table19a.txt

table19b.txt

table19c.txt

table19d.txt

table19e.txt

table20a.txt

table20b.txt

table20c.txt

table20d.txt

table20e.txt

table21a.txt

table21b.txt

table21c.txt

table21d.txt

table21e.txt

table22a.txt

table22b.txt

table22c.txt

table22d.txt

table22e.txt

table23a.txt

table23b.txt

table23c.txt

table23d.txt

table23e.txt

table24a.txt

table24b.txt

table24c.txt

table24d.txt

table24e.txt

table25a.txt

table25b.txt

table25c.txt

table25d.txt

table25e.txt

table26a.txt

table26b.txt

table26c.txt

table26d.txt

table26e.txt

table27a.txt

table27b.txt

table27c.txt

table27d.txt

table27e.txt

table28a.txt

table28b.txt

table28c.txt

table28d.txt

table28e.txt

table29a.txt

table29b.txt

table29c.txt

table29d.txt

table29e.txt

table30a.txt

table30b.txt

table30c.txt

table30d.txt

table30e.txt

table31a.txt

table31b.txt

table31c.txt

table31d.txt

table31e.txt

table32a.txt

table32b.txt

table32c.txt

table32d.txt

table32e.txt

table33b.txt

table34b.txt

table35b.txt

table36b.txt

table37b.txt

table38b.txt

table39c.txt

table39e.txt

table40d.txt

table41d.txt

table42d.txt

table43d.txt

table44d.txt

table45d.txt

table46e.txt

table47e.txt

Latest

  • Current beta is version 3.0.9. dated 17 Apr 2019. Please refresh your browser if downloading the latest version.
    This version corrects the dropcols bug introduced in version 3.0.4. Note that 3.0.8 was an interim solution.
  • User Guide now in Sixth Printing (April 2019). Changes and bug fixes are noted in the header of the ado file.
  • Version 3 enhancements include:
    • new output styles: for Word and Excel
    • table titles and footnotes
    • dropping columns and reshaping of tables
    • template files for ease of use
    • easy creation of dynamic documents