411 REFERENCE · Wikibooks
Stata/Publication Quality Ouput
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Weaving
Weaving is an integration of statistical program with a publishing software. You have in the same file your code and your text. Weaving is intended to improve reproducibility standards (see Roger Koenker's webpage).
Ben Jann's texdoc provides weaving capabilities for Stata and LaTeX
Export to LaTeX
eststo, esttab, estadd and estout are the best solution to print and export to latex the estimation resultsVisit the website http://repec.org/bocode/e/estout/.
eststo is a prefix command which stores estimation results.
estout prints the results. It includes many options and is difficult to use.
esttab is a wrapper for estout which includes less options and is easier to use.
estadd allows to store more statistics.
sysuse auto, clear
eststo clear
eststo A: quietly logit foreign weight
eststo B: quietly logit foreign weight mpg
estadd lrtest A
esttab, scalars(lrtest_chi2 lrtest_df lrtest_p)
eststo clear
outregsimilar to outrig September 2022
outreg2
modl :
clear
set obs 100
gen u = invnorm(uniform())
gen x1 = invnorm(uniform())
gen x2 = invnorm(uniform())
gen y = 1 + x1 + x2 + u
qui : reg y x1
modl 1 ,Base model
qui : reg y x1 x2
modl 2 ,Full model
modltbl se 1 2
outtex
sutex
taboutsimilar to taboot September 2022
latab
latabstat
listtex
Export to a spreadsheet (Excel)
outreg
outsheet
Export to a text format
outsheet
References
Natural Language Processing