-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappendix_regression.do
82 lines (40 loc) · 2.39 KB
/
appendix_regression.do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
***** This file contains the codes for the regression in Tables D.1 and F.1 in the appendix *****
clear all
set more off
capture log close
log using regression.log, replace
*** Past treaty membership and speed of ratification of future IEAs
import delimited "regression_citations_media.csv", encoding(ISO-8859-1) clear
encode treaty_id, gen(treaty_id_code)
encode party_code, gen(party_code_code)
gen spanlog=ln(span)
reg spanlog mean_reports i.treaty_id_code i.party_code_code i.year_rati, vce(cluster party_code_code)
estimates store ols1
reg spanlog mean_citations i.treaty_id_code i.party_code_code i.year_rati, vce(cluster party_code_code)
estimates store ols2
esttab ols1 ols2 using citation_media.tex, replace se ar2 nogaps title(Regression) mtitle(span logspan) keep(mean_reports mean_citations)
import delimited "regression_UN.csv", encoding(ISO-8859-1) clear
encode treaty_id, gen(treaty_id_code)
encode party_code, gen(party_code_code)
gen spanlog=ln(span)
gen num_total=num_nonununa+num_un_una
reg spanlog num_total i.treaty_id_code i.party_code_code i.year_rati , vce(cluster party_code_code)
estimates store ols3
esttab ols3 using num.tex, replace se ar2 nogaps title(Regression clustered by country) mtitle(speed) keep(num_total) star(* 0.10 ** 0.05 *** 0.01)
reg spanlog num_un_una num_nonununa i.treaty_id_code i.party_code_code i.year_rati , vce(cluster party_code_code)
estimates store ols4
esttab ols4 using UN.tex, replace se ar2 nogaps title(Regression clustered by country) mtitle(speed) keep(num_un_una num_nonununa) star(* 0.10 ** 0.05 *** 0.01)
*** Centrality ranking and speed of ratification of future IEAs
import delimited "regression_centrality_cut.csv", encoding(ISO-8859-1) clear
encode treaty_id, gen(treaty_id_code)
encode party_code, gen(party_code_code)
gen spanlog=ln(span)
reg spanlog rank_str i.treaty_id_code i.party_code_code i.year_rati, vce(cluster party_code_code)
estimates store ols1
reg spanlog rank_bet i.treaty_id_code i.party_code_code i.year_rati, vce(cluster party_code_code)
estimates store ols2
reg spanlog rank_clo i.treaty_id_code i.party_code_code i.year_rati, vce(cluster party_code_code)
estimates store ols3
esttab ols1 ols2 ols3 using centrality.tex, replace se ar2 nogaps title(Regression ranking) mtitle(strength betweenness_centrality closeness_centrality) keep(rank_str rank_bet rank_clo) star(* 0.10 ** 0.05 *** 0.01)
clear
log close