Hello everyone,
I am running a 2SLS: Y=Xβ+Covariatesδ+ϵ. Here, X is endogenous. So, the first stage is X= Zγ+ω. Now, I want to see whether the effect of X varies for a categorical variable, say firm size (size=1 if large firm; 0 otherwise). Now in stata17 I am using the following command-
I have purposefully excluded c.X in left hand side in first stage so that I get the coefficients of X for two different firm sizes in one regression. The issue that I am facing is that, when I run this same regression, the coefficients do not match with this following approach-
and
I know that this last approach will affect the standard errors because of power. But what I do not understand is why are the coefficients of X differing in these two approaches?
Regards,
Ashik
I am running a 2SLS: Y=Xβ+Covariatesδ+ϵ. Here, X is endogenous. So, the first stage is X= Zγ+ω. Now, I want to see whether the effect of X varies for a categorical variable, say firm size (size=1 if large firm; 0 otherwise). Now in stata17 I am using the following command-
Code:
ivreg2 Y covariate1 covariate2 (c.X#i.size = Z1 Z2 Z1#i.size Z2#i.size)
Code:
Ivreg2 Y covaraite1 covaraite2 (X= Z1 Z2) if size==0
Code:
Ivreg2 Y covaraite1 covaraite2 (X= Z1 Z2) if size==1
Regards,
Ashik
Comment