- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input double(id year) str6 location str20 Summary
- 1 2011 "北京" "北京,上海"
- 1 2012 "上海" "北京,上海"
- 2 2013 "天津" "天津,北京"
- 2 2014 "北京" "天津,北京"
- 3 2011 "广州" "广州,重庆,天津"
- 3 2012 "重庆" "广州,重庆,天津"
- 3 2012 "天津" "广州,重庆,天津"
- end
- bys id year :gen Num=_N
- gen a=Num-1
- forvalue i=1/a {
- gen Summary = location + location[_n+`i']
- }


雷达卡



!!!
京公网安备 11010802022788号







