Dear all,
I am running the same regressions in two subsamples of a larger sample, which I dichotomized using "if " option with "areg". I want to compare the coefficients of var2 in two estimations, and decide whether there is a statistically significant difference between the magnitudes of the coefficients of this variable (var2) across two subsamples.
My regressions and Wald test command look like below:
Although I checked the estimations are stored correctly (under these names), and I can replay the estimations, I cannot perform the Wald test, as I keep getting the r(303) "equation [highinscpALL] not found" error.
I searched for answers for hours now, but I couldn't found anything that helps me. Maybe the "test" command is not suitable for my purpose, I don't know... Using the "suest" command before the "test" command did not help, and I found that "suest" is not suitable for using after "areg". I'd appreciate it greatly if anybody could help me.
Thank you,
SM
I am running the same regressions in two subsamples of a larger sample, which I dichotomized using "if " option with "areg". I want to compare the coefficients of var2 in two estimations, and decide whether there is a statistically significant difference between the magnitudes of the coefficients of this variable (var2) across two subsamples.
My regressions and Wald test command look like below:
Code:
qui areg y var2 var3 var4 if var5>=4,ab(var7) cluster(var1) estimates store highinscpALL qui areg y var2 var3 var4 if var5<4,ab(var7) cluster(var1) estimates store lowinscpALL test [highinscpALL]var2=[lowinscpALL]var2
I searched for answers for hours now, but I couldn't found anything that helps me. Maybe the "test" command is not suitable for my purpose, I don't know... Using the "suest" command before the "test" command did not help, and I found that "suest" is not suitable for using after "areg". I'd appreciate it greatly if anybody could help me.
Thank you,
SM
Comment