Hello,
I know this should be easy, but for some reason the option -label- doesn't work when I try to output my table to LaTeX using -esttab-. I have the following code:
The output:
Stata does not give me any errors when I run the code and all the commands (apart from -label-) do what they are supposed to do. Does anybody knows a solution?
I know this should be easy, but for some reason the option -label- doesn't work when I try to output my table to LaTeX using -esttab-. I have the following code:
Code:
label variable RAssets "Assets (BV)" label variable RDebt "Debt (BV)" label variable RMarketCap "Equity (MV)" label variable REquity "Equity (BV)" label variable RLeverage "Leverage" label variable RExcessReturn "Excess return" estpost tabstat RAssets RDebt REquity RMarketCap RLeverage RExcessReturn, s(mean min max sd) esttab using "C:\Users\...\Export\Panel_Constituents.tex", replace booktabs /// title(Descriptive statistics\label{Descriptives}) nomtitles nodepvars nonumbers noobs alignment({r}{r}{r}{r}{r}) /// label c("RAssets(fmt(%10.0fc)) RDebt(fmt(%10.0fc)) REquity(fmt(%10.0fc)) RLeverage(fmt(%5.4fc)) RExcessReturn(fmt(%5.2fc))") /// addnote(Values for Assets, Debt, Equity and Market Capitalization are reported in dollar US thousands)
Code:
estpost tabstat RAssets RDebt REquity RMarketCap RLeverage RExcessReturn, s(mean min max sd) Summary statistics: mean min max sd for variables: RAssets RDebt REquity RMarketCap RLeverage RExcessReturn | e(RAsse~) e(RDebt) e(REqui~) e(RMark~) e(RLeve~) e(RExce~) -------------+------------------------------------------------------------------ mean | 2872169 1447130 1225318 2137017 .4816076 1.79492 min | 8142.159 474.9333 -1787348 1909.549 .0442696 -17.55714 max | 2.53e+07 1.80e+07 9999590 3.25e+07 1.164975 9.451586 sd | 3652011 2143563 1445104 3761681 .164395 2.653488 . esttab using "C:\Users\...\Export\Panel_Constit > uents.tex", replace booktabs /// > title(Descriptive statistics\label{Descriptives}) nomtitles nodepvars nonumbers noobs alignmen > t({r}{r}{r}{r}{r}) /// > label c("RAssets(fmt(%10.0fc)) RDebt(fmt(%10.0fc)) REquity(fmt(%10.0fc)) RLeverage(fmt(%5.4fc) > ) RExcessReturn(fmt(%5.2fc))") /// > addnote(Values for Assets, Debt, Equity and Market Capitalization are reported in dollar US th > ousands) (output written to C:\Users\...\Export\Panel_Constituents.tex)
Code:
input float(RAssets RDebt REquity RMarketCap RLeverage RExcessReturn) 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 85688.73 52540.9 29986.33 25902.045 .5013222 -.785243 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 746348.4 235810.75 488211.5 427924.7 .3124097 .4480403 end