EconPapers    
Economics at your fingertips  
 

Writing R markdown documents in Stata

Roger Newson

UK Stata Conference 2026 from Stata Users Group

Abstract: R Markdown, an extension of Pandoc Markdown, is promoted as a grand unified solution to writing computer-generated scientific documents. It inputs a text document and outputs documents in .docx, .html, and .pdf (via LaTeX) formats. The output documents can contain publication-quality tables, graphics, and also equations (in .html or .odf formats). Unsurprisingly, the input text file can be generated with Stata, using the official Stata file command, together with the SSC Archive packages listtab to make the tables and tfinsert to make the rest of the document. I demonstrate how this might be done.

Date: 2026-09-05
References: Add references at CitEc
Citations:

Downloads: (external link)
http://repec.org/lsug2026/Newson_ohp1.pdf
http://repec.org/lsug2026/Newson_examples.zip

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:boc:lsug26:01

Access Statistics for this paper

More papers in UK Stata Conference 2026 from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2026-09-12
Handle: RePEc:boc:lsug26:01