I have several specifications that -estout- groups into a coefficient table. I'm using -estout- version 3.20 from the SSC and the March 3, 2016 update of Stata 14.1 MP. So far, I have code like this:
which displays
I'd like to have output that looks like this:
This is a rough approximation because I created it manually, but basically, I'd like to group certain variables under a header, within the first column, and be able to separate groups of variables with empty lines in the table. I'm sure there's a way to do this manually, by creating empty observations, but it's not clear to me from the -estout- documentation if there is a way to use -estout- for this.
Code:
sysuse auto, clear gen mpg2 = mpg^2 gen mpg_log = log(mpg) regress price mpg* headroom est store est1 regress price mpg* headroom length est store est2 estout est?, drop(headroom)
Code:
--------------------------------------
est1 est2
b b
--------------------------------------
mpg 4073.189 4132.779
mpg2 -33.14309 -33.83749
mpg_log -61992.16 -62350.48
length 3.698642
_cons 124383.9 123889.8
--------------------------------------
Code:
--------------------------------------
est1 est2
b b
--------------------------------------
Mileage variables
mpg 4073.189 4132.779
mpg2 -33.14309 -33.83749
mpg_log -61992.16 -62350.48
length 3.698642
_cons 124383.9 123889.8
--------------------------------------

Comment