Hello everyone,
I'm having trouble comparing the coefficients of two different regressions ran in the same sample. I tried following the solutions provided in this thread (https://www.statalist.org/forums/for...for-panel-data), but to no avail.
From my sample, I dumbed down the model and ran:
My actual model has more variables with firm and year effects but I'm still not getting consistent results in this simplified setting, and so decided to post this approach. The results are the following:
I was expecting that the coefficients of dummy#c.x1 from reg w i.dummy#(c.x1) would be consistent with the individual coefficients from running reg w x1 if dummy==0 and reg w x1 if dummy==1 (for privacy reasons, I've deleted the the information regarding the number of observations, but they are consistent between models). As you can see, they aren't... Any ideas for this to happen? The ideas would be to compare the coefficients from the two first regression.
I'm having trouble comparing the coefficients of two different regressions ran in the same sample. I tried following the solutions provided in this thread (https://www.statalist.org/forums/for...for-panel-data), but to no avail.
From my sample, I dumbed down the model and ran:
Code:
reg w x1 if dummy==1 reg w x1 if dummy==0 reg w i.dummy#(c.x1)
Code:
. reg w x1 if dummy==1
------------------------------------------------------------------------------
w | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
x1 | .4991131 .2057008 2.43 0.015 .0957979 .9024283
_cons | .7043454 .0191853 36.71 0.000 .6667291 .7419617
------------------------------------------------------------------------------
. reg w x1 if dummy==0
------------------------------------------------------------------------------
w | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
x1 | -4.432367 .0856548 -51.75 0.000 -4.600259 -4.264474
_cons | .6694037 .0218423 30.65 0.000 .6265905 .7122169
------------------------------------------------------------------------------
. reg w i.dummy#(c.x1)
------------------------------------------------------------------------------
w | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
dummy#c.x1 |
0 | -4.417468 .076771 -57.54 0.000 -4.567945 -4.266991
1 | .3083264 .3989169 0.77 0.440 -.4735832 1.090236
|
_cons | .6753387 .0184921 36.52 0.000 .6390926 .7115848

Comment