Dear all,
I should preface this by saying that I am relatively new to Stata but very eager to learn, so please bear with me if my question seems trivial to the most advanced users. I am using reg to run a super simple regression analysis of log prices during and after the existence of a collusive agreement, identified by a regressor cartel=1 (and equal to 0 in the after period). In this model, I am also including interactions between the variable cartel and encoded values of suppliers, stored in the variable manufacturer_code. I immediately ran
Which outputs:
Out of curiosity, I also went ahead and ran a second specification:
where I specified the base level of manufacturer_code to be the same as the reference category in model 1. This yields:
What puzzles me is that, in principle, the two models should be equivalent as long as the reference category is consistent across the two -- which I personally verified with a toy example using the auto dataset -- and yet, results are much different. Even though my gut feeling tells me I should privilege model 1, I can't wrap my head around why they produce different estimates. I am using Sata17 for Windows, any suggestion would be much appreciated!
PS: Sorry for the lengthy post, I tried to be as detailed as possible.
I should preface this by saying that I am relatively new to Stata but very eager to learn, so please bear with me if my question seems trivial to the most advanced users. I am using reg to run a super simple regression analysis of log prices during and after the existence of a collusive agreement, identified by a regressor cartel=1 (and equal to 0 in the after period). In this model, I am also including interactions between the variable cartel and encoded values of suppliers, stored in the variable manufacturer_code. I immediately ran
Code:
* model 1 (##) reg ln_price_eur_g cartel##i.manufacturer_code, coeflegend
Code:
. reg ln_price_eur_g cartel##i.manufacturer_code, coeflegend note: 1.cartel#4.manufacturer_code identifies no observations in the sample. Source | SS df MS Number of obs = 15,220 -------------+---------------------------------- F(24, 15195) = 523.86 Model | 3515.5094 24 146.479558 Prob > F = 0.0000 Residual | 4248.76445 15,195 .279615956 R-squared = 0.4528 -------------+---------------------------------- Adj R-squared = 0.4519 Total | 7764.27385 15,219 .510169778 Root MSE = .52879 ------------------------------------------------------------------------------------------ ln_price_eur_g | Coefficient Legend -------------------------+---------------------------------------------------------------- 1.cartel | .0366436 _b[1.cartel] | manufacturer_code | 2 | .2270697 _b[2.manufacturer_code] 3 | -.9271932 _b[3.manufacturer_code] 4 | 3.761208 _b[4.manufacturer_code] 5 | .3122013 _b[5.manufacturer_code] 6 | -.870299 _b[6.manufacturer_code] 7 | -1.058295 _b[7.manufacturer_code] 8 | -.6148155 _b[8.manufacturer_code] 9 | -.9390054 _b[9.manufacturer_code] 10 | -.4494987 _b[10.manufacturer_code] 11 | -.9216386 _b[11.manufacturer_code] 12 | .1657904 _b[12.manufacturer_code] 13 | 1.827299 _b[13.manufacturer_code] | cartel#manufacturer_code | 1 2 | -.3981583 _b[1.cartel#2.manufacturer_code] 1 3 | -.0290233 _b[1.cartel#3.manufacturer_code] 1 4 | 0 _b[1o.cartel#4o.manufacturer_code] 1 5 | -.4705767 _b[1.cartel#5.manufacturer_code] 1 6 | -.1939642 _b[1.cartel#6.manufacturer_code] 1 7 | -.144564 _b[1.cartel#7.manufacturer_code] 1 8 | -.3279723 _b[1.cartel#8.manufacturer_code] 1 9 | .2398269 _b[1.cartel#9.manufacturer_code] 1 10 | -.1203988 _b[1.cartel#10.manufacturer_code] 1 11 | .0148721 _b[1.cartel#11.manufacturer_code] 1 12 | -.0953999 _b[1.cartel#12.manufacturer_code] 1 13 | .3254326 _b[1.cartel#13.manufacturer_code] | _cons | -5.785321 _b[_cons] ------------------------------------------------------------------------------------------
Code:
* model 2 (#) reg ln_price_eur_g cartel ib1.manufacturer_code cartel#ib1.manufacturer_code, coeflegend
Code:
. reg ln_price_eur_g cartel ib1.manufacturer_code cartel#ib1.manufacturer_code, coeflegend note: 1.cartel#4.manufacturer_code identifies no observations in the sample. note: 1.cartel#13.manufacturer_code omitted because of collinearity. Source | SS df MS Number of obs = 15,220 -------------+---------------------------------- F(24, 15195) = 523.86 Model | 3515.5094 24 146.479558 Prob > F = 0.0000 Residual | 4248.76445 15,195 .279615956 R-squared = 0.4528 -------------+---------------------------------- Adj R-squared = 0.4519 Total | 7764.27385 15,219 .510169778 Root MSE = .52879 ------------------------------------------------------------------------------------------ ln_price_eur_g | Coefficient Legend -------------------------+---------------------------------------------------------------- cartel | .3620762 _b[cartel] | manufacturer_code | 2 | .2270697 _b[2.manufacturer_code] 3 | -.9271932 _b[3.manufacturer_code] 4 | 3.761208 _b[4.manufacturer_code] 5 | .3122013 _b[5.manufacturer_code] 6 | -.870299 _b[6.manufacturer_code] 7 | -1.058295 _b[7.manufacturer_code] 8 | -.6148155 _b[8.manufacturer_code] 9 | -.9390054 _b[9.manufacturer_code] 10 | -.4494987 _b[10.manufacturer_code] 11 | -.9216386 _b[11.manufacturer_code] 12 | .1657904 _b[12.manufacturer_code] 13 | 1.827299 _b[13.manufacturer_code] | cartel#manufacturer_code | 1 1 | -.3254326 _b[1.cartel#1b.manufacturer_code] 1 2 | -.7235909 _b[1.cartel#2.manufacturer_code] 1 3 | -.3544559 _b[1.cartel#3.manufacturer_code] 1 4 | 0 _b[1o.cartel#4o.manufacturer_code] 1 5 | -.7960093 _b[1.cartel#5.manufacturer_code] 1 6 | -.5193968 _b[1.cartel#6.manufacturer_code] 1 7 | -.4699966 _b[1.cartel#7.manufacturer_code] 1 8 | -.6534049 _b[1.cartel#8.manufacturer_code] 1 9 | -.0856057 _b[1.cartel#9.manufacturer_code] 1 10 | -.4458314 _b[1.cartel#10.manufacturer_code] 1 11 | -.3105605 _b[1.cartel#11.manufacturer_code] 1 12 | -.4208325 _b[1.cartel#12.manufacturer_code] 1 13 | 0 _b[1o.cartel#13o.manufacturer_code] | _cons | -5.785321 _b[_cons] ------------------------------------------------------------------------------------------
PS: Sorry for the lengthy post, I tried to be as detailed as possible.
Comment