黃河泉 发表于 2021-1-15 11:09 
试试看看是不是你要的?
似乎还是不行
系统提示:
variable id does not uniquely identify the observations
Your data are currently wide. You are performing a reshape long. You specified i(ViolationID year) and
j(_j). In the current wide form, variable ViolationID year should uniquely identify the observations.
我的数据中的year原本也是以2011,2012,2013的形式在一个格子中,我进行过split和reshape的整理,或许是我举例的样本太少了没有覆盖全面,但我也不知道究竟是样本中的哪一部分有问题,请问老师该怎么处理