Estout Stata Latex. The remainder of this post describes the routine that works best for you might want to adjust it for your own purposes. I am trying to export a two-way summary table to LaTeX using the community-contributed command estout.
Usepackagecolortbl Then you can change the colour of a cell in a table to red for example by inserting cellcolorred into the Latex code for that cell. Generally more automated approaches such as estout esttab make it easy to quickly generate nearly-production-ready output but make it more difficult if not impossible to implement significant customization. Using a combination of estpost and estadd I have come up with a way of also including the means of each group in the table.
Doing it this way rather than using postfoot and prehead allows you to employ the various estout options that add content to those areas without having to set them manually including eg.
This table can easily then be exported from STATA to Word Excel or LateX. The manual for estout can be found at. Jun 20 2016 I am formatting regression tables which are being produced by esttab and then moved into a LaTeX environment. The advantage is that the whole system is dynamic.
