Download the following packages to your own ado location (type
net query in the command box to see where this is).
From within Stata, use
net from https://www.ssc.wisc.edu/~hemken/Stataworkshops
and follow the links.
stdParm.ado by post-estimation transformation
stdParm.sthlp help file
Beginning with Stata 15, you can write dynamic documents using Markdown, wholly within Stata. As of Stata 16, you can produce HTML, PDF, or Word documents this way.
For older versions of Stata you can write dynamic documents which include Stata code and output from the R or Rstudio interface (see above).
In the following material, I try to explain some of your options, including some utility programs which ease the process of going from dynamic Markdown to final document.
stmd command is intended to make dynamic Markdown documents easy to write, in the style of most other programming languages.
The rest is Markdown.
Official Stata includes a Markdown interpreter and commands to execute dynamic documents. Dig into the details to go beyond