I have two treatment variables, a and b, both are dummies. Then I
Code:
egen treatment=group(a b)
say the dependent variable is y, independent variable of interest is x, and set of controls C
Code:
xtlogit y x b C if a == 1 // x is positive at 1% significance level
Code:
xtlogit y x b C if a == 0 // x is positive at 1% significance level
Code:
xtlogit y x i.treatment C //x is negative and insignificant.
Thanks a lot
Jasmine
0 Response to Same signs of the coefficient on two subsample but different from the full sample
Post a Comment