Skip to content

Instantly share code, notes, and snippets.

@bsouthga
Created May 24, 2014 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsouthga/beb6327d3390ac9f1090 to your computer and use it in GitHub Desktop.
Save bsouthga/beb6327d3390ac9f1090 to your computer and use it in GitHub Desktop.
Example LaTeX Table from Stata
/* Install estimation output package */
ssc install estout
/* Load system data */
sysuse auto, clear
/* Clear any current estimation storage macros */
eststo clear
/* Run regressions and store results */
eststo: reg price mpg rep78
eststo: reg price mpg rep78 headroom trunk
eststo: reg price mpg rep78 headroom trunk weight length turn
eststo: reg price mpg rep78 headroom trunk weight length turn displacement gear_ratio
/* Create LaTeX table to be included in a separate document */
esttab using table.tex, tex r2 replace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment