Hi,
The problem I have is the following. I have ran two regressions in Stata:
(1) “reg income i.treated##i.male i.experiment”
(2) “reg income i.treated i.experiment if male==1”
Where treated and male are two dummies and experiment is a categorical variable. The income variable is continuous.
I thought that the sum of the coefficients "_b[1.p treated] + _b[1.ptreated#1.man]" of the first regression and the coefficient "_b[1.ptreated]" of the second were the same, but they are not.
What explanation is there for this?
Additional information: the sum of the coefficients is different only when I incorporate dummies per experiment (I had to add them since we are grouping different experiment which were done using Qualtrics). They are equal when i have ran the following regressions.
(3) “reg income i.treated##i.male”
(4) “reg income i.treated if male==1”
Is there a way I can perform a regression like the first one but where the sum of "_b[1.ptreated] +_b[1.ptreated#1.male]" and the coefficient "_b[1.ptreated]" are equal between regressions?
Here are the results of the regressions:
The problem I have is the following. I have ran two regressions in Stata:
(1) “reg income i.treated##i.male i.experiment”
(2) “reg income i.treated i.experiment if male==1”
Where treated and male are two dummies and experiment is a categorical variable. The income variable is continuous.
I thought that the sum of the coefficients "_b[1.p treated] + _b[1.ptreated#1.man]" of the first regression and the coefficient "_b[1.ptreated]" of the second were the same, but they are not.
What explanation is there for this?
Additional information: the sum of the coefficients is different only when I incorporate dummies per experiment (I had to add them since we are grouping different experiment which were done using Qualtrics). They are equal when i have ran the following regressions.
(3) “reg income i.treated##i.male”
(4) “reg income i.treated if male==1”
Is there a way I can perform a regression like the first one but where the sum of "_b[1.ptreated] +_b[1.ptreated#1.male]" and the coefficient "_b[1.ptreated]" are equal between regressions?
Here are the results of the regressions:
(1) | (2) | (3) | (4) | |
Variables | income | income | income | income |
1.treated | 0.0402 | 0.0370 | 0.0774* | 0.0699 |
(0.0438) | (0.0511) | (0.0434) | (0.0494) | |
1.male | 0.121** | 0.125** | ||
(0.0490) | (0.0493) | |||
1.treated#1.male | -0.00707 | -0.00750 | ||
(0.0639) | (0.0642) | |||
Experiment 2 | -0.0920** | -0.0798 | ||
(0.0361) | (0.0561) | |||
Experiment 3 | -0.285*** | -0.263*** | ||
(0.0441) | (0.0671) | |||
Constant | -0.0515 | 0.0576 | -0.172*** | -0.0469 |
(0.0422) | (0.0543) | (0.0333) | (0.0381) | |
Observations | 3,771 | 1,731 | 3,771 | 1,731 |
R-squared | 0.016 | 0.010 | 0.005 | 0.001 |
Standard errors in parentheses | ||||
*** p<0.01, ** p<0.05, * p<0.1 |
Comment