在运行全面FGLS命令时显示错误:
- xtgls lntourists policy1,panel(cor) cor(ar1)
“time is not regularly spaced or does not have intervals of delta -- use the force option to treat the intervals as though they were regular”
根据提示在命令中添加“force”后,仍然提示错误:
“panels must be balanced”
可是我的(长)面板数据是严格平衡的呀,具体信息如下:
由于我使用的是月度数据,所以我生成一个新的时间变量“time”
- encode city,gen(id)
- egen time = group(year month)
- xtset id time
结果如下:
panel variable: id (strongly balanced)
time variable: time, 1 to 129
delta: 1 unit
各位大佬,还请指点指点,实在太迷糊了,晕。提前感谢各位了!


雷达卡





京公网安备 11010802022788号







