用STATA . xtset company year repeated time values within panel r(451); 怎么解决?

2026-05-20 00:08:04
推荐回答(3个)
回答1:

面板里有重复的时间,即单个公司的时间存在重复值;可能在操作的过程中没有删除掉这些重复值。

|      1      1    600028   200509 |
| 1 92 600028 200509 |
| 2 2 600028 200510 |
| 2 93 600028 200510 |

回答2:

可能跟你的数据有关系,你的year好像是月度数据 你可以help datatime看下如何设置月度数据 然后help xtset看下xtset的时候如何设置 里面有详细解释 应该是后面要加上option

回答3:

面板数据有问题
每一个个体都有重复的时间
你drop掉