I am new to Stata and want to apply IPTW-DID method.
Fistly, I use 'reghdfe' but stata reports the errors message: technique not found in class FixedEffects
I don't know what's the problem. I tried to check theversion of 'reghdfe' in my Stata. This is the last version.
And then I tried to use 'xtreg' to achieve this weighted regression.
I can't understand the errors messages 'weights not allowed'.....
Because I only have 1224 observations and I also have tired only to control year-fixed effect and firm-fixed effect. But the stata also reports the same error message...
Thanks for your advice.
Fistly, I use 'reghdfe' but stata reports the errors message: technique not found in class FixedEffects
Code:
reghdfe y x [aw=weight], absorb(fe1 fe2) vce(cluster id) technique not found in class FixedEffects r(3000);
And then I tried to use 'xtreg' to achieve this weighted regression.
Code:
xtreg y x i.yearindustry i.yearprovince [aw=weight],fe weights not allowed r(101);
Because I only have 1224 observations and I also have tired only to control year-fixed effect and firm-fixed effect. But the stata also reports the same error message...
Thanks for your advice.
Comment