黃河泉 发表于 2017-12-22 07:02 
1. 请先"个别"。2. 检查一下,citycode 与 year 有无 missing values (.),有的话需要现去掉!3. 利用 data ...
老师,我的A数据库中 citycode和year是有相同的,这也是合理的数据,因为同一年份、同一城市有不同的企业。
----------------------- copy starting from the next line -----------------------
- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input float(citycode year)
- 1100 2000
- 1100 2000
- 2100 1999
- 2100 1999
- 2200 2000
- 2200 2000
- 2200 2000
- 2200 2000
- 2200 2000
- 3300 2000
- 3300 2000
- 3300 2000
- 110000 2000
- 110000 2000
- 110000 2000
- 110000 2000
- 110000 2000
- 110000 2000
- 110000 2000
- 110000 2000
- end
复制代码------------------ copy up to and including the previous line ------------------