加权回归,想要固定高维固定效应,stata报错
代码:
reghdfe y x [aw=weight], absorb(fe1 fe2) vce(cluster id)
报错:
technique not found in class FixedEffects
r(3000)
已检查reghdfe安装问题,目前stata报告为是最新版本的reghdfe
尝试过用xtreg跑这个加权回归
代码:
xtreg y x i.yearindustry i.yearprovince [aw=weight],fe
报错:
weights not allowed
r(101)
有考虑过是否因为观测值仅为1224导致的,因此改为只添加了年份固定效应和个体固定效应,但是也是报告权重不可用。
权重由计算得出,这样报告的话是由于什么原因呢?
感谢各位大神相助。


雷达卡




京公网安备 11010802022788号







