I'm using the -estpost- in combination with -tabstat- command to produce descriptive statistics, and output the results to my LaTeX file using -esttab-. Since the exported values are quite large it get a very messy table output. Thus I tried using the main format options for -esttab- but that doesn't work, neither in the stata output not the Tex-file.
If possible I would like to report different formats for the variables since Assets, Debt, and MarketCap are Dollar values reaching a couple millions, and leverage is a percentage, and Divdidends and Price are just small numbers. Could you help me with this?
The code I use to import the Tex-file in my thesis is depicted below. This doesn't do anything specific apart from setting the imported Tex-file as a table in the middle of the page.
The generated output from -esttab-:
Code:
estpost tabstat Assets Debt MarketCap Leverage Dividend Price, s(n mean min max sd) col(stat) esttab . using "C:\Users\...\Panel_Constituents.tex", /// c("mean min max sd") lab nomtitles nodepvars nonumbers replace
The code I use to import the Tex-file in my thesis is depicted below. This doesn't do anything specific apart from setting the imported Tex-file as a table in the middle of the page.
Code:
\begin{table}[H]\centering \caption{Descriptive statistics \label{Descriptives}} \input{C:/Users/Rob" "Sukaldi/Dropbox/Master/Msc" "Finance/Thesis/Data/Export/Panel_Constituents.tex} \end{table}
Code:
estpost tabstat Assets Debt Leverage MarketCap Dividend Price, s(n mean min max sd) col(stat) Summary statistics: count mean min max sd for variables: Assets Debt Leverage MarketCap Dividend Price e(count) e(mean) e(min) e(max) e(sd) Assets 12946 3312285 401 3.33e+07 4558414 Debt 12654 1730447 49 2.49e+07 2642895 Leverage 12653 .5005819 .0003918 1.931789 .1812409 MarketCap 12850 2495014 178.332 6.82e+07 4773972 Dividend 10756 .5565929 .0007625 507.3009 6.730515 Price 12856 30.91611 .0230965 2092.5 75.46368
Comment