Hello.
I am using esttab from Ben Jann (available at the SSC archive). I produce regression tables with mixed format for coefficients (including scientific notation). I would like to use the siunitx package for my tables in latex. After a bit of search on the web, the solution that I found to avoid latex compilation errors is to wrap estimates in scientific notation with the command \num{}.
I am trying to find a way to output regression estimates in scientific notation from esttab with \num{} around them. Here's a MWE
The esttab output is
My goal for the .tex file that esttab generates would be to output "\num{1.946e+03}" for the intercept estimate instead. I tried to play with esttab/estout options such as transform or layout, but only got syntax errors. Any feedback would be appreciated.
Regards,
Georgios
I am using esttab from Ben Jann (available at the SSC archive). I produce regression tables with mixed format for coefficients (including scientific notation). I would like to use the siunitx package for my tables in latex. After a bit of search on the web, the solution that I found to avoid latex compilation errors is to wrap estimates in scientific notation with the command \num{}.
I am trying to find a way to output regression estimates in scientific notation from esttab with \num{} around them. Here's a MWE
Code:
sysuse auto, clear qui reg price weight mpg esttab , b(3 3 %10.7e) t(3)
HTML Code:
---------------------------- (1) price ---------------------------- weight 1.747** (2.723) mpg -49.512 (-0.575) _cons 1.946e+03 (0.541) ---------------------------- N 74 ----------------------------
Regards,
Georgios
Comment