黃河泉 发表于 2018-10-16 15:49 
你若要问程序,永远附上相关资料;若附上资料,永远用 dataex 印出资料。先 ssc install dataex (并见说明) ...
* Example generated by -dataex-. To install: ssc install dataex
clear
input double(year code month) float(deathrate time treated did)
2013 110101 1 .0002915725 0 1 0
2013 110101 2 .00022386406 0 1 0
2013 110101 3 .00021286574 0 1 0
2013 110101 4 .00018105142 0 1 0
2013 110101 5 .0001810472 0 1 0
2013 110101 6 .0001506682 0 1 0
2013 110101 7 .0001776926 0 1 0
2013 110101 8 .0001676497 0 1 0
2013 110101 9 .00017533876 0 1 0
2013 110101 10 .00021620354 0 1 0
2013 110101 11 .00018583293 0 1 0
2013 110101 12 .0002111758 0 1 0
2013 110102 1 .00025236642 0 1 0
2013 110102 2 .00019674415 0 1 0
2013 110102 3 .00019117916 0 1 0
2013 110102 4 .00019369925 0 1 0
2013 110102 5 .00019492533 0 1 0
2013 110102 6 .0001600289 0 1 0
2013 110102 7 .00017204892 0 1 0
2013 110102 8 .00016476035 0 1 0
2013 110102 9 .00017282787 0 1 0
2013 110102 10 .00020726383 0 1 0
2013 110102 11 .00020238745 0 1 0
2013 110102 12 .0001974831 0 1 0
2013 110105 1 .00021290297 0 1 0
2013 110105 2 .00014647095 0 1 0
2013 110105 3 .0001529539 0 1 0
2013 110105 4 .00015977742 0 1 0