yonglil 发表于 2019-8-5 17:26 
第一个是记录sanction cases的TIES database,第二个是国家代码的COW。
我想要做的是把TIES里面的highli ...
数据的缩影大概是
TIES
clear
input long caseid int(endyear sender1 sender2 sender3 sender4 sender5 primarysender targetstate) str101 startyear str15 sanctiontype
1945121601 1947 2 . . . . 2 41 "1946" "2 7"
1946020801 1949 20 . . . . 40 41 "1946" "5"
1946031101 1993 40 20 41 . . 20 41 "1946" "1"
1946040901 1960 2 . . . . 2 41 "1946" "6"
1946051001 1946 2 . . . . 2 41 "1946" "7"
end
COW
clear
input str3 stateabb int ccode str32 statenme
"USA" 2 "United States of America"
"CAN" 20 "Canada"
"BHM" 31 "Bahamas"
"CUB" 40 "Cuba"
"HAI" 41 "Haiti"
end
目的是为了把2 41 等一系列原始数据里的国家代码国家简称
目前我是use cow,然后merge 1:m using TIES然后再瞎折腾的
想po上来看是否有更机智的办法可以学习!
谢谢!