Just found an easy way to include figures from Stata into Latex by converting Stata-figures to PDF-files first. Just use the following codes:
Continue reading “Include Stata figures in Latex”
Category: Stata – Formatting Output
Posts related to formatting STATA output (tables, figures, etc.)
Export single numbers to LaTeX or MS Word
In a text, you often you refer to a number (e.g. the number of observations in the estimation sample). There is a simple way to automise the export of this number from a Stata-do-file to a Latex-document. Continue reading “Export single numbers to LaTeX or MS Word”
Export of regression tables to LaTeX
The ado-files --esto--
and —esta
— (has to be installed by typing --findit esto--
or —findit esta
— into the Stata command window) provides a simple way to export regression tables from Stata to a separate LaTeX-file. At the same time, it is possible to adjust basically everything. I will just present a short example that I use for my regression tables (for adjusting the code, see --help esta--
). After installing the ado-packages, run (in this case) two regressions, in my case: Continue reading “Export of regression tables to LaTeX”
Export summary statistics to LaTeX
The ado-file --sutex--
(has to be installed by typing --findit sutex--
into the Stata command window) provides a simple way to export summary statistics from Stata to a separate LaTeX-file. It is limited in individualised adjustment, but quite OK for most applications. By default, you get mean and standard deviation for variables VAR1, VAR2, VAR3
, etc. A syntax could be: Continue reading “Export summary statistics to LaTeX”