- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input long stkcd int year long BusinessInstitutionID
- 4 2015 10514921
- 4 2009 10515981
- 4 2011 10515981
- 4 2012 10515981
- 4 2013 10515981
- 4 2014 10515981
- 4 2015 10515981
- 4 2016 10515981
- 4 2016 10516535
- 4 2015 10516931
- 4 2016 10516931
- 4 2009 10519103
- 4 2016 10519103
- 4 2017 10519103
- 4 2017 10520158
- 4 2018 10520158
- 4 2017 10520422
- 4 2009 10542818
- 4 2011 10542818
- 4 2018 10545122
- 4 2012 10545127
- 4 2013 10545127
- end
我想要的就是把BusinessInstitutionID 出现的次数按年来进行统计。想要的结果如下want所示,对于我来说,这个数据处理非常难,期待哪位好心人解答,不胜感激。
- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input long stkcd int year long BusinessInstitutionID float want
- 4 2015 10514921 1
- 4 2009 10515981 1
- 4 2011 10515981 2
- 4 2012 10515981 3
- 4 2013 10515981 4
- 4 2014 10515981 5
- 4 2015 10515981 6
- 4 2016 10515981 7
- 4 2016 10516535 1
- 4 2015 10516931 1
- 4 2016 10516931 2
- 4 2009 10519103 1
- 4 2016 10519103 2
- 4 2017 10519103 3
- 4 2017 10520158 1
- 4 2018 10520158 2
- 4 2017 10520422 1
- 4 2009 10542818 1
- 4 2011 10542818 2
- 4 2018 10545122 1
- 4 2012 10545127 1
- 4 2013 10545127 2
- end


雷达卡




[em17]
京公网安备 11010802022788号







