Thank you very much, Clyde!
When I ran:
foreach var in GDP ROL Politicalstab Globalizationindex {
ttest `var', by(SR) [pw=weight] if Year < 2003
}
I got an error.
Instead, I used this:
foreach var in GDP ROL Politicalstab Globalizationindex {
reg `var' i.SR [aweight=weight] if Year < 2003
* Use lincom to simulate a t-test lincom
_b[1.SR]
}
I ran the regression and used the lincom approach to check the balance between treatment and control groups for my covariates. Is there any other way of doing it, or does this method suffice?
When I ran:
foreach var in GDP ROL Politicalstab Globalizationindex {
ttest `var', by(SR) [pw=weight] if Year < 2003
}
I got an error.
Instead, I used this:
foreach var in GDP ROL Politicalstab Globalizationindex {
reg `var' i.SR [aweight=weight] if Year < 2003
* Use lincom to simulate a t-test lincom
_b[1.SR]
}
I ran the regression and used the lincom approach to check the balance between treatment and control groups for my covariates. Is there any other way of doing it, or does this method suffice?
Comment