Literate data analysis with Stata and Markdown
Germán Rodríguez ()
Additional contact information
Germán Rodríguez: Princeton University
Stata Journal, 2017, vol. 17, issue 3, 600-618
Abstract:
In this article, I introduce markstat, a command for combining Stata code and output with comments and annotations written in Markdown into a beautiful webpage or PDF file, thus encouraging literate programming and repro- ducible research. The command tangles the input separating Stata and Markdown code, runs the Stata code, relies on Pandoc to process the Markdown code, and then weaves the outputs into a single file. HTML documents may include inline and display math using MathJax. Generating PDF output requires access to LATEX and a style file from Stata but works with the same input file.
Keywords: markstat; Markdown; Pandoc; LATEX literate programming; dynamic documents; reproducible research (search for similar items in EconPapers)
Date: 2017
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj17-3/pr0067/
References: Add references at CitEc
Citations: View citations in EconPapers (3)
Downloads: (external link)
http://www.stata-journal.com/article.html?article=pr0067 link to article purchase
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:y:17:y:2017:i:3:p:600-618
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 ().