| Gabriel |
There have been a lot of updates lately to the completely indispensable estout package.
If you’re thinking, what is this “estout” of which he speaks? Don’t walk, but run to your copy of Stata and type:
ssc install estout
If you already have estout and are trying to install the update try.
ssc install estout, replace
As every quant knows, getting Stata output into journal layout is really, really, tedious and you have to start all over and do it from scratch anytime you change anything about a model. When I was an undergrad I thought I was so cool when I realized I could read a log file into Excel as a fixed-width text file. This and some related tricks cuts down the time it takes to make a decent-sized regression table from about 40 minutes to about twenty minutes, but that’s still a pretty tedious 20 minutes.
So I was pretty happy when I learned about the various table-making commands that can do this for you. The first time somebody showed me how estout works I felt like one of the Munchkins after Dorothy killed the wicked witch of the East.
Estout cuts down table-making to between zero and five minutes, depending on how gung ho you are about tweaking the syntax. Really hardcore people have it output TeX that they embed directly in their write-up. The syntax is a little hard to learn but you generally only have to learn enough syntax to get it to work with one or two styles that you use often. Here’s my syntax to create an ASA-style table for a multi-level model with nested independent variables. I use it as fixed width because it makes it easier to import into a spreadsheet. (Excel really likes to think of parentheses as meaning “negative” rather than as literal strings).
eststo clear eststo: xtreg y x1, re i(clusterid) eststo: xtreg y x1 x2, re i(clusterid) eststo: xtreg y x1 x2 x3, re i(clusterid) esttab using table.txt , se b(3) se(3) scalars(ll rho) nodepvars nomtitles label title(Table: REGRESSION MODELS OF SOMETHING) replace fixed