Germán Rodríguez

Stata Markdown
Princeton University
Here is a collection of examples using Markdown and Stata together.
For each example you can see the input script and the output as rendered by
the `markstat`

command.

A Simple Script
Bundled Images
Using Metadata
Markdown Tables
Estimation Tables (

`estout`

)
Tables of Statistics (`tabout`

)
A Research Article
Mata Matters
Citations
The markstat Paper
The Stata Tutorial
Dynamic Word Documents
Dynamic Presentations
Two-Column Slides
Quantiles in Stata and R
Stata and R Tabs with Bootstrap
Cross-references in LaTeX
The `markstat`

command works with plain Stata Markdown scripts with no
extra Stata commands required,
but also plays well with Stata commands that generate fancy tables of estimates or
statistics, as illustrated in the `estout`

and `tabout`

examples.

You can run any of these examples using the script on this website, assuming you have installed the tooling required. For example to run the simple script try

copy https://data.princeton.edu/stata/markdown/simpleScript.stmd simpleScript.stmd markstat using simpleScript

The first line downloads the Stata Markdown script to your computer,
a necessary step because the command requires local files, and the second
runs the `markstat`

command.

Updated for markstat 2.1