MARKSTAT: Stata module to support literate data analysis using Stata and Markdown

Statistical Software Components(2017)

引用 22|浏览0
暂无评分
摘要
The markstat command can be used to combine Stata code and results with comments and annotations written in Markdown, producing by default a web page. If a LaTeX installation is available, -markstat- can produce a PDF file from exactly the same input script. The command works by separating the code from the narrative, running the code through Stata, translating the narrative from Markdown to HTML or LaTeX using Pandoc, and then weaving the output files together. This avoids tedious cutting and pasting, and promotes reproducible research. The command puts a high premium on the simplicity of the input file, which emphasizes readability much in the spirit of Markdown itself. It supports Stata and Mata inline code, strict code blocks with an option to hide the commands, and mathematical equations. It can also handle citations, resolving them using a BiBTeX database and listing them at the end of the document. The command is described in a forthcoming Stata Journal article, and is supported by a website at http://data.princeton.edu/stata/markdown, which includes installation instructions, documentation, examples, and a comparison with the new tools in Stata 15.
更多
查看译文
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要