I'd like help to get -etable- to horizontally "merge" the coefficients for two (or more) regression models that have the same set of explanatory variables but which have a different response variable. My example below shows how I *can* produce what I want using the user-written -outreg- package, followed by what I get but don't like using -etable-. I like various features of -etable-, so I'm hoping there might be some option to get -etable- to put the model2 coefficients alongside the model1 coefficients. I can't find something relevant in the documentation about this.
Code:
. sysuse auto
(1978 automobile data)
. quiet regress price weight headroom
. est store model1
. outreg
----------------------
price
----------------------
weight 2.393
(5.63)**
headroom -663.776
(1.70)
_cons 925.394
(0.72)
R2 0.32
N 74
----------------------
* p<0.05; ** p<0.01
. //
. quiet regress length weight headroom
. est store model2
. // Coefficients appended horizontally -- yes.
. outreg, merge
---------------------------------
price length
---------------------------------
weight 2.393 0.026
(5.63)** (21.14)**
headroom -663.776 2.025
(1.70) (1.79)
_cons 925.394 103.254
(0.72) (27.78)**
R2 0.32 0.90
N 74 74
---------------------------------
* p<0.05; ** p<0.01
. //
. // Coefficients appended vertically -- no.
. etable, estimates(model1 model2)
-----------------------------------------
price length
-----------------------------------------
Weight (lbs.) 2.393
(0.425)
Headroom (in.) -663.776
(390.383)
Intercept 925.394
(1282.380)
Weight (lbs.) 0.026
(0.001)
Headroom (in.) 2.025
(1.131)
Intercept 103.254
(3.717)
Number of observations 74 74
-----------------------------------------

Comment