IDEAS home Printed from
   My bibliography  Save this paper

Creating HTML or Markdown documents from within Stata using webdoc


  • Ben Jann



This paper discusses the use of -webdoc- for creating HTML or Markdown documents from within Stata. The -webdoc- command provides a way to embed HTML or Markdown code directly in a do-file and to automate the integration of results from Stata in the final document. The command can be used, for example, to create a webpage documenting your data analysis, including all Stata output and graphs. More generally, the command can be used to create and maintain a website that contains results computed by Stata.

Suggested Citation

  • Ben Jann, 2016. "Creating HTML or Markdown documents from within Stata using webdoc," University of Bern Social Sciences Working Papers 22, University of Bern, Department of Social Sciences, revised 17 Jan 2017.
  • Handle: RePEc:bss:wpaper:22

    Download full text from publisher

    File URL:
    File Function: Revised version, 2017
    Download Restriction: no

    Other versions of this item:

    References listed on IDEAS

    1. Ben Jann, 2007. "Making regression tables simplified," Stata Journal, StataCorp LP, vol. 7(2), pages 227-244, June.
    2. Llorenç Quintó & Sergi Sanz & Elisa De Lazzari & John J. Aponte, 2012. "HTML output in Stata," Stata Journal, StataCorp LP, vol. 12(4), pages 702-717, December.
    3. P. Wilner Jeanty, 2010. "HLP2HTML: Stata module to translate a list of Stata help files to HTML," Statistical Software Components S457209, Boston College Department of Economics.
    4. Roger Newson, 2009. "LISTTAB: Stata module to list variables as rows of a TeX, HTML or word processor table," Statistical Software Components S457088, Boston College Department of Economics, revised 13 Oct 2015.
    Full references (including those not matched with items on IDEAS)


    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.

    Cited by:

    1. Orozco, Valérie & Bontemps, Christophe & Maigné, Elise & Piguet, V. & Hofstetter, A. & Lacroix, Anne & Levert, F. & Rousselle, J.M, 2018. "How To Make A Pie: Reproducible Research for Empirical Economics & Econometrics," TSE Working Papers 18-933, Toulouse School of Economics (TSE).

    More about this item


    Stata; webdoc; HTML; Markdown; weaving; Stata output; Stata log; reproducible research;

    JEL classification:

    • C87 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Econometric Software
    • C88 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Other Computer Software

    NEP fields

    This paper has been announced in the following NEP Reports:


    Access and download statistics


    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:bss:wpaper:22. See general information about how to correct material in RePEc.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: (Ben Jann). General contact details of provider: .

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.