Hello all,
I am new to Stata and tried to find an answer to my problem but I have not found a solution yet (I am using Stata 15/SE).
I am running four regressions to compare the coefficients on subgroups using two dummy variables (if female=0/1 & edu=0/1)
To test if the coefficients are significantly different from each other between genders ( thus if x1=x1, x2=x2, x3=x3 )
and
I tried using the suest command, since the regression is robust this is not working.
I tried generating new dummies:
And running new regressions, but I am not sure if this is working the right way.
Are there any solutions to this? Thanks in advance!
I am new to Stata and tried to find an answer to my problem but I have not found a solution yet (I am using Stata 15/SE).
I am running four regressions to compare the coefficients on subgroups using two dummy variables (if female=0/1 & edu=0/1)
To test if the coefficients are significantly different from each other between genders ( thus if x1=x1, x2=x2, x3=x3 )
Code:
reg job x1 x2 x3 (+ covariates) ,r if female==0 & edu==1 reg job x1 x2 x3 (+ covariates) ,r if female==0 & edu==0
Code:
reg job x1 x2 x3 (+ covariates) ,r if female==1 & edu==1 reg job x1 x2 x3 (+ covariates) ,r if female==1 & edu==0
I tried using the suest command, since the regression is robust this is not working.
I tried generating new dummies:
Code:
gen male_edu = 1 if female==0 & edu==1 gen male_edu_x1 = male_edu*x1
Are there any solutions to this? Thanks in advance!
Comment