Dear Statalist community,
I am trying to compare the estimates of an IV regression of the full sample vs. the subsample. I found some examples (https://www.stata.com/statalist/arch.../msg00487.html, https://www.stata.com/statalist/arch.../msg00373.html) but have problems adjusting them to my context.
What I have is the following:
Now I would like to statistically compare the estimates of x_endo and x1 in both regressions.
Trying the following produced an error:
equation [FS1_Consumption] not found
r(303);
What can I do instead?
Thanks!
I am trying to compare the estimates of an IV regression of the full sample vs. the subsample. I found some examples (https://www.stata.com/statalist/arch.../msg00487.html, https://www.stata.com/statalist/arch.../msg00373.html) but have problems adjusting them to my context.
What I have is the following:
Code:
global X x1 x2 x3 x4 x5 *full sample xtivreg2 Y $X (x_endo = z), fe first endog(x_endo) est store FS1 *subsample xtivreg2 Y $X (x_endo = z) if gender==1, fe first endog(x_endo) est store SS1
Trying the following produced an error:
Code:
testnl [FS1_Y]x_endo=[SS1_]x_endo
r(303);
What can I do instead?
Thanks!
Comment