- . dataex
- ----------------------- copy starting from the next line -----------------------
- [CODE]
- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input byte(year id)
- 1 3
- 2 3
- 3 3
- 4 3
- 1 2
- 2 2
- 3 2
- 4 2
- 1 1
- 2 1
- 3 1
- 4 1
- 1 3
- 2 2
- 3 2
- 4 2
- 1 1
- 2 2
- 3 2
- 4 2
- 1 3
- 2 3
- 3 3
- 4 3
- end
------------------ copy up to and including the previous line ------------------
Listed 24 out of 24 observations
[/code]图片如下:
我想要的是年份在1-4的后面的id是一样的数据,全是1,或者全是2,或者全是3。但是有一部分数据如图绿色框内,id的数据不是同一个数,我需要把这种数据从年份1到4的全部去除,即去除绿色框的数据。
请问有什么好方法没!


雷达卡





京公网安备 11010802022788号







