黃河泉 发表于 2020-3-10 16:05 
此外,特定序列一定是前后两个 1,中间是 0 (可能有不同数目的 0) 吗?
----------------------- copy starting from the next line -----------------------
- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input long id byte(event n)
- 200003 0 1
- 200003 0 2
- 200003 1 3
- 200003 1 4
- 200003 0 5
- 200003 0 6
- 200003 1 7
- 200003 1 8
- 200007 1 1
- 200007 1 2
- 200007 0 3
- 200007 0 4
- 200007 1 5
- 200007 1 6
- 200007 1 7
- 200008 0 1
- 200008 1 2
- 200008 1 3
- 200008 0 4
- 200008 0 5
- 200008 0 6
- 200008 0 7
- 200008 0 8
- 200008 1 9
- end
复制代码------------------ copy up to and including the previous line ------------------
谢谢黄河泉老师提醒,这个是部分资料,烦请帮我看下,另外特定序列前后两个1,但中间的0数量是不确定的,十分感谢!