anonymous-submission-acl2025 commited on
Commit
3b50d4c
·
1 Parent(s): aef4ebe
Files changed (49) hide show
  1. 41/paper.pdf +3 -0
  2. 41/replication_package/1_jtg_install_packages.do +9 -0
  3. 41/replication_package/2_jtg_prepare_data_all.do +1256 -0
  4. 41/replication_package/3_jtg_results_main.do +789 -0
  5. 41/replication_package/4_jtg_results_appendix.do +862 -0
  6. 41/replication_package/ReadMe.pdf +3 -0
  7. 41/replication_package/jtg_data/jtg_main.csv +3 -0
  8. 41/replication_package/jtg_data/jtg_main.dta +3 -0
  9. 41/replication_package/jtg_data_raw/BoixMillerRosato-v4.csv +3 -0
  10. 41/replication_package/jtg_data_raw/BoixMillerRosato-v4.dta +3 -0
  11. 41/replication_package/jtg_data_raw/COW_NMC-60-abridged.csv +3 -0
  12. 41/replication_package/jtg_data_raw/COW_NMC-60-abridged.dta +3 -0
  13. 41/replication_package/jtg_data_raw/COW_alliances.csv +3 -0
  14. 41/replication_package/jtg_data_raw/COW_alliances.dta +3 -0
  15. 41/replication_package/jtg_data_raw/COW_contiguity_2010.csv +3 -0
  16. 41/replication_package/jtg_data_raw/COW_contiguity_2010.dta +3 -0
  17. 41/replication_package/jtg_data_raw/COW_interstate_wars.csv +3 -0
  18. 41/replication_package/jtg_data_raw/COW_interstate_wars.dta +3 -0
  19. 41/replication_package/jtg_data_raw/COW_intrastatewar_v51.csv +3 -0
  20. 41/replication_package/jtg_data_raw/COW_intrastatewar_v51.dta +3 -0
  21. 41/replication_package/jtg_data_raw/COW_militarized_disputes.csv +3 -0
  22. 41/replication_package/jtg_data_raw/COW_militarized_disputes.dta +3 -0
  23. 41/replication_package/jtg_data_raw/COW_trade_4.csv +3 -0
  24. 41/replication_package/jtg_data_raw/COW_trade_4.dta +3 -0
  25. 41/replication_package/jtg_data_raw/Polity_IV_2016.csv +3 -0
  26. 41/replication_package/jtg_data_raw/Polity_IV_2016.dta +3 -0
  27. 41/replication_package/jtg_data_raw/UN_agreement_extract.csv +3 -0
  28. 41/replication_package/jtg_data_raw/UN_agreement_extract.dta +3 -0
  29. 41/replication_package/jtg_data_raw/VDem10_extract.csv +3 -0
  30. 41/replication_package/jtg_data_raw/VDem10_extract.dta +3 -0
  31. 41/replication_package/jtg_data_raw/aid_dac_countries.csv +3 -0
  32. 41/replication_package/jtg_data_raw/aid_dac_countries.dta +3 -0
  33. 41/replication_package/jtg_data_raw/country_codes.csv +3 -0
  34. 41/replication_package/jtg_data_raw/country_codes.dta +3 -0
  35. 41/replication_package/jtg_data_raw/dist_cepii.csv +3 -0
  36. 41/replication_package/jtg_data_raw/dist_cepii.dta +3 -0
  37. 41/replication_package/jtg_data_raw/hyde_pop.csv +3 -0
  38. 41/replication_package/jtg_data_raw/hyde_pop.dta +3 -0
  39. 41/replication_package/jtg_data_raw/maddison_gdp.csv +3 -0
  40. 41/replication_package/jtg_data_raw/maddison_gdp.dta +3 -0
  41. 41/replication_package/jtg_data_raw/mtech_raw.csv +3 -0
  42. 41/replication_package/jtg_data_raw/mtech_raw.dta +3 -0
  43. 41/replication_package/jtg_data_raw/navco_v2.csv +3 -0
  44. 41/replication_package/jtg_data_raw/navco_v2.dta +3 -0
  45. 41/replication_package/jtg_data_raw/prices.csv +3 -0
  46. 41/replication_package/jtg_data_raw/prices.dta +3 -0
  47. 41/replication_package/jtg_data_raw/sipri_arms_trade.csv +3 -0
  48. 41/replication_package/jtg_data_raw/sipri_arms_trade.dta +3 -0
  49. 41/should_reproduce.txt +3 -0
41/paper.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e4b152dd9fe0208ec4ab10ab1f616697a1682c38722e1607a66189039ea7320
3
+ size 679560
41/replication_package/1_jtg_install_packages.do ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ *Install necessary Stata packages
2
+
3
+ ssc install ranktest, replace
4
+ ssc install xtabond2, replace
5
+ ssc install ivreg2, replace
6
+ ssc install reghdfe, replace
7
+ ssc install ivreghdfe, replace
8
+ ssc install outreg2, replace
9
+ ssc install plausexog, replace
41/replication_package/2_jtg_prepare_data_all.do ADDED
@@ -0,0 +1,1256 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ clear
2
+
3
+ *IMPORTANT: Set current directoy to path of do-file before running
4
+ cd "path of this do file"
5
+
6
+
7
+ // OUTLINE OF THIS DO-FILE
8
+ * 1 Import data sets and construct variables
9
+ * 2 Code neighbors, second neighbors, and bilateral distances used in IV and controls for spatial spill-overs
10
+ * 3 Construct IV
11
+ * 4 Construct controls for spatial spill-overs
12
+ * 5 Merge intermediate data sets and prepare final data set for analysis
13
+
14
+
15
+ *###############################################################################
16
+ * 1 IMPORT DATA AND CONSTRUCT MAIN VARIABLES
17
+ *###############################################################################
18
+
19
+ use "jtg_data_raw\mtech_raw.dta"
20
+
21
+ local categories "s a r t m h"
22
+ local stechs "1 2 3 4 5 6 7 8 9"
23
+ local atechs "1 2 3 4 5"
24
+ local rtechs "1 2 3 4 5 6"
25
+ local ttechs "1 2 3 4 5"
26
+ local mtechs "1 2"
27
+ local htechs "1 2"
28
+
29
+ // GENERATE MILITARY TECHNOLOGY INDEX FROM DATA ON INDIVIDUAL TECHNOLOGIES
30
+ gen mtech=0
31
+ foreach x of local categories {
32
+ gen mtech_`x'=0
33
+ foreach y of local `x'techs {
34
+ replace mtech=mtech+`x'`y'_use
35
+ replace mtech_`x'=mtech_`x'+`x'`y'_use
36
+ }
37
+ }
38
+ gen mtech_exf=mtech_a+mtech_r+mtech_t+mtech_m+mtech_h
39
+ gen mtech_exgen=mtech-r4_use-r5_use-r6_use-h2_use-t4_use-t5_use
40
+ drop mtech_s mtech_a mtech_r mtech_t mtech_m mtech_h
41
+
42
+
43
+ //MERGE REGIONS AND COUNTRY CODE CROSSWALK
44
+ merge m:1 iso3 using "jtg_data_raw/country_codes.dta", keepusing(continent* region* COW_ccode)
45
+ drop if _merge!=3
46
+ drop _merge
47
+ rename COW_ccode ccode
48
+ drop if iso3=="KOS"
49
+
50
+ // ADD WORLD BANL CLASSIFICATION OF REGIONS (TO CONSTRUCT ACEMOGLU ET AL IV FOR DEMOCRACY)
51
+ gen region3=region2
52
+ replace region3="Eastern Europe and Central Asia" if country=="Kazakhstan"
53
+ replace region3="Eastern Europe and Central Asia" if country=="Kyrgyzstan"
54
+ replace region3="Eastern Europe and Central Asia" if country=="Tajikistan"
55
+ replace region3="Eastern Europe and Central Asia" if country=="Turkmenistan"
56
+ replace region3="Eastern Europe and Central Asia" if country=="Uzbekistan"
57
+ replace region3="Eastern Europe and Central Asia" if country=="Armenia"
58
+ replace region3="Eastern Europe and Central Asia" if country=="Azerbaijan"
59
+ replace region3="Eastern Europe and Central Asia" if country=="Georgia"
60
+ replace region3="Eastern Europe and Central Asia" if country=="Russian Federation"
61
+
62
+ replace region3="East Asia and the Pacific" if region3=="Asia and Oceania"
63
+ replace region3="Eastern Europe and Central Asia" if region3=="Eastern Europe and Balkan"
64
+
65
+
66
+ //MERGE GDP FROM MADDISON
67
+ rename iso3 countrycode
68
+ merge 1:1 countrycode year using "jtg_data_raw/maddison_gdp.dta", keepusing(cgdppc)
69
+ gen temp=ln(cgdppc)
70
+ ipolate temp year, gen(lngdpc) by(countrycode)
71
+ drop if _merge==2
72
+ drop _merge temp cgdppc
73
+ rename countrycode iso3
74
+
75
+
76
+ // FIX CCODE TO EASE MERGE
77
+ replace ccode = 529 if country=="Ethiopia" & year>=1993
78
+ replace ccode = 818 if country=="Viet nam" & year>=1976
79
+ replace ccode = 315 if country=="Czech Republic" & year<1993
80
+ replace ccode = 342 if country=="Serbia" & year<=1920
81
+ replace ccode = 345 if country=="Serbia" & year>1920 & year<1991
82
+ replace ccode = 347 if country=="Serbia" & year>=1991 & year<2006
83
+ replace ccode = 342 if country=="Serbia" & year>=2006
84
+ replace ccode = 730 if country=="Korea, Republic of" & year<=1910
85
+ replace ccode = 769 if country=="Pakistan" & year<=1971
86
+
87
+
88
+
89
+ //MERGE DEMOCRACY DATA (BOIX ET AL, POLITY IV, AND V-DEM)
90
+
91
+ //Boix et al
92
+ merge 1:1 ccode year using "jtg_data_raw/BoixMillerRosato-v4.dta", keepusing(democracy democracy_trans)
93
+ sort ccode year
94
+ replace country=country[_n-1] if ccode==ccode[_n-1] & country==""
95
+ replace iso3=iso3[_n-1] if ccode==ccode[_n-1] & iso3==""
96
+ replace continent=continent[_n-1] if ccode==ccode[_n-1] & continent==""
97
+ replace continent2=continent2[_n-1] if ccode==ccode[_n-1] & continent2==""
98
+ drop if country=="" | iso3==""
99
+ drop _merge
100
+ replace democracy=0 if country=="Russian Federation" & democracy==. //codes USSR as autocracy (neccessary becayse ccode is different in using data)
101
+ drop if country=="Serbia" & year<2010 & s1_use==. //Solves issue with having both Serbia and Serbia and Montenegro in data
102
+
103
+
104
+ *polity
105
+ merge 1:1 country year using "jtg_data_raw/polity_IV_2016", keepusing(polity2)
106
+ sort country year
107
+ replace ccode=ccode[_n-1] if country==country[_n-1] & ccode==.
108
+ replace iso3=iso3[_n-1] if country==country[_n-1] & iso3==""
109
+ drop if country=="" | iso3==""
110
+ drop _merge
111
+
112
+
113
+ *Vdem
114
+ gen country_text_id=iso3
115
+ merge 1:1 country_text_id year using "jtg_data_raw/Vdem10_extract.dta", keepusing(v2x_polyarchy v2regendtype v2reginfo)
116
+ sort country_text_id year
117
+ replace ccode=ccode[_n-1] if country_text_id==country_text_id[_n-1] & ccode==.
118
+ replace iso3=iso3[_n-1] if country_text_id==country_text_id[_n-1] & iso3==""
119
+ replace country=country[_n-1] if country_text_id==country_text_id[_n-1] & country==""
120
+ drop if country=="" | iso3==""
121
+ drop _merge
122
+
123
+
124
+
125
+ //CONSTRUCT DEMOCRATIZATION VARIABLES
126
+
127
+ *Democratization and regime no, Boix et al data
128
+ gen democratization=1 if democracy_trans==1
129
+ replace democratization=0 if democracy_trans!=1 & democracy_trans!=.
130
+ replace democratization=. if democracy==1 & democratization!=1
131
+ replace democratization=democratization*100
132
+
133
+ gen demoyear=year if democracy_trans==1
134
+ gen autoyear=year if democracy_trans==-1
135
+ egen lastdemo=max(demoyear), by(country)
136
+ egen lastauto=max(autoyear), by(country)
137
+ gen lastdem = 1 if lastdemo==year
138
+ replace lastdem=0 if lastdemo<lastauto & lastauto!=.
139
+ replace lastdem=0 if lastdemo>year
140
+ replace lastdem=. if democracy==.
141
+ replace lastdem=. if democracy==1 & year>lastdemo & lastdemo>lastauto
142
+ replace lastdem=. if democracy==1 & lastdemo==.
143
+ replace lastdem=lastdem*100
144
+
145
+ gen demreverse=1 if democracy_trans==-1
146
+ replace demreverse=0 if democracy_trans!=-1 & democracy_trans!=.
147
+ replace demreverse=. if democracy==0 & demreverse!=1
148
+ replace demreverse=demreverse*100
149
+
150
+ drop demoyear autoyear lastdemo lastauto
151
+
152
+ gen new_regime=0
153
+ gen regime_no=0
154
+ gen ones=1
155
+ replace new_regime=1 if democracy_trans[_n-1]!=0 & democracy_trans[_n-1]!=.
156
+ replace new_regime=1 if year!=year[_n-1]+1
157
+ replace new_regime=1 if iso3!=iso3[_n-1]
158
+ replace new_regime=1 if iso3==iso3[_n-1] & year==year[_n-1]+1 & democracy!=. & democracy[_n-1]==.
159
+
160
+ replace regime_no=regime_no[_n-1]+new_regime if regime_no[_n-1]!=.
161
+ replace regime_no=regime_no[_n+1] if democratization[_n-1]==. & democratization==0 & country[_n+1]==country[_n-1]
162
+ replace regime_no=. if democracy==.
163
+ egen regime_length=sum(ones), by(regime_no)
164
+
165
+ gen durdem=democratization
166
+ replace durdem=0 if democratization==100 & regime_length[_n+1]<10
167
+ replace durdem=0 if democracy==1 & regime_length[_n+1]<10
168
+
169
+ replace new_regime=0 if durdem!=. & durdem[_n-1]!=. & iso3==iso3[_n-1]
170
+
171
+ gen durableregime_no=regime_no if regime_no[_n-1]==. & iso3==iso3[_n-1]
172
+ replace durableregime_no=regime_no if iso3!=iso3[_n-1]
173
+ replace durableregime_no=regime_no if durdem[_n-1]==100 & iso3==iso3[_n-1]
174
+ replace durableregime_no=durableregime_no[_n-1] if durableregime_no==. & iso3==iso3[_n-1]
175
+ replace durableregime_no=. if durdem==.
176
+
177
+ gen dregime_no=regime_no
178
+ replace dregime_no=regime_no[_n-1] if demreverse==100
179
+ replace dregime_no=regime_no[_n+1] if demreverse[_n-1]!=0 & democracy==1
180
+ replace dregime_no=. if demreverse==.
181
+
182
+
183
+ *Democratization and regime no, polity IV data
184
+ gen democratization_polity=1 if polity2>5 & polity2[_n-1]<=5 & polity2!=. & country==country[_n-1]
185
+ replace democratization_polity=0 if democratization_polity!=1 & polity2<=5
186
+ replace democratization_polity=democratization_polity*100
187
+
188
+ gen demoyear=year if polity2>5 & polity2[_n-1]<=5 & polity2!=. & country==country[_n-1]
189
+ gen autoyear=year if polity2<5 & polity2[_n-1]>=5 & polity2!=. & country==country[_n-1]
190
+ egen lastdemo=max(demoyear), by(country)
191
+ egen lastauto=max(autoyear), by(country)
192
+ gen lastdem_polity = 1 if lastdemo==year
193
+ replace lastdem_polity=0 if lastdemo<lastauto & lastauto!=.
194
+ replace lastdem_polity=0 if lastdemo>year
195
+ replace lastdem_polity=. if polity2>5 & year>lastdemo & lastdemo>lastauto
196
+ replace lastdem_polity=. if polity2>5 & lastdemo==.
197
+ replace lastdem_polity=lastdem_polity*100
198
+
199
+ gen demreverse_polity=1 if polity2<5 & polity2[_n-1]>=5 & polity2!=. & country==country[_n-1]
200
+ replace demreverse_polity=0 if demreverse_polity!=1 & polity2!=.
201
+ replace demreverse_polity=. if polity2<=5 & demreverse_polity!=1
202
+ replace demreverse_polity=demreverse_polity*100
203
+
204
+ drop demoyear autoyear lastdemo lastauto
205
+
206
+
207
+ gen new_regime_polity=0
208
+ gen regime_no_polity=0
209
+
210
+ replace new_regime_polity=1 if democratization_polity[_n-1]==100 | demreverse_polity[_n-1]==100
211
+ replace new_regime_polity=1 if year!=year[_n-1]+1
212
+ replace new_regime_polity=1 if iso3!=iso3[_n-1]
213
+ replace new_regime_polity=1 if iso3==iso3[_n-1] & year==year[_n-1]+1 & polity2!=. & polity2[_n-1]==.
214
+
215
+ replace regime_no_polity=regime_no_polity[_n-1]+new_regime_polity if regime_no_polity[_n-1]!=.
216
+ replace regime_no_polity=regime_no_polity[_n+1] if democratization_polity[_n-1]==. & democratization_polity==0 & country[_n+1]==country[_n-1]
217
+ replace regime_no_polity=. if polity2==.
218
+ egen regime_length_polity=sum(ones), by(regime_no_polity)
219
+
220
+ gen durdem_polity=democratization_polity
221
+ replace durdem_polity=0 if democratization_polity==100 & regime_length_polity[_n+1]<10
222
+ replace durdem_polity=0 if polity2>5 & polity2!=. & regime_length_polity[_n+1]<10
223
+
224
+ replace new_regime_polity=0 if durdem_polity!=. & durdem_polity[_n-1]!=. & iso3==iso3[_n-1]
225
+
226
+ gen durableregime_no_polity=regime_no_polity if regime_no_polity[_n-1]==. & iso3==iso3[_n-1]
227
+ replace durableregime_no_polity=regime_no_polity if iso3!=iso3[_n-1]
228
+ replace durableregime_no_polity=regime_no_polity if durdem_polity[_n-1]==100 & iso3==iso3[_n-1]
229
+ replace durableregime_no_polity=durableregime_no_polity[_n-1] if durableregime_no_polity==. & iso3==iso3[_n-1]
230
+ replace durableregime_no_polity=. if durdem_polity==.
231
+
232
+ *Democratization and regime change, V-Dem data
233
+ sort country year
234
+ replace v2x_polyarchy=. if democracy==. // V-Dem codes colonial institutions in some cases, we remove those by making this replacement
235
+ gen rchange_vdem=0 if v2regendtype!=.
236
+ replace rchange_vdem=100 if v2reginfo[_n-1]!=v2reginfo & country[_n-1]==country & v2reginfo[_n-1]!="" & v2reginfo!=""
237
+ egen regime_no_vdem=group(v2reginfo country)
238
+
239
+ egen democracy_vdem=mean(v2x_polyarchy), by(regime_no_vdem)
240
+ replace democracy_vdem=. if v2x_polyarchy==. | v2reginfo==""
241
+ replace democracy_vdem=0 if democracy_vdem<=0.4
242
+ replace democracy_vdem=1 if democracy_vdem>0.4 & democracy_vdem!=.
243
+
244
+ replace regime_no_vdem=regime_no_vdem[_n-1] if rchange_vdem==100 & country[_n-1]==country
245
+
246
+ gen democratization_vdem=1 if democracy_vdem==1 & democracy_vdem[_n-1]==0 & democracy_vdem!=. & country==country[_n-1]
247
+ replace democratization_vdem=0 if democratization_vdem!=1 & democracy_vdem==0
248
+ replace democratization_vdem=democratization_vdem*100
249
+
250
+ gen demreverse_vdem=1 if democracy_vdem==0 & democracy_vdem[_n-1]==1 & country==country[_n-1]
251
+ replace demreverse_vdem=0 if demreverse_vdem!=1 & v2x_poly!=.
252
+ replace demreverse_vdem=. if democracy_vdem==0 & demreverse_vdem!=1
253
+ replace demreverse_vdem=demreverse_vdem*100
254
+
255
+ gen new_regime_vdem=0
256
+ gen autoregime_no_vdem=0
257
+
258
+ replace new_regime_vdem=1 if democratization_vdem[_n-1]==100 | demreverse_vdem[_n-1]==100
259
+ replace new_regime_vdem=1 if year!=year[_n-1]+1
260
+ replace new_regime_vdem=1 if iso3!=iso3[_n-1]
261
+ replace new_regime_vdem=1 if iso3==iso3[_n-1] & year==year[_n-1]+1 & v2x_polyarchy!=. & v2x_polyarchy[_n-1]==.
262
+
263
+ replace autoregime_no_vdem=autoregime_no_vdem[_n-1]+new_regime_vdem if autoregime_no_vdem[_n-1]!=.
264
+ replace autoregime_no_vdem=autoregime_no_vdem[_n+1] if democratization_vdem[_n-1]==. & democratization_vdem==0 & country[_n+1]==country[_n-1]
265
+ replace autoregime_no_vdem=. if v2x_polyarchy==.
266
+ egen regime_length_vdem=sum(ones), by(autoregime_no_vdem)
267
+
268
+ gen durdem_vdem=democratization_vdem
269
+ replace durdem_vdem=0 if democratization_vdem==100 & regime_length_vdem[_n+1]<10
270
+ replace durdem_vdem=0 if democracy_vdem==1 & democracy_vdem!=. & regime_length_vdem[_n+1]<10
271
+
272
+ replace new_regime_vdem=0 if durdem_vdem!=. & durdem_vdem[_n-1]!=. & iso3==iso3[_n-1]
273
+
274
+ gen durautoregime_no_vdem=autoregime_no_vdem if autoregime_no_vdem[_n-1]==. & iso3==iso3[_n-1]
275
+ replace durautoregime_no_vdem=autoregime_no_vdem if iso3!=iso3[_n-1]
276
+ replace durautoregime_no_vdem=autoregime_no_vdem if durdem_vdem[_n-1]==100 & iso3==iso3[_n-1]
277
+ replace durautoregime_no_vdem=durautoregime_no_vdem[_n-1] if durautoregime_no_vdem==. & iso3==iso3[_n-1]
278
+ replace durautoregime_no_vdem=. if durdem_vdem==.
279
+
280
+ drop new_regime* ones
281
+
282
+
283
+ // MERGE CORRELATES OF WAR (COW) DATA
284
+
285
+ //Merge COW material capabilites
286
+ merge m:1 ccode year using "jtg_data_raw/COW_NMC-60-abridged.dta", keepusing(milex milper tpop)
287
+ drop if _merge==2
288
+ drop _merge
289
+ replace milex=. if milex<0
290
+ replace milper=. if milper<0
291
+
292
+ xtset ccode year
293
+ ipolate milex year, by(ccode) gen(milex_i)
294
+ ipolate milper year, by(ccode) gen(milper_i)
295
+ replace milex=milex_i
296
+ replace milper=milper_i
297
+ drop milex_i milper_i
298
+
299
+ //Merge COW interstate wars
300
+ preserve
301
+ clear
302
+ use "jtg_data_raw/COW_interstate_wars.dta"
303
+ expand 195
304
+ sort warnum ccode
305
+ egen year=seq(), by(warnum ccode side)
306
+ replace year=year+1815
307
+
308
+ gen interstatewar=1 if year>=startyear1 & year<=endyear1
309
+ replace interstatewar=1 if year>=startyear2 & year<=endyear2 & endyear2!=.
310
+
311
+ collapse (max) interstatewar, by(ccode year)
312
+
313
+ save "jtg_data/temp.dta", replace
314
+ restore
315
+
316
+ merge 1:1 ccode year using "jtg_data/temp.dta"
317
+ drop if _merge==2
318
+ drop _merge
319
+ replace interstatewar=0 if interstatewar==. & tpop!=. //code 0 if no war, missing if not in CoW data
320
+
321
+ //Merge COW militarized disputes
322
+ preserve
323
+ clear
324
+ use "jtg_data_raw/COW_militarized_disputes.dta"
325
+ expand 195
326
+ sort dispnum3 ccode
327
+ egen year=seq(), by(dispnum3 ccode side)
328
+ replace year=year+1815
329
+
330
+ gen mildispute=1 if year>=styear & year<=endyear
331
+
332
+ collapse (max) mildispute, by(ccode year)
333
+
334
+
335
+ save "jtg_data/temp.dta", replace
336
+ restore
337
+
338
+ merge 1:1 ccode year using "jtg_data/temp.dta"
339
+ drop if _merge==2
340
+ drop _merge
341
+ replace mildispute=0 if mildispute==. & tpop!=. //code 0 if no dispute, missing if not in CoW data
342
+
343
+ //Merge COW intrastarte conflicts
344
+ preserve
345
+ clear
346
+ use "jtg_data_raw/COW_intrastatewar_v51.dta"
347
+ expand 195
348
+ rename CcodeA ccode
349
+ sort WarNum ccode
350
+ egen year=seq(), by(WarNum ccode)
351
+ replace year=year+1815
352
+
353
+ gen civilwar=1 if year>=StartYr1 & year<=EndYr1
354
+ replace civilwar=1 if year>=StartYr2 & year<=EndYr2 & EndYr2!=.
355
+ replace civilwar=1 if year>=StartYr3 & year<=EndYr3 & EndYr3!=.
356
+ replace civilwar=1 if year>=StartYr4 & year<=EndYr4 & EndYr4!=.
357
+
358
+ gen civilwar_central=civilwar if WarType==4
359
+
360
+ collapse (max) civilwar*, by(ccode year)
361
+
362
+ save "jtg_data\temp.dta", replace
363
+ restore
364
+
365
+ merge 1:1 ccode year using "jtg_data/temp.dta"
366
+ drop if _merge==2
367
+ drop _merge
368
+ replace civilwar=0 if civilwar==.
369
+ replace civilwar_central=0 if civilwar_central==. & tpop!=. //code 0 if no war, missing if not in CoW data
370
+
371
+
372
+ //Merge COW international trade
373
+ merge m:1 ccode year using "jtg_data_raw/COW_trade_4.dta", keepusing(imports exports)
374
+ drop if _merge==2
375
+ drop _merge
376
+
377
+ replace imports=. if imports==-9
378
+ replace exports=. if exports==-9
379
+ gen temp=ln(imports+exports) if imports!=. & exports!=.
380
+ ipolate temp year, gen(lntrade) by(ccode)
381
+ drop temp
382
+ gen trade=exp(lntrade)
383
+
384
+
385
+ //Merge COW Alliances
386
+ preserve
387
+ clear
388
+ use "jtg_data_raw/COW_alliances.dta"
389
+ gen ally_USA=1 if state_name1=="United States of America"
390
+ gen ally_Russia=1 if state_name1=="Russia"
391
+
392
+ collapse (mean) ally_*, by(ccode2 year)
393
+ rename ccode2 ccode
394
+ save "jtg_data/temp.dta", replace
395
+ restore
396
+
397
+ merge 1:1 ccode year using "jtg_data/temp.dta"
398
+ drop if _merge==2
399
+ drop _merge
400
+
401
+ replace ally_USA=0 if ally_USA==.
402
+ replace ally_Russia=0 if ally_Russia==.
403
+ replace ally_USA=1 if country=="United States"
404
+ replace ally_Russia=1 if country=="Russian Federation"
405
+
406
+
407
+
408
+
409
+ *MERGE SIPRI DATA
410
+ merge 1:1 iso3 year using "jtg_data_raw/sipri_arms_trade.dta"
411
+ drop if _merge==2
412
+ drop _merge
413
+
414
+
415
+ local tivvars "any us russia france uk"
416
+ xtset ccode year
417
+ foreach x of local tivvars {
418
+ replace tiv_`x'=0 if tiv_`x'==. & year>=1950
419
+ gen tivdum_`x'=tiv_`x'
420
+ replace tivdum_`x'=1 if tiv_`x'>0 & tiv_`x'!=.
421
+ gen tivakk_`x'=0 if year>=1949
422
+ replace tivakk_`x'=tiv_`x'+tivakk_`x'[_n-1] if country==country[_n-1] & year>=1950
423
+ }
424
+
425
+
426
+ //MERGE UN AGREEMENT DATA
427
+ preserve
428
+ clear
429
+ use "jtg_data_raw/UN_agreement_extract.dta"
430
+ keep ccode1 ccode2 agree year
431
+ reshape wide agree, i(ccode1 year) j(ccode2)
432
+ rename agree2 agree_USA
433
+ rename agree365 agree_Russia
434
+ replace agree_USA=1 if ccode1==2
435
+ replace agree_Russia=1 if ccode1==365
436
+ rename ccode1 ccode
437
+ save "jtg_data\temp.dta", replace
438
+ restore
439
+
440
+ merge 1:1 ccode year using "jtg_data/temp.dta"
441
+ drop if _merge==2
442
+ drop _merge
443
+
444
+
445
+ //MERGE FOREIGN AID DATA
446
+ gen countrycode=iso3
447
+ merge 1:1 countrycode year using "jtg_data_raw/aid_dac_countries.dta"
448
+ gen lnaid=ln(aid)
449
+ replace lnaid=0 if lnaid==.
450
+ drop if _merge==2
451
+ drop _merge
452
+
453
+ //MERGE COLONIAL RELATIONSHIPS FROM CEPII
454
+ preserve
455
+ clear
456
+ use "jtg_data_raw/dist_cepii.dta"
457
+ rename iso_o iso3
458
+ gen colony_we=colony if iso_d=="FRA" | iso_d=="DEU" | iso_d=="GBR" | iso_d=="PRT" | iso_d=="NLD" | iso_d=="ITA"
459
+ replace colony_we=0 if colony_we==.
460
+ gen colony_ussr=colony if iso_d=="RUS"
461
+ replace colony_ussr=0 if colony_ussr==.
462
+ keep iso3 colony colony_we colony_ussr
463
+ collapse (max) colony*, by(iso3)
464
+ replace iso3="ROU" if iso3=="ROM"
465
+ replace iso3="SRB" if iso3=="YUG"
466
+ save "jtg_data\temp.dta", replace
467
+ restore
468
+
469
+ merge m:1 iso3 using "jtg_data/temp.dta"
470
+ drop if _merge==2
471
+ drop _merge
472
+ replace colony=0 if colony==.
473
+ replace colony_we=0 if colony_we==.
474
+ replace colony_ussr=0 if colony_ussr==.
475
+
476
+ gen temp1=1 if democracy!=. & year==1946 //code independence in 1946, colony variables only consider postwar period
477
+ egen temp2=max(temp1), by(iso3)
478
+ replace colony=0 if temp2==1 | country=="Germany" | country=="Israel" | country=="Taiwan, Province of China"
479
+ replace colony_we=0 if temp2==1 | country=="Germany" | country=="Israel" | country=="Taiwan, Province of China"
480
+ replace colony_ussr=0 if temp2==1
481
+ drop temp*
482
+
483
+
484
+
485
+
486
+ //MERGE NAVCO DATA
487
+ preserve
488
+ clear
489
+ use "jtg_data_raw/navco_v2.dta"
490
+ gen resistance=1 if prim_method==0 | prim_method==1
491
+ replace resistance=0 if resistance!=1 & prim_method!=.
492
+ replace resistance=0 if year>1944 & prim_method==.
493
+ gen vresistance=1 if prim_method==0
494
+ replace vresistance=0 if vresistance!=1 & prim_method!=.
495
+ replace vresistance=0 if year>1944 & prim_method==.
496
+ gen nresistance=1 if prim_method==1
497
+ replace nresistance=0 if nresistance!=1 & prim_method!=.
498
+ replace nresistance=0 if year>1944 & prim_method==.
499
+
500
+ gen resistance_onset=0
501
+ replace resistance_onset=1 if cyear==0
502
+
503
+ replace ccode = 818 if location=="Vietnam"
504
+ replace ccode = 315 if location=="Czechoslovakia"
505
+ replace ccode = 365 if location=="USSR"
506
+ replace ccode = 365 if location=="Russia"
507
+ replace ccode = 679 if location=="Yemen"
508
+
509
+ destring tccode, replace force
510
+ replace tccode=490 if target=="Mobutu regime"
511
+ drop if lccode!=tccode
512
+
513
+ replace camp_size=camp_size_est+1 if camp_size==. & camp_size_est!=.
514
+ replace camp_size=camp_size_est+1 if camp_size==-99 & camp_size_est!=.
515
+ replace camp_size=3 if id==9
516
+
517
+ collapse (max) resistance vresistance* nresistance progress success resistance_onset camp_size, by(ccode year)
518
+
519
+ save "jtg_data/temp.dta", replace
520
+ restore
521
+
522
+ merge 1:1 ccode year using "jtg_data/temp.dta"
523
+
524
+ drop if _merge==2
525
+ drop _merge
526
+ replace resistance=0 if year>1944 & resistance==.
527
+ replace vresistance=0 if year>1944 & vresistance==.
528
+ replace nresistance=0 if year>1944 & nresistance==.
529
+ replace resistance_onset=0 if year>1944 & resistance_onset==.
530
+
531
+
532
+ //MERGE HYDE POPULATION DATA
533
+ merge 1:1 iso3 year using "jtg_data_raw/hyde_pop.dta", keepusing(pop_hyde)
534
+
535
+ replace pop_hyde=tpop*1000 if country=="Maldives" //only country with missing data in hyde
536
+ replace pop_hyde=42380 if country=="Maldives" & year==1820 //data from clio infra
537
+ replace pop_hyde=72000 if country=="Maldives" & year==1910
538
+
539
+ replace pop_hyde=ln(pop_hyde)
540
+ ipolate pop_hyde year, by(iso3) gen(temp)
541
+ replace pop_hyde=exp(temp)
542
+
543
+ drop if _merge==2
544
+ drop _merge temp
545
+
546
+
547
+ //GENERATE SAMPLES
548
+ gen temp=1 if year>=1850 & democracy!=.
549
+ egen longsample=sum(temp), by(country)
550
+ replace longsample=0 if longsample<(2010-1850)
551
+ replace longsample=1 if longsample>0 & longsample!=.
552
+ replace longsample=. if year<1850
553
+ drop temp
554
+
555
+ gen temp=1 if year>=1920 & democracy!=.
556
+ egen mediumsample=sum(temp), by(country)
557
+ replace mediumsample=0 if mediumsample<(2010-1920)
558
+ replace mediumsample=1 if mediumsample>0 & mediumsample!=.
559
+ replace mediumsample=. if year<1920
560
+ drop temp
561
+
562
+ gen temp=1 if year>=1945 & democracy!=.
563
+ egen shortsample=sum(temp), by(country)
564
+ replace shortsample=0 if shortsample<(2010-1945)
565
+ replace shortsample=1 if shortsample>0 & shortsample!=.
566
+ replace shortsample=. if year<1945
567
+ drop temp
568
+
569
+
570
+ sort country year
571
+
572
+ *GENERATE ADDITIONAL VARIABLES
573
+ xtset ccode year
574
+ sort ccode year
575
+
576
+ gen gdp=exp(lngdpc)+pop_hyde
577
+ gen lnmilex=ln(milex)
578
+ gen lnmilex_pop=ln(milex)-ln(tpop)
579
+ gen milper_pop=milper/tpop
580
+
581
+ gen resistance_3y=max(resistance, L.resistance, L2.resistance)
582
+ gen vresistance_3y=max(vresistance, L.vresistance, L2.vresistance)
583
+ gen nresistance_3y=max(nresistance, L.nresistance, L2.nresistance)
584
+ gen civilwar_3y=max(civilwar, L.civilwar, L2.civilwar)
585
+ gen civilwar_central_3y=max(civilwar_central, L.civilwar_central, L2.civilwar_central)
586
+ gen mildispute_3y=max(mildispute, L.mildispute, L2.mildispute)
587
+ gen interstatewar_3y=max(interstatewar, L.interstatewar, L2.interstatewar)
588
+
589
+ gen agree_us_3y=(agree_USA+L.agree_USA+L2.agree_USA)/3
590
+ gen agree_russia_3y=(agree_Russia+L.agree_Russia+L2.agree_Russia)/3
591
+ gen us_rus_agree_diff=agree_us_3y-agree_russia_3y
592
+ drop agree_us_3y agree_russia_3y
593
+ replace us_rus_agree_diff= 0 if us_rus_agree_diff==. & year>1945
594
+
595
+
596
+ save "jtg_data/jtg_main.dta", replace
597
+
598
+ erase "jtg_data/temp.dta"
599
+
600
+ *###############################################################################
601
+ * 2 CODE NEIGHBORS AND DISTANCES
602
+ *###############################################################################
603
+
604
+ *This bit of code identifies neighbours, second neighbors and bilateral distances used to
605
+ *cosntruct the instrument and the controls for spatial spill-overs
606
+
607
+ *Get neighbours
608
+ clear
609
+ use "jtg_data_raw/COW_contiguity_2010.dta"
610
+
611
+
612
+ keep if conttype<4
613
+ keep state*no
614
+
615
+
616
+ save "jtg_data/temp.dta", replace
617
+
618
+ rename state1no ccode
619
+ rename state2no state1no
620
+
621
+ joinby state1no using "jtg_data/temp.dta"
622
+
623
+ expand 2, gen(new)
624
+ gen neighbour=state1no if new==0
625
+ gen neighbour_type=1 if new==0
626
+ replace neighbour=state2no if new==1
627
+ replace neighbour_type=2 if new==1
628
+ sort ccode neighbour neighbour_type
629
+
630
+ duplicates drop ccode neighbour, force
631
+
632
+ keep ccode neighbour neighbour_type
633
+ save "jtg_data/neighbours.dta", replace
634
+
635
+ *Get bilateral distances
636
+ clear
637
+ use "jtg_data_raw/dist_cepii.dta"
638
+ keep iso* distw
639
+
640
+ replace iso_o="ROU" if iso_o=="ROM"
641
+ replace iso_d="ROU" if iso_d=="ROM"
642
+ replace iso_o="SRB" if iso_o=="YUG"
643
+ replace iso_d="SRB" if iso_d=="YUG"
644
+
645
+ rename iso_o iso3
646
+
647
+ merge m:1 iso3 using "jtg_data_raw/country_codes.dta", keepusing(country COW_ccode region2)
648
+ drop if _merge!=3
649
+ drop _merge
650
+
651
+ rename COW_ccode ccode
652
+ rename iso3 iso_main
653
+ rename iso_d iso3
654
+ rename region2 region
655
+
656
+ merge m:1 iso3 using "jtg_data_raw/country_codes.dta", keepusing(COW_ccode region2)
657
+ drop if _merge!=3
658
+ drop _merge
659
+ rename COW_ccode neighbour
660
+ rename iso3 iso3_dyad
661
+ rename iso_main iso3
662
+ rename region2 region_neighbour
663
+
664
+ duplicates drop ccode neighbour, force
665
+
666
+ *merge back neighbour data on distances
667
+ merge 1:1 ccode neighbour using "jtg_data/neighbours.dta", keepusing(neighbour_type)
668
+ drop if _merge==2
669
+ drop _merge ccode neighbour
670
+ order country iso3 iso3_dyad neighbour_type distw
671
+
672
+ drop if iso3==iso3_dyad
673
+
674
+ gen year=2000
675
+ merge m:1 iso3 year using "jtg_data/jtg_main.dta"
676
+ drop if _merge!=3
677
+ keep country iso3 iso3_dyad neighbour_type distw
678
+
679
+ drop if distw==.
680
+
681
+ save "jtg_data/neighbours.dta", replace
682
+ erase "jtg_data/temp.dta"
683
+
684
+
685
+
686
+ *###############################################################################
687
+ * 3 CONSTRUCT INSTRUMENT
688
+ *###############################################################################
689
+
690
+ *This bit of code constructs the instrument (and the alternative instruments used in the appendix)
691
+
692
+ clear
693
+ use "jtg_data/jtg_main.dta"
694
+
695
+ replace independent="" if democracy==. // restrict sample to countries covered by both the Boix et al democracy data (equivalent to keeping only independent states) and the military tech data
696
+
697
+ keep country year iso3 pop_hyde ccode *_use independent
698
+ drop if year<1820
699
+
700
+
701
+ //Reshape
702
+ rename *_use use*
703
+ rename uses* use1*
704
+ rename usea* use2*
705
+ rename user* use3*
706
+ rename uset* use4*
707
+ rename usem* use5*
708
+ rename useh* use6*
709
+
710
+ reshape long use, i(country year iso3 pop_hyde independent) j(tech)
711
+
712
+
713
+ //SAVE MEMORY
714
+ //Drop observations prior to invention
715
+ gen temp=year if use==1
716
+ egen firstuse=min(temp), by(tech)
717
+ drop if year<firstuse-1
718
+ drop temp
719
+
720
+
721
+ *drop observations five years after full adoption
722
+ egen adoptionrate=mean(use), by(tech year)
723
+ gen temp=year if adoptionrate==1
724
+ egen lastyear=min(temp), by(tech)
725
+ drop if year>lastyear+5
726
+ drop lastyear temp
727
+
728
+ drop if iso3==""
729
+
730
+
731
+ save "jtg_data/temp.dta", replace
732
+
733
+ //GENERATE VARIABLES
734
+ levelsof tech, local(techs)
735
+ foreach x of local techs {
736
+ *foreach x of numlist 31 { // for debugging
737
+ clear
738
+ use "jtg_data/temp.dta"
739
+ keep if tech==`x'
740
+ sum year
741
+ scalar firstyear=`r(min)'
742
+ scalar lastyear=`r(max)'
743
+ clear
744
+ use "jtg_data/neighbours.dta"
745
+ expand lastyear-firstyear+1
746
+ egen dyad=group(iso3 iso3_dyad)
747
+ sort dyad
748
+ gen year=_n-(dyad-1)*(lastyear-firstyear+1)+firstyear-1
749
+ drop dyad
750
+ gen tech=`x'
751
+ merge m:1 iso3 year tech using "jtg_data/temp.dta", keepusing(independent) //eliminate observations when main country not independent to save time
752
+ drop if _merge!=3
753
+ drop _merge
754
+ rename iso3 iso3_main
755
+ rename iso3_dyad iso3
756
+ drop if independent!="yes"
757
+ drop independent
758
+ merge m:1 iso3 year tech using "jtg_data/temp.dta" //import use, population data for weights etc
759
+ drop if _merge!=3
760
+ drop _merge
761
+ rename iso3 iso3_neighbour
762
+ rename iso3_main iso3
763
+
764
+ gen bal_temp=1 if year==lastyear & use==.
765
+ egen missing=max(bal_temp), by(iso3_neighbour)
766
+ drop if missing==1
767
+
768
+ egen obsno=count(year), by(iso3 iso3_neighbour)
769
+ gen obs_dyad=1 if independent=="yes"
770
+ egen obsno_dyad=sum(obs_dyad), by(iso3 iso3_neighbour)
771
+ egen yindp=min(year) , by(iso3)
772
+ gen balance_indp=1 if obsno==obsno_dyad
773
+
774
+
775
+ *gen lnpop in startyear
776
+ gen temp=ln(pop_hyde) if year==firstyear
777
+ egen lnpop_firstyear=mean(temp), by(iso3_neighbour iso3)
778
+ drop temp
779
+ gen temp=ln(pop_hyde) if year==max(yindp,firstyear)
780
+ egen lnpop_yindp=mean(temp), by(iso3_neighbour iso3)
781
+ drop temp
782
+
783
+
784
+ *Generate variables (all both simple and ex neighbours): distance to nearest user , use in neighbours, distance-weighted use (how to calculate
785
+
786
+ drop if iso3_neighbour=="DEU" | iso3_neighbour=="FRA" | iso3_neighbour=="RUS" | iso3_neighbour=="GBR" | iso3_neighbour=="USA"
787
+
788
+ gen distweight_use1=use/distw
789
+ gen distweight_use2=use/distw if neighbour_type!=1
790
+
791
+ gen distweight_use1_bali=use/distw if balance_indp==1
792
+ gen distweight_use2_bali=use/distw if neighbour_type!=1 & balance_indp==1
793
+ gen distweight_use3_bali=use/distw if neighbour_type!=1 & balance_indp==1 & distw>500
794
+ gen distweight_use4_bali=use/distw if neighbour_type!=1 & balance_indp==1 & distw>750
795
+ gen distweight_use5_bali=use/distw if neighbour_type!=1 & balance_indp==1 & distw>1000
796
+
797
+
798
+ gen distweight_obs1=1/distw
799
+ gen distweight_obs2=1/distw if neighbour_type!=1
800
+
801
+ gen distweight_obs1_bali=1/distw if balance_indp==1
802
+ gen distweight_obs2_bali=1/distw if neighbour_type!=1 & balance_indp==1
803
+ gen distweight_obs3_bali=1/distw if neighbour_type!=1 & balance_indp==1 & distw>500
804
+ gen distweight_obs4_bali=1/distw if neighbour_type!=1 & balance_indp==1 & distw>750
805
+ gen distweight_obs5_bali=1/distw if neighbour_type!=1 & balance_indp==1 & distw>1000
806
+
807
+
808
+ gen distweight_usepop1_bali=distweight_use1_bali*lnpop_yindp
809
+ gen distweight_obspop1_bali=distweight_obs1_bali*lnpop_yindp
810
+ gen distweight_usepop2_bali=distweight_use2_bali*lnpop_yindp
811
+ gen distweight_obspop2_bali=distweight_obs2_bali*lnpop_yindp
812
+
813
+
814
+ collapse (sum) distw* , by(iso3 tech country year)
815
+
816
+
817
+ cd jtg_data
818
+ save temp`x'.dta , replace
819
+ cd ..
820
+
821
+ }
822
+
823
+
824
+ *Append
825
+ clear
826
+ use "jtg_data/temp11.dta"
827
+
828
+ drop if year!=9999
829
+
830
+ cd jtg_data
831
+ *foreach x of local techs {
832
+ foreach x of numlist 11 12 13 14 15 16 17 18 19 21 22 23 24 25 31 32 33 34 35 36 41 42 43 44 45 51 52 61 62 {
833
+ append using temp`x'.dta
834
+ erase temp`x'.dta
835
+ }
836
+ cd ..
837
+
838
+
839
+ save "jtg_data/temp.dta", replace
840
+
841
+ //Merge use data
842
+ clear
843
+ use "jtg_data/jtg_main.dta"
844
+ drop if independent!="yes"
845
+ keep country year iso3 region2 ccode *_use
846
+
847
+
848
+
849
+ //Reshape
850
+ rename *_use use*
851
+ rename uses* use1*
852
+ rename usea* use2*
853
+ rename user* use3*
854
+ rename uset* use4*
855
+ rename usem* use5*
856
+ rename useh* use6*
857
+
858
+ reshape long use, i(country year iso3 region2 ) j(tech)
859
+
860
+
861
+ merge 1:1 iso3 tech year using "jtg_data/temp.dta"
862
+ drop if _merge==2
863
+ drop _merge
864
+
865
+ save "jtg_data/temp.dta", replace
866
+
867
+ *Gen final IVs
868
+ clear
869
+ use "jtg_data/temp.dta"
870
+ set matsize 1000
871
+
872
+ gen iv_n1=distweight_use1_bali/distweight_obs1_bali
873
+ gen iv_n2=distweight_use2_bali/distweight_obs2_bali
874
+ gen iv_n1_pop=distweight_usepop1_bali/distweight_obspop1_bali
875
+ gen iv_n2_pop=distweight_usepop2_bali/distweight_obspop2_bali
876
+ gen iv_n2_500=distweight_use3_bali/distweight_obs3_bali
877
+ gen iv_n2_750=distweight_use4_bali/distweight_obs4_bali
878
+ gen iv_n2_1000=distweight_use5_bali/distweight_obs5_bali
879
+
880
+
881
+ *Fill out missing observaions before invention year and after year where all countries have adopted
882
+ gen temp=year if use==1
883
+ egen firstobs=min(temp), by(tech)
884
+ drop temp
885
+ gen temp=year if use==0
886
+ egen lastobs=max(temp), by(tech)
887
+
888
+ foreach x in iv_n1_pop iv_n2_pop iv_n1 iv_n2 iv_n2_500 iv_n2_750 iv_n2_1000 {
889
+ replace `x'=0 if year<firstobs
890
+ replace `x'=1 if year>lastobs
891
+ }
892
+
893
+ drop temp firstobs lastobs
894
+
895
+ *Reshape
896
+ keep country iso3 tech iv_* year
897
+ reshape wide iv_* , i(country iso3 year) j(tech)
898
+ foreach x in iv_n1_pop iv_n2_pop iv_n1 iv_n2 iv_n2_500 iv_n2_750 iv_n2_1000 {
899
+ rename `x'1* s*_`x'
900
+ rename `x'2* a*_`x'
901
+ rename `x'3* r*_`x'
902
+ rename `x'4* t*_`x'
903
+ rename `x'5* m*_`x'
904
+ rename `x'6* h*_`x'
905
+ }
906
+
907
+ *Generate IV version of various permutations of the military technology index
908
+ local categories "s a r t m h"
909
+ local stechs "1 2 3 4 5 6 7 8 9"
910
+ local atechs "1 2 3 4 5"
911
+ local rtechs "1 2 3 4 5 6"
912
+ local ttechs "1 2 3 4 5"
913
+ local mtechs "1 2"
914
+ local htechs "1 2"
915
+
916
+ foreach z in iv_n1_pop iv_n2_pop iv_n1 iv_n2 iv_n2_500 iv_n2_750 iv_n2_1000 {
917
+ gen mtech_`z'=0
918
+ foreach x of local categories {
919
+ gen mtech_`x'_`z'=0
920
+ foreach y of local `x'techs {
921
+ replace mtech_`z'=mtech_`z'+`x'`y'_`z'
922
+ replace mtech_`x'_`z'=mtech_`x'_`z'+`x'`y'_`z'
923
+ }
924
+ }
925
+ gen mtech_exf_`z'=mtech_a_`z'+mtech_r_`z'+mtech_t_`z'+mtech_m_`z'+mtech_h_`z'
926
+ gen mtech_exgen_`z'=mtech_`z'-r4_`z'-r5_`z'-r6_`z'-h2_`z'-t4_`z'-t5_`z'
927
+
928
+ }
929
+ *Drop variables not used in paper
930
+ keep country year iso3 mtech_iv_n2_pop mtech_iv_n1 mtech_iv_n2 mtech_exf_iv_n2 mtech_exgen_iv_n2 mtech_iv_n2_500 mtech_iv_n2_750 mtech_iv_n2_1000 m2_iv_n2 r3_iv_n2
931
+
932
+ save "jtg_data/instruments.dta", replace
933
+ erase "jtg_data/temp.dta"
934
+
935
+
936
+ *###############################################################################
937
+ * 4 CONSTRCUT CONTROLS FOR SPATIAL SPILL_OVERS
938
+ *###############################################################################
939
+
940
+ *This bit of code construct variables in neighboring countries as well as distance-weighted control variables
941
+
942
+ clear
943
+ use "jtg_data\neighbours.dta"
944
+
945
+ local dummies "interstatewar democratization democracy civilwar ally_USA ally_Russia tivdum_us tivdum_russia tivdum_uk tivdum_france resistance"
946
+ local cvars "gdp trade aid pop_hyde mtech agree_USA agree_Russia"
947
+ local allvars `dummies' `cvars'
948
+
949
+ expand 196
950
+ egen year=seq(), by(iso3 iso3_dyad)
951
+ replace year=year+1819
952
+
953
+ merge m:1 iso3 year using "jtg_data/jtg_main.dta", keepusing(democracy region3 durableregime_no)
954
+ drop if _merge!=3
955
+ drop if democracy==.
956
+ keep iso3 iso3_dyad neighbour_type distw year region3 durableregime_no country
957
+
958
+ rename iso3 iso3_main
959
+ rename iso3_dyad iso3
960
+ rename region3 region3_main
961
+
962
+ merge m:1 iso3 year using "jtg_data/jtg_main.dta", keepusing(`allvars' independent region3)
963
+ drop if _merge!=3
964
+ drop _merge
965
+
966
+ drop if independent!="yes"
967
+
968
+ rename iso3 iso3_neighbour
969
+ rename iso3_main iso3
970
+
971
+ gen majorpower=1 if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
972
+
973
+
974
+ foreach x of local allvars {
975
+ gen n1_`x'=`x' if neighbour_type==1
976
+ gen n2_`x'=`x' if neighbour_type==2
977
+ }
978
+
979
+
980
+ *Generate # of neighbors
981
+ gen n1number=1 if neighbour_type==1
982
+ gen n2number=1 if neighbour_type==2
983
+
984
+
985
+ *Generate distance-weighted variables
986
+ foreach x of local allvars {
987
+ gen distw1_`x'=`x'/distw if majorpower!=1
988
+ gen distw1_`x'_obs=1/distw if `x'!=. & majorpower!=1
989
+
990
+ }
991
+
992
+ *Generate dummies for resistance in neighboring autocracies
993
+ gen n1_auto_resistance=resistance*(1-democracy) if neighbour_type==1
994
+ gen n2_auto_resistance=resistance*(1-democracy) if neighbour_type==2
995
+
996
+
997
+ *Generate Acemoglu et al (2019) style democracy iv and military technology iv
998
+ egen regime_firstyear=min(year), by(durableregime_no)
999
+ gen temp=1 if democracy==0 & year==regime_firstyear & region3_main==region3
1000
+ egen balance=max(temp), by(iso3 iso3_neighbour durableregime_no)
1001
+ replace balance=1 if iso3=="LBR" & region3=="Sub-Saharan Africa" //takes care of the fact that Liberia was the first independent state in the region covered by the democract data
1002
+ gen democracy_iv_ANRR=democracy if balance==1
1003
+
1004
+ egen dyad_no=group(iso3 iso3_neighbour)
1005
+ xtset dyad_no year
1006
+ ipolate mtech year, by(dyad_no) gen(mtech_i)
1007
+ gen mtech_iv_ANRR=mtech_i if balance==1
1008
+ drop balance temp
1009
+
1010
+ *Gen acemoglu-style IV but with distance weights rather than regions
1011
+ gen temp=1 if democracy==0 & year==regime_firstyear
1012
+ egen balance=max(temp), by(iso3 iso3_neighbour durableregime_no)
1013
+ gen democracy_iv_ANRR_distw=democracy/distw if balance==1
1014
+ gen democracy_iv_ANRR_distw_obs=1/distw if balance==1
1015
+
1016
+ *Collapse dyadic data
1017
+ keep *dist* n1* n2* iso3 year *ANRR*
1018
+ collapse (sum) *dist* n1* n2* (mean) democracy_iv_ANRR mtech_iv_ANRR*, by(iso3 year)
1019
+
1020
+ *Generate averages
1021
+ gen n1_democracy_avg= n1_democracy/n1number if n1number!=0
1022
+ gen n2_democracy_avg= n2_democracy/n2number if n2number!=0
1023
+ replace n1_democracy_avg=0 if n1number==0 & n1_democracy!=.
1024
+ replace n2_democracy_avg=0 if n2number==0 & n2_democracy!=.
1025
+
1026
+
1027
+ gen n1_agree_USA_avg=n1_agree_USA/n1number if n1number!=0
1028
+ replace n1_agree_USA_avg=0 if n1number==0 & n1_agree_USA!=.
1029
+
1030
+ gen n1_agree_Russia_avg=n1_agree_Russia/n1number if n1number!=0
1031
+ replace n1_agree_Russia_avg=0 if n1number==0 & n1_agree_Russia!=.
1032
+
1033
+
1034
+ *Create dummies from sums
1035
+ foreach x of local dummies {
1036
+ replace n1_`x'=0 if n1_`x'==.
1037
+ replace n2_`x'=0 if n2_`x'==.
1038
+ replace n1_`x'=1 if n1_`x'>1
1039
+ replace n2_`x'=1 if n2_`x'>1
1040
+
1041
+ }
1042
+
1043
+ *Generate log variables
1044
+ foreach x of local cvars {
1045
+ gen n1_ln`x'=ln(n1_`x')
1046
+ gen n2_ln`x'=ln(n2_`x')
1047
+ gen distw1_ln`x'=ln(distw1_`x')
1048
+ }
1049
+
1050
+
1051
+ *Rescale weighted vars
1052
+ foreach x of local allvars {
1053
+ replace distw1_`x'=distw1_`x'/distw1_`x'_obs
1054
+ }
1055
+ replace democracy_iv_ANRR_distw=democracy_iv_ANRR_distw/democracy_iv_ANRR_distw_obs
1056
+
1057
+
1058
+ *Resistance in autocracies
1059
+ replace n1_auto_resistance=0 if n1_auto_resistance==.
1060
+ replace n2_auto_resistance=0 if n2_auto_resistance==.
1061
+ replace n1_auto_resistance=1 if n1_auto_resistance>1
1062
+ replace n2_auto_resistance=1 if n2_auto_resistance>1
1063
+
1064
+
1065
+ drop *_obs n1number n2number *lnagree* *hyde* *lnmtech
1066
+
1067
+ save "jtg_data/diffusioncontrols.dta", replace
1068
+
1069
+
1070
+ *###############################################################################
1071
+ * 5 CREATE FINAL DATA SET FOR ANALYSIS
1072
+ *###############################################################################
1073
+
1074
+ *This bit of code merges the intermediate data sets constructed above, deletes
1075
+ *unneccessary variables, and renames the remaining ones. The final data set is
1076
+ *saved in the folder jtg_data
1077
+
1078
+ clear
1079
+ use "jtg_data/jtg_main.dta"
1080
+
1081
+ merge 1:1 iso3 year using "jtg_data/instruments.dta"
1082
+ drop if _merge==2
1083
+ drop _merge
1084
+
1085
+ merge 1:1 iso3 year using "jtg_data/diffusioncontrols.dta"
1086
+ drop if _merge==2
1087
+ drop _merge
1088
+
1089
+ drop *_use*
1090
+
1091
+ egen countryno=group(iso3)
1092
+
1093
+ xtset countryno year
1094
+ sort countryno year
1095
+
1096
+ local lagvars "democratization interstatewar civilwar auto_resistance"
1097
+ foreach x of local lagvars {
1098
+ gen n1_`x'_3y=max(n1_`x', L.n1_`x', L2.n1_`x')
1099
+ gen n2_`x'_3y=max(n2_`x', L.n2_`x', L2.n2_`x')
1100
+ }
1101
+
1102
+ drop if year<1820
1103
+
1104
+ *Drop unnecessary variables (e.g., GDP in levels). Some of these variables are auxillary variables used to create final variables,
1105
+ *others are redundant because they are so closely related to variables we already control for
1106
+ drop region region3 continent country_text_id
1107
+ drop countrycode series imports exports trade aid gdp *_trade *_aid *_gdp pop_hyde
1108
+ drop distw1_ally_USA distw1_ally_Russia distw1_tivdum_us distw1_tivdum_russia distw1_tivdum_uk distw1_tivdum_france distw1_resistance distw1_mtech distw1_agree_USA distw1_agree_Russia
1109
+ drop n2_ally_USA n2_ally_Russia n2_tivdum_us n2_tivdum_russia n2_tivdum_uk n2_tivdum_france n2_mtech n2_agree_USA n2_agree_Russia n1_agree_USA n1_agree_Russia n1_resistance n2_resistance n1_mtech n2_lntrade n2_lnaid
1110
+ drop democracy_trans regime_length_polity demreverse_polity lastdem_polity demreverse_vdem regime_length_vdem independent regime_length milex milper distw
1111
+
1112
+ rename region2 region
1113
+ rename continent2 continent
1114
+ rename mtech_iv_n2 ivbaseline
1115
+
1116
+ // Add labels
1117
+ label variable country "Country name"
1118
+ label variable iso3 "ISO3 country code"
1119
+ label variable countryno "Numerical country identifier based on ISO3"
1120
+ label variable ccode "CoW country code"
1121
+ label variable year "Year"
1122
+ label variable mtech "Military technology index"
1123
+ label variable mtech_exf "Military tech. index ex. small arms"
1124
+ label variable mtech_exgen "Military tech. index ex. successive vintages of tanks and aircraft"
1125
+ label variable continent "Continent"
1126
+ label variable region "Region"
1127
+ label variable lngdpc "Log GDP per capita (Maddison)"
1128
+ label variable democracy "Democracy dummy (Boix et al)"
1129
+ label variable polity2 "Polity 2 index of democracy"
1130
+ label variable democratization "Democratization (Boix et al)"
1131
+ label variable lastdem "Unreversed democratization (Boix et al)"
1132
+ label variable demreverse "Democratic reversal (Boix et al)"
1133
+ label variable regime_no "Autocracy-spell identifier (Boix et al)"
1134
+ label variable durdem "Durable democratization (Boix et al)"
1135
+ label variable durableregime_no "Autocracy-spell identifier, durable democratization analysis (Boix et al)"
1136
+ label variable dregime_no "Democracy-spell identifier, (Boix et al)"
1137
+ label variable democratization_polity "Democratization (polity2)"
1138
+ label variable regime_no_polity "Autocracy-spell identifier (polity2)"
1139
+ label variable durdem_polity "Durable democratization (polity2)"
1140
+ label variable durableregime_no_polity "Autocracy-spell identifier, durable democratization analysis (polity2)"
1141
+ label variable rchange_vdem "Regime change dummy (V-Dem)"
1142
+ label variable regime_no_vdem "Regime identifier (V-Dem)"
1143
+ label variable democracy_vdem "Democracy dummy (derived from V-Dem)"
1144
+ label variable democratization_vdem "Democratization (V-Dem)"
1145
+ label variable autoregime_no_vdem "Autocracy-spell identifier (V-Dem)"
1146
+ label variable durdem_vdem "Durable Democratization (V-Dem)"
1147
+ label variable durautoregime_no_vdem "Autocracy-spell identifier, durable democratization analysis (V-Dem)"
1148
+ label variable tpop "Total Population (CoW)"
1149
+ label variable interstatewar "Interstate war, dummy(CoW)"
1150
+ label variable mildispute "Militarized dispute, dummy (CoW)"
1151
+ label variable civilwar "Civil war, dummy (CoW)"
1152
+ label variable civilwar_central "Civil war for central control, dummy (CoW)"
1153
+ label variable lntrade "Log imports + exports in dollars (CoW)"
1154
+ label variable ally_USA "Ally of USA, dummy (CoW)"
1155
+ label variable ally_Russia "Allly of Russia/USSR, dummy (CoW)"
1156
+ label variable tiv_any "Arms deliveries, total TIV (SIPRI)"
1157
+ label variable tiv_us "Arms deliveries from USA, total TIV (SIPRI)"
1158
+ label variable tiv_russia "Arms deliveries from Russia/USSR, total TIV (SIPRI)"
1159
+ label variable tiv_france "Arms deliveries from France, total TIV (SIPRI)"
1160
+ label variable tiv_uk "Arms deliveries from UK, total TIV (SIPRI)"
1161
+ label variable tivdum_any "Arms deliveries, dummy (SIPRI)"
1162
+ label variable tivdum_us "Arms deliveries from USA, dummy (SIPRI)"
1163
+ label variable tivdum_russia "Arms deliveries from Russia/USSR, dummy (SIPRI)"
1164
+ label variable tivdum_france "Arms deliveries from France, dummy (SIPRI)"
1165
+ label variable tivdum_uk "Arms deliveries from UK, dummy (SIPRI)"
1166
+ label variable tivakk_any "Accumulated arms deliveries, total TIV (SIPRI)"
1167
+ label variable tivakk_us "Accumulated arms deliveries from USA, total TIV (SIPRI)"
1168
+ label variable tivakk_russia "Accumulated arms deliveries from Russia/USSR, total TIV (SIPRI)"
1169
+ label variable tivakk_france "Accumulated arms deliveries from France, total TIV (SIPRI)"
1170
+ label variable tivakk_uk "Accumulated arms deliveries from UK, total TIV (SIPRI)"
1171
+ label variable agree_USA "UN agreement with US"
1172
+ label variable agree_Russia "UN agreement with Russia/USSR"
1173
+ label variable us_rus_agree_diff "UN agreement US - Russia/USSR, 3y mavg"
1174
+ label variable r3_iv_n2 "Distance-weighted adoption of jet fighters"
1175
+ label variable m2_iv_n2 "Distance-weighted adoption of machine guns"
1176
+ label variable mtech_iv_n2_pop "IV with population weights"
1177
+ label variable mtech_iv_n1 "IV including neighbors"
1178
+ label variable ivbaseline "IV baseline"
1179
+ label variable mtech_exf_iv_n2 "IV for mtech ex. small arms"
1180
+ label variable mtech_exgen_iv_n2 "IV for mtech ex. successive vintages of tanks and aircraft"
1181
+ label variable mtech_iv_n2_500 "IV ex. countries within 500km"
1182
+ label variable mtech_iv_n2_750 "IV ex. countries within 750km"
1183
+ label variable mtech_iv_n2_1000 "IV ex. countries within 1000km"
1184
+ label variable distw1_interstatewar "Distance-weighted interstate war abroad"
1185
+ label variable distw1_civilwar "Distance-weighted civil war abroad"
1186
+ label variable distw1_democracy "Distance-weighted democracy abroad"
1187
+ label variable distw1_democratization "Distance-weighted democratization abroad"
1188
+ label variable lnaid "Log foreign aid"
1189
+ label variable colony "Former colony dummy"
1190
+ label variable colony_we "Former Western European colony dummy"
1191
+ label variable colony_ussr "Former USSR state"
1192
+ label variable resistance "Resistance, dummy (NAVCO)"
1193
+ label variable vresistance "Violent resistance, dummy (NAVCO)"
1194
+ label variable nresistance "Nonviolent resistance, dummy (NAVCO)"
1195
+ label variable progress "Resistance makes progress, dummy (NAVCO)"
1196
+ label variable success "Resistance successful, dummy (NAVCO)"
1197
+ label variable resistance_onset "Onset of resistance, dummy (NAVCO)"
1198
+ label variable camp_size "Size of resistance campaign (NAVCO)"
1199
+ label variable longsample "Belongs to balanced sample 1825-2010"
1200
+ label variable mediumsample "Belongs to balanced sample 1918-2010"
1201
+ label variable shortsample "Belongs to short balanced sample 1945-2010"
1202
+ label variable lnmilex "Log military expenditure (CoW)"
1203
+ label variable lnmilex_pop "Log military expenditure per capita (CoW)"
1204
+ label variable milper_pop "Military personnel per capita (CoW)"
1205
+ label variable resistance_3y "Resistance in past 3 years"
1206
+ label variable vresistance_3y "Violent resistance in past 3 years"
1207
+ label variable nresistance_3y "Nonviolent resistance in past 3 years"
1208
+ label variable civilwar_3y "Civil war in past 3 years"
1209
+ label variable civilwar_central_3y "Civil war for central control in past 3 years"
1210
+ label variable mildispute_3y "Militarized dispute in past 3 years"
1211
+ label variable interstatewar_3y "Interstate war in past 3 years"
1212
+ label variable democracy_iv_ANRR "Democracy among regional peers"
1213
+ label variable democracy_iv_ANRR_distw "Distance weighted democracy among peers"
1214
+ label variable mtech_iv_ANRR "Military technology of regional peers"
1215
+ label variable n1_interstatewar "Neighbor at war"
1216
+ label variable n1_democratization "Neighbor democratizes"
1217
+ label variable n1_democracy "Neighbor democratic"
1218
+ label variable n1_civilwar "Neighbor in civil war"
1219
+ label variable n1_ally_USA "Neighbor US ally"
1220
+ label variable n1_ally_Russia "Neighbor Russia/USSR ally"
1221
+ label variable n1_tivdum_us "Neighbor recieves arms from US"
1222
+ label variable n1_tivdum_russia "Neighbor recieves arms from Russia/USSR"
1223
+ label variable n1_tivdum_uk "Neighbor recieves arms from UK"
1224
+ label variable n1_tivdum_france "Neighbor recieves arms from France"
1225
+ label variable n1_auto_resistance "pro-democracy movement, neighbor"
1226
+ label variable n2_interstatewar "2nd neighbor at war"
1227
+ label variable n2_democratization "2nd neighbor democratizes"
1228
+ label variable n2_democracy "2nd neighbor is democratic"
1229
+ label variable n2_civilwar "2nd neighbor in civil war"
1230
+ label variable n2_auto_resistance "Pro-democracy movement, 2nd neighbor"
1231
+ label variable n1_democracy_avg "Share of democracies among neighbors"
1232
+ label variable n2_democracy_avg "Share of democracies among 2nd neighbors"
1233
+ label variable n1_agree_USA_avg "Neighbors' avg. UN agreement w. US"
1234
+ label variable n1_agree_Russia_avg "Neighbors' avg. UN agreement w. Rus/USSR"
1235
+ label variable n1_lngdp "Log GDP/cap. of neighbors"
1236
+ label variable n2_lngdp "Log GDP/cap. of 2nd neighbors"
1237
+ label variable n1_lntrade "Log intl. trade, neighbors"
1238
+ label variable n1_lnaid "Log foreign aid, neighbors"
1239
+ label variable n1_democratization_3y "Neighbor democratizes in past 3 yrs"
1240
+ label variable n2_democratization_3y "2nd neighbor democratizes in past 3 yrs"
1241
+ label variable n1_interstatewar_3y "Neighbor at war in past 3 yrs"
1242
+ label variable n2_interstatewar_3y "2nd neighbor at war in past 3 yrs"
1243
+ label variable n1_civilwar_3y "Neighbor in civil war in past 3 yrs"
1244
+ label variable n2_civilwar_3y "2nd neighbor in civil war in past 3 yrs"
1245
+ label variable n1_auto_resistance_3y "Pro-democracy movement in neighbor in past 3 yrs"
1246
+ label variable n2_auto_resistance_3y "Pro-democracy movement in 2nd neighbor in past 3 yrs"
1247
+ label variable distw1_lngdp "Log foreign distance-weighted GDP/capita"
1248
+ label variable distw1_lntrade "Log foreign distance-weighted trade"
1249
+ label variable distw1_lnaid "Log foreign distance-weighted foreign aid"
1250
+
1251
+ *save final data set and erase intermediate data sets generated by this do-file
1252
+ save "jtg_data/jtg_main.dta", replace
1253
+ erase "jtg_data/instruments.dta"
1254
+ erase "jtg_data/diffusioncontrols.dta"
1255
+ erase "jtg_data/neighbours.dta"
1256
+
41/replication_package/3_jtg_results_main.do ADDED
@@ -0,0 +1,789 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ clear
2
+
3
+ *IMPORTANT: Set current directoy to path of do-file before running
4
+ cd "path of this do file"
5
+
6
+ use "jtg_data/jtg_main.dta"
7
+
8
+
9
+
10
+
11
+ //##############################################################################
12
+ ////////////////////////////////////////////////////////////////////////////////
13
+ ////////////// FIGURES ////////////////////////
14
+ ////////////////////////////////////////////////////////////////////////////////
15
+ //##############################################################################
16
+
17
+
18
+ ////////////////////////////////////////////////////////////////////////////////
19
+ /////////// FIGURE 1: EFFECTIVENESS AND PRICES FOR SMALL ARMS ////////////////
20
+ ////////////////////////////////////////////////////////////////////////////////
21
+
22
+ // PANEL A: EFFECTIVENESS
23
+ preserve
24
+ clear
25
+ set obs 9
26
+
27
+ gen techname=""
28
+ gen effective_range=.
29
+ gen rate_of_fire=.
30
+
31
+ replace techname="Matchlock musket" if _n==1
32
+ replace techname="Snaphaunce" if _n==2
33
+ replace techname="Flintlock" if _n==3
34
+ replace techname="Percussion lock" if _n==4
35
+ replace techname="Minié bullet rifle" if _n==5
36
+ replace techname="Breechloading rifle" if _n==6
37
+ replace techname="Tubular magazine rifle" if _n==7
38
+ replace techname="Box magazine rifle" if _n==8
39
+ replace techname="Assault rifle" if _n==9
40
+
41
+ ** Data from Zabecki 2014 (see main text).
42
+ ** A few corrections for reloading times and expected misfire is made to make the numbers comparable, see the comments below
43
+
44
+ *a. Effective range (in meters)
45
+ replace effective_range=50 if techname=="Matchlock musket"
46
+ replace effective_range=50 if techname=="Snaphaunce"
47
+ replace effective_range=75 if techname=="Flintlock"
48
+ replace effective_range=75 if techname=="Percussion lock"
49
+ replace effective_range=300 if techname=="Minié bullet rifle"
50
+ replace effective_range=450 if techname=="Breechloading rifle"
51
+ replace effective_range=500 if techname=="Tubular magazine rifle"
52
+ replace effective_range=500 if techname=="Box magazine rifle"
53
+ replace effective_range=400 if techname=="Assault rifle"
54
+
55
+ *b. Rate of fire (shots/minute)
56
+ replace rate_of_fire=0.5 if techname=="Matchlock musket"
57
+ replace rate_of_fire=2 if techname=="Snaphaunce"
58
+ replace rate_of_fire=3 if techname=="Flintlock" //I have subtracted 1 shot/minute to take misfire into account.
59
+ replace rate_of_fire=4 if techname=="Percussion lock"
60
+ replace rate_of_fire=4 if techname=="Minié bullet rifle"
61
+ replace rate_of_fire=10 if techname=="Breechloading rifle"
62
+ replace rate_of_fire=15 if techname=="Tubular magazine rifle"
63
+ replace rate_of_fire=20 if techname=="Box magazine rifle" //changed to 20 from 17.5 -> 20 round trench magazines used in WWI, Before that I assume that 10 round magazine could be fired and changed once
64
+ replace rate_of_fire=90 if techname=="Assault rifle" //changed to 90 -> practical rate of fire assuming magazine replaced twice in a minute. The rate of fire was otherwise listed as 550 shots/min
65
+
66
+ *geometric mean
67
+ gen simpleeffect=sqrt(effective_range*rate_of_fire)
68
+
69
+ graph hbar simpleeffect, over(techname, sort(simpleeffect)) ///
70
+ ytitle("Geometric mean of range and rate of fire") plotregion(fcolor(white)) graphregion(color(white)) ///
71
+ bar(1, color(gs8))
72
+ graph export "jtg_figures/main/fig_1a_effectiveness.eps", replace
73
+ graph export "jtg_figures/main/fig_1a_effectiveness.pdf", replace
74
+
75
+ restore
76
+
77
+
78
+ //PANEL B: PRICES
79
+ preserve
80
+ clear
81
+ use "jtg_data_raw\prices.dta"
82
+
83
+ gen tech=1 if techname=="Matchlock musket"
84
+ replace tech=2 if techname=="Snaphaunce"
85
+ replace tech=3 if techname=="Flintlock"
86
+ replace tech=4 if techname=="Percussion lock"
87
+ replace tech=5 if techname=="Minié bullet rifle"
88
+ replace tech=6 if techname=="Breechloading rifle"
89
+ replace tech=7 if techname=="Tubular magazine rifle"
90
+ replace tech=8 if techname=="Box magazine rifle"
91
+ replace tech=9 if techname=="Assault rifle"
92
+
93
+ local new = _N + 2
94
+ set obs `new'
95
+ replace techname="Matchlock musket" if _n==`new'-1
96
+ replace tech=1 if _n==`new'-1
97
+ replace techname="Snaphaunce" if _n==`new'
98
+ replace tech=2 if _n==`new'
99
+ replace category="small arm" if _n>`new'-2
100
+ replace buyer="US Government" if _n>`new'-2
101
+ sort tech year
102
+
103
+ graph hbar price_real if category=="small arm" & buyer=="US Government", over(techname, sort(tech)) ///
104
+ ytitle("Price (2010 USD)") plotregion(fcolor(white)) graphregion(color(white)) ///
105
+ bar(1, color(gs8)) text(5 95 "N/a", place(e)) text(5 84 "N/a", place(e))
106
+ graph export "jtg_figures/main/fig_1b_prices.eps", replace
107
+ graph export "jtg_figures/main/fig_1b_prices.pdf", replace
108
+ restore
109
+ ////////////////////////////////////////////////////////////////////////////////
110
+
111
+
112
+
113
+ /////////////////////////////////////////////////////////////////////////////////
114
+ /// FIGURE 2: GDP AND MILITARY TECHNOLOGY BY INCOME QUATILES ////////////////////
115
+ /////////////////////////////////////////////////////////////////////////////////
116
+
117
+ preserve
118
+ drop if year>2010
119
+ ipolate mtech year, by(country) gen(mtech_i)
120
+
121
+ gen temp_balance=1 if democracy!=. & year>=1850
122
+ egen g_balance=sum(temp_balance), by(country)
123
+ replace g_balance=0 if g_balance<161
124
+ replace g_balance=1 if g_balance==161
125
+ drop temp*
126
+ gen g_all=1
127
+ replace g_all=0 if democracy==.
128
+
129
+ *rank GDP within groups
130
+ egen rank_all=rank(lngdpc) if g_all==1, by(year) field
131
+ egen maxrank_all=max(rank_all), by(year)
132
+ replace rank_all=rank_all/maxrank_all-0.5/maxrank_all
133
+
134
+ egen rank_balance=rank(lngdpc) if g_balance==1, by(year) field
135
+ egen maxrank_balance=max(rank_balance), by(year)
136
+ replace rank_balance=rank_balance/maxrank_balance-0.5/maxrank_balance
137
+
138
+ drop maxrank*
139
+
140
+ //generate groups based on rank
141
+ gen lngdp_all_p25=lngdpc if g_all==1 & rank_all<=0.25
142
+ gen lngdp_all_p75=lngdpc if g_all==1 & rank_all>=0.75 & rank_all!=.
143
+ gen mtech_all_p25=mtech_i if g_all==1 & rank_all<=0.25
144
+ gen mtech_all_p75=mtech_i if g_all==1 & rank_all>=0.75 & rank_all!=.
145
+
146
+ gen lngdp_balance_p25=lngdpc if g_balance==1 & rank_balance<=0.25
147
+ gen lngdp_balance_p75=lngdpc if g_balance==1 & rank_balance>=0.75 & rank_balance!=.
148
+ gen mtech_balance_p25=mtech_i if g_balance==1 & rank_balance<=0.25
149
+ gen mtech_balance_p75=mtech_i if g_balance==1 & rank_balance>=0.75 & rank_balance!=.
150
+
151
+ collapse (mean) lngdp* mtech*, by(year)
152
+
153
+ *unbalanced sample
154
+ twoway line lngdp_all_p25 year, lcolor(black) lpattern(dash) yaxis(2) ///
155
+ || line lngdp_all_p75 year, lcolor(gs8) lpattern(dash) yaxis(2) ///
156
+ || line mtech_all_p25 year, lcolor(black) ///
157
+ || line mtech_all_p75 year, lcolor(gs8) ///
158
+ plotregion(fcolor(white)) graphregion(color(white)) ///
159
+ ytitle("Avg. log GDP/capita", axis(2)) ytitle("Avg. # of military techs", axis(1)) ///
160
+ legend(label(1 "GDP/capita, rich 25%") label(2 "GDP/capita, poor 25%") ///
161
+ label(3 "Military techs, rich 25%") label(4 "Military techs, poor 25%") region(col(white)))
162
+ graph export "jtg_figures/main/fig_2_gdp_mtech.pdf", replace
163
+ graph export "jtg_figures/main/fig_2_gdp_mtech.eps", replace
164
+
165
+ *balanced (not reported in text, but referred to in note to Figure 1)
166
+ twoway line lngdp_balance_p25 year, lcolor(black) lpattern(dash) yaxis(2) ///
167
+ || line lngdp_balance_p75 year, lcolor(gs8) lpattern(dash) yaxis(2) ///
168
+ || line mtech_balance_p25 year, lcolor(black) ///
169
+ || line mtech_balance_p75 year, lcolor(gs8) ///
170
+ plotregion(fcolor(white)) graphregion(color(white)) ///
171
+ ytitle("Avg. log GDP/capita", axis(2)) ytitle("Avg. # of military techs", axis(1)) ///
172
+ legend(label(1 "GDP/capita, rich 25%") label(2 "GDP/capita, poor 25%") ///
173
+ label(3 "Military techs, rich 25%") label(4 "Military techs, poor 25%") region(col(white)))
174
+
175
+ restore
176
+ ////////////////////////////////////////////////////////////////////////////////
177
+
178
+
179
+
180
+ /////////////////////////////////////////////////////////////////////////////////
181
+ //////// FIGURE 3: CUMULATIVE DEMOCRATIZTIONS AND MILITARY TECHNOLOGY //////////
182
+ ////////////////////////////////////////////////////////////////////////////////
183
+
184
+ *** PANEL A ***
185
+ preserve
186
+ drop if democratization==.
187
+ drop if lngdpc==.
188
+ drop if mtech==.
189
+ egen median_mtech=median(mtech) if mtech!=., by(year)
190
+ gen above_median=.
191
+ replace above_median=1 if mtech>median_mtech & median_mtech!=.
192
+ replace above_median=0 if mtech<median_mtech & median_mtech!=.
193
+
194
+ *assign countries on median to both groups with 1/2 weight
195
+ replace democratization=democratization/2 if above_median==.
196
+ expand 2, gen(dup)
197
+ drop if dup==1 & above_median!=.
198
+ replace above_median=dup if above_median==.
199
+
200
+ replace democratization=democratization/100
201
+
202
+ collapse (sum) democratization, by(year above_median)
203
+
204
+ sort above_median year
205
+ gen cum_democ=0
206
+ replace cum_democ=cum_democ[_n-1]+democratization if _n>1 & above_median==above_median[_n-1]
207
+
208
+ twoway line cum_democ year if above_median==1, lcolor(gs10) || line cum_democ year if above_median==0, lcolor(black) ///
209
+ legend(label(1 "Above median military tech") labe(2 "Below median military tech") region(col(white))) ///
210
+ plotregion(fcolor(white)) graphregion(color(white)) ///
211
+ ytitle("Cumulative democratisations") xtitle("Year")
212
+ graph export "jtg_figures/main/fig_3a_cumulative_democratisations.pdf", replace
213
+ graph export "jtg_figures/main/fig_3a_cumulative_democratisations.eps", replace
214
+
215
+ restore
216
+
217
+ *** PANEL B ***
218
+ preserve
219
+ drop if democratization==.
220
+ drop if lngdpc==.
221
+ drop if mtech==.
222
+ reghdfe mtech lngdpc, absorb(year) resid(mtech_conditional)
223
+ egen median_mtech=median(mtech_conditional) if mtech_conditional!=., by(year)
224
+
225
+ gen above_median=.
226
+ replace above_median=1 if mtech_conditional>median_mtech & mtech_conditional!=. & median_mtech!=.
227
+ replace above_median=0 if mtech_conditional<median_mtech & mtech_conditional!=. & median_mtech!=.
228
+
229
+ replace democratization=democratization/100
230
+
231
+ collapse (sum) democratization, by(year above_median)
232
+ bysort above_median: sum democratization
233
+ sort above_median year
234
+ gen cum_democ=0
235
+ replace cum_democ=cum_democ[_n-1]+democratization if _n>1 & above_median==above_median[_n-1]
236
+
237
+ twoway line cum_democ year if above_median==1, lcolor(gs10) || line cum_democ year if above_median==0, lcolor(black) ///
238
+ legend(label(1 "Above median military tech") labe(2 "Below median military tech") region(col(white))) ///
239
+ plotregion(fcolor(white)) graphregion(color(white)) ///
240
+ ytitle("Cumulative democratizations") xtitle("Year")
241
+
242
+ graph export "jtg_figures/main/fig_3b_cumulative_democratizations.pdf", replace
243
+ graph export "jtg_figures/main/fig_3b_cumulative_democratizations.eps", replace
244
+ restore
245
+ ////////////////////////////////////////////////////////////////////////////////
246
+
247
+
248
+ /////////////////////////////////////////////////////////////////////////////////
249
+ /////////FIGURE 3: SAMPLE SIZE AND DEMOCRATIZATIONS ////////////////////////////
250
+ ////////////////////////////////////////////////////////////////////////////////
251
+ preserve
252
+ drop if year>2010 | year<1820
253
+ gen sample_all=1 if democracy!=.
254
+ gen sample_auto=1 if democracy==0
255
+ gen sample_democ=1 if democratization==100 & democracy[_n-1]==0
256
+ gen sample_durdemoc=1 if durdem==100 & democracy[_n-1]==0
257
+ gen sample_lastdem=1 if lastdem==100 & democracy[_n-1]==0
258
+ collapse (sum) sample*, by(year)
259
+ twoway bar sample_democ year, yaxis(2) color(gs12) || bar sample_durdemoc year, yaxis(2) color(gs8) || bar sample_lastdem year, yaxis(2) color(gs2) yscale(range(0 12) axis(2)) ///
260
+ || line sample_all year, lcolor(gs10) || line sample_auto year, lcolor(black) xscale(range(1820(10) 2010)) yscale(range(0 200) axis(1)) ///
261
+ plotregion(fcolor(white)) graphregion(color(white)) ///
262
+ ytitle("Number of countries", axis(1)) xtitle("Year") ytitle("Number of democratisations", axis(2)) ///
263
+ legend(label(1 "Democratisation") label(2 "Durable democratisation") label(3 "Unreversed democratization") label(4 "Countries in data") label(5 "Autocracies in sample") region(col(white)))
264
+ graph export "jtg_figures/main/fig_4_sample.pdf", replace
265
+ graph export "jtg_figures/main/fig_4_sample.eps", replace
266
+ restore
267
+ ////////////////////////////////////////////////////////////////////////////////
268
+
269
+
270
+ /////////////////////////////////////////////////////////////////////////////////
271
+ ///////// FIGURE S-CURVES //////////////////////////////////////////////////////
272
+ ////////////////////////////////////////////////////////////////////////////////
273
+ preserve
274
+ drop if year<1850
275
+ drop if year>2010
276
+ gen tech_1=m2_iv_n2
277
+ gen tech_2=r3_iv_n2
278
+ twoway line tech_1 year if country=="Denmark", lcolor(black) ///
279
+ || line tech_1 year if country=="Peru", lcolor(gs6) ///
280
+ || line tech_1 year if country=="Thailand", lcolor(gs10) ///
281
+ || line tech_2 year if country=="Denmark", lcolor(black) ///
282
+ || line tech_2 year if country=="Peru", lcolor(gs6) ///
283
+ || line tech_2 year if country=="Thailand", lcolor(gs10) ///
284
+ plotregion(fcolor(white)) graphregion(color(white)) ///
285
+ legend(order(1 "Denmark" 2 "Peru" 3 "Thailand") rows(1) region(col(white)) ) ///
286
+ ytitle("Weighted adoption rate") xtitle("Year") ///
287
+ text(0.9 1885 "Automatic" "machine gun") text(0.5 1980 "First generation" "jet fighter")
288
+ graph export "jtg_figures/main/fig_5a_s-curves.pdf", replace
289
+ graph export "jtg_figures/main/fig_5a_s-curves.eps", replace
290
+ restore
291
+ ////////////////////////////////////////////////////////////////////////////////
292
+
293
+
294
+ /////////////////////////////////////////////////////////////////////////////////
295
+ ///////// FIGURE: IV CORRELATION DENMARK /////////////////////////////////////////////
296
+ ////////////////////////////////////////////////////////////////////////////////
297
+ preserve
298
+ drop if year>2010 | year<1820
299
+ twoway line mtech year if country=="Denmark", lcolor(gs10) || line ivbaseline year if country=="Denmark", lcolor(black) ///
300
+ plotregion(fcolor(white)) graphregion(color(white)) ///
301
+ legend(label(1 "Actual") label(2 "Instrument") region(col(white))) ytitle("Military technology index") xtitle("Year")
302
+ graph export "jtg_figures/main/fig_5b_first_stage_denmark.pdf", replace
303
+ graph export "jtg_figures/main/fig_5b_first_stage_denmark.eps", replace
304
+ restore
305
+ ////////////////////////////////////////////////////////////////////////////////
306
+
307
+
308
+
309
+ /////////////////////////////////////////////////////////////////////////////////
310
+ /// FIGURE EVENT STUDY AROUND RESISTANCE MEDIAN SPLIT
311
+ /////////////////////////////////////////////////////////////////////////////////
312
+ preserve
313
+ drop if year>2010
314
+ gen res_onset=0 if resistance!=.
315
+ replace res_onset=1 if resistance==1 & L.resistance==0
316
+ gen nores=1-res_onset
317
+ foreach x of numlist 1/5 {
318
+ gen post`x'=L`x'.res_onset
319
+ gen pre`x'=F`x'.res_onset
320
+ replace nores=0 if L`x'.res_onset==1
321
+ replace nores=0 if F`x'.res_onset==1
322
+ }
323
+
324
+
325
+ reghdfe mtech lngdpc, absorb(year durableregime_no) resid(mtech_conditional)
326
+ egen median_mtech=median(mtech_conditional) if mtech_conditional!=. & democratization!=., by(year)
327
+
328
+ gen above_median=.
329
+ replace above_median=1 if mtech_conditional>median_mtech & mtech_conditional!=. & median_mtech!=.
330
+ replace above_median=0 if mtech_conditional<median_mtech & mtech_conditional!=. & median_mtech!=.
331
+
332
+ bysort above_median: sum res_onset if durdem!=.
333
+ sort countryno year
334
+
335
+ reghdfe durdem pre* o.res_onset post* L.lngdpc nores if L.above_median==0 , vce(cluster country) absorb(year durableregime_no )
336
+ estimates store est_1
337
+ coefplot est_1, vertical omitted msymbol(s) mc(black) mfcolor(white) yline(0) ///
338
+ lwidth(thick) lcolor(black) xlabel(1 "-5" 6 "0" 11 "5") ylabel(,angle(0) ) yscale(range(-10(5) 25)) ylabel(-10(5) 25) ///
339
+ xlabel(1 "-5" 2 "-4" 3 "-3" 4 "-2" 5 "-1" 6 "0" 7 "1" 8 "2" 9 "3" 10 "4" 11 "5") msymbol(circle) ciopts(recast(rcap)) ///
340
+ keep(pre5 pre4 pre3 pre2 pre1 res_onset post1 post2 post3 post4 post5) scheme(s1mono) ///
341
+ ytitle("Effect of resistance on likelihood of democratisation (pct)", color(black)) xtitle("Year relative to onset of resistance")
342
+ graph export "jtg_figures/main/fig_6a_resistance_low_mtech.pdf", replace
343
+ graph export "jtg_figures/main/fig_6a_resistance_low_mtech.eps", replace
344
+
345
+
346
+ reghdfe durdem pre* o.res_onset post* L.lngdpc nores if L.above_median==1 , vce(cluster country) absorb(year durableregime_no )
347
+ estimates store est_1
348
+ coefplot est_1, vertical omitted msymbol(s) mc(black) mfcolor(white) yline(0) ///
349
+ lwidth(thick) lcolor(black) xlabel(1 "-5" 6 "0" 11 "5") ylabel(,angle(0) ) yscale(range(-10(5) 25)) ylabel(-10(5) 25) ///
350
+ xlabel(1 "-5" 2 "-4" 3 "-3" 4 "-2" 5 "-1" 6 "0" 7 "1" 8 "2" 9 "3" 10 "4" 11 "5") msymbol(circle) ciopts(recast(rcap)) ///
351
+ keep(pre5 pre4 pre3 pre2 pre1 res_onset post1 post2 post3 post4 post5) scheme(s1mono) ///
352
+ ytitle("Effect of resistance on likelihood of democratisation (pct)", color(black)) xtitle("Year relative to onset of resistance")
353
+ graph export "jtg_figures/main/fig_6b_resistance_high_mtech.pdf", replace
354
+ graph export "jtg_figures/main/fig_6b_resistance_high_mtech.eps", replace
355
+
356
+ restore
357
+ /////////////////////////////////////////////////////////////////////////////////
358
+
359
+
360
+
361
+
362
+ //##############################################################################
363
+ ////////////////////////////////////////////////////////////////////////////////
364
+ // MAIN TABLES
365
+ ////////////////////////////////////////////////////////////////////////////////
366
+ //##############################################################################
367
+
368
+
369
+ ////////////////////////////////////////////////////////////////////////////////
370
+ //TABLE 2: FIRST STAGE AND TEST OF EXCLUSION RESTRICTION
371
+ ////////////////////////////////////////////////////////////////////////////////
372
+
373
+ *Ordinary estimates
374
+ preserve
375
+ replace ivbaseline=ivbaseline/100
376
+ replace mtech=mtech/100
377
+
378
+ gen war5=max(interstatewar, L.interstatewar, L2.interstatewar, L3.interstatewar, L4.interstatewar)
379
+ gen mildispute5=max(mildispute, L.mildispute, L2.mildispute, L3.mildispute, L4.mildispute)
380
+
381
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
382
+ drop if year>2010
383
+ drop if durdem==. | mtech==. | lngdpc==. | ivbaseline==.
384
+
385
+ *Panel A
386
+ reghdfe mtech ivbaseline , vce(cluster country) absorb(durableregime_no year)
387
+ outreg2 using "jtg_tables/main/tab_2a_first_stage.tex", replace keep(ivbaseline ) bdec(2) dec(2) nocons
388
+ reghdfe lngdpc ivbaseline , vce(cluster country) absorb(durableregime_no year)
389
+ outreg2 using "jtg_tables/main/tab_2a_first_stage.tex", append keep(ivbaseline ) bdec(2) dec(2) nocons
390
+ reghdfe lntrade ivbaseline , vce(cluster country) absorb(durableregime_no year)
391
+ outreg2 using "jtg_tables/main/tab_2a_first_stage.tex", append keep(ivbaseline ) bdec(2) dec(2) nocons
392
+ reghdfe war5 ivbaseline , vce(cluster country) absorb(durableregime_no year)
393
+ outreg2 using "jtg_tables/main/tab_2a_first_stage.tex", append keep(ivbaseline ) bdec(2) dec(2) nocons
394
+ reghdfe mildispute5 ivbaseline , vce(cluster country) absorb(durableregime_no year)
395
+ outreg2 using "jtg_tables/main/tab_2a_first_stage.tex", append excel keep(ivbaseline ) bdec(2) dec(2) nocons
396
+
397
+ *Panel B
398
+ reghdfe mtech mtech , vce(cluster country) absorb(durableregime_no year)
399
+ outreg2 using "jtg_tables/main/tab_2b_ols.tex", replace keep(mtech ) bdec(2) dec(2) nocons
400
+ reghdfe lngdpc mtech , vce(cluster country) absorb(durableregime_no year)
401
+ outreg2 using "jtg_tables/main/tab_2b_ols.tex", append keep(mtech ) bdec(2) dec(2) nocons
402
+ reghdfe lntrade mtech , vce(cluster country) absorb(durableregime_no year)
403
+ outreg2 using "jtg_tables/main/tab_2b_ols.tex", append keep(mtech ) bdec(2) dec(2) nocons
404
+ reghdfe war5 mtech , vce(cluster country) absorb(durableregime_no year)
405
+ outreg2 using "jtg_tables/main/tab_2b_ols.tex", append keep(mtech ) bdec(2) dec(2) nocons
406
+ reghdfe mildispute5 mtech , vce(cluster country) absorb(durableregime_no year)
407
+ outreg2 using "jtg_tables/main/tab_2b_ols.tex", append excel keep(mtech ) bdec(2) dec(2) nocons
408
+
409
+ restore
410
+
411
+
412
+ *Standardized coefficients
413
+ preserve
414
+ replace ivbaseline=ivbaseline/100
415
+ replace mtech=mtech/100
416
+
417
+ gen war5=max(interstatewar, L.interstatewar, L2.interstatewar, L3.interstatewar, L4.interstatewar)
418
+ gen mildispute5=max(mildispute, L.mildispute, L2.mildispute, L3.mildispute, L4.mildispute)
419
+
420
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
421
+ drop if year>2010
422
+ drop if durdem==. | mtech==. | lngdpc==. | ivbaseline==.
423
+
424
+ local stdvars "mtech ivbaseline lngdpc lntrade war5 mildispute5"
425
+ foreach x of local stdvars {
426
+ qui: reghdfe `x', absorb(regime_no year) res(`x'_res)
427
+ egen std_`x'=std(`x'_res)
428
+ replace `x' =std_`x'
429
+ }
430
+
431
+ *Panel A
432
+ reghdfe mtech ivbaseline , vce(cluster country) absorb(durableregime_no year)
433
+ outreg2 using "jtg_tables/main/tab_2a_first_stage_std.tex", replace keep(ivbaseline ) bdec(2) dec(2) nocons
434
+ reghdfe lngdpc ivbaseline , vce(cluster country) absorb(durableregime_no year)
435
+ outreg2 using "jtg_tables/main/tab_2a_first_stage_std.tex", append keep(ivbaseline ) bdec(2) dec(2) nocons
436
+ reghdfe lntrade ivbaseline , vce(cluster country) absorb(durableregime_no year)
437
+ outreg2 using "jtg_tables/main/tab_2a_first_stage_std.tex", append keep(ivbaseline ) bdec(2) dec(2) nocons
438
+ reghdfe war5 ivbaseline , vce(cluster country) absorb(durableregime_no year)
439
+ outreg2 using "jtg_tables/main/tab_2a_first_stage_std.tex", append keep(ivbaseline ) bdec(2) dec(2) nocons
440
+ reghdfe mildispute5 ivbaseline , vce(cluster country) absorb(durableregime_no year)
441
+ outreg2 using "jtg_tables/main/tab_2a_first_stage_std.tex", append excel keep(ivbaseline ) bdec(2) dec(2) nocons
442
+
443
+ *Panel B
444
+ reghdfe mtech mtech , vce(cluster country) absorb(durableregime_no year)
445
+ outreg2 using "jtg_tables/main/tab_2b_ols_std.tex", replace keep(mtech ) bdec(2) dec(2) nocons
446
+ reghdfe lngdpc mtech , vce(cluster country) absorb(durableregime_no year)
447
+ outreg2 using "jtg_tables/main/tab_2b_ols_std.tex", append keep(mtech ) bdec(2) dec(2) nocons
448
+ reghdfe lntrade mtech , vce(cluster country) absorb(durableregime_no year)
449
+ outreg2 using "jtg_tables/main/tab_2b_ols_std.tex", append keep(mtech ) bdec(2) dec(2) nocons
450
+ reghdfe war5 mtech , vce(cluster country) absorb(durableregime_no year)
451
+ outreg2 using "jtg_tables/main/tab_2b_ols_std.tex", append keep(mtech ) bdec(2) dec(2) nocons
452
+ reghdfe mildispute5 mtech , vce(cluster country) absorb(durableregime_no year)
453
+ outreg2 using "jtg_tables/main/tab_2b_ols_std.tex", append excel keep(mtech ) bdec(2) dec(2) nocons
454
+
455
+ restore
456
+ ////////////////////////////////////////////////////////////////////////////////
457
+
458
+
459
+
460
+ ////////////////////////////////////////////////////////////////////////////////
461
+ //TABLE 3: MAIN RESULTS
462
+ ////////////////////////////////////////////////////////////////////////////////
463
+ preserve
464
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
465
+ drop if year>2010
466
+
467
+
468
+ sum democratization if L.mtech!=. & L.lngdpc!=. & L.ivbaseline!=.
469
+ local democratization_mean=`r(mean)'/100
470
+ sum durdem if L.mtech!=. & L.lngdpc!=. & L.ivbaseline!=.
471
+ local durdem_mean=`r(mean)'/100
472
+ sum lastdem if L.mtech!=. & L.lngdpc!=. & L.ivbaseline!=.
473
+ local lastdem_mean=`r(mean)'/100
474
+ sum demreverse if L.mtech!=. & L.lngdpc!=. & L.ivbaseline!=.
475
+ local demreverse_mean=`r(mean)'/100
476
+
477
+
478
+ *Col 1: OLS, democratization with autocracy spell fixed effects
479
+ ivreghdfe democratization L.mtech L.lngdpc if L.ivbaseline!=., robust cluster(country) absorb(year regime_no)
480
+ local xunits=e(dof_table)[2,1]
481
+ outreg2 using "jtg_tables/main/tab_3_main_results.tex", replace keep(L.mtech L.lngdpc) bdec(2) dec(2) e(model) addstat(Autocracy spells, `xunits', Mean of dependent variable, `democratization_mean')
482
+ *Col 2: IV, democratization with autocracy spell fixed effects
483
+ ivreghdfe democratization (L.mtech =L.ivbaseline) L.lngdpc , robust cluster(country) absorb(year regime_no)
484
+ local xunits=e(dof_table)[2,1]
485
+ outreg2 using "jtg_tables/main/tab_3_main_results.tex", append keep(L.mtech L.lngdpc) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits', Mean of dependent variable, `democratization_mean')
486
+ *Col 3: OLS, semi-permanent democratization with autocracy spell fixed effects
487
+ ivreghdfe durdem L.mtech L.lngdpc if L.ivbaseline!=., robust cluster(country) absorb(year durableregime_no)
488
+ local xunits=e(dof_table)[2,1]
489
+ outreg2 using "jtg_tables/main/tab_3_main_results.tex", append keep(L.mtech L.lngdpc) bdec(2) dec(2) e(model) addstat(Autocracy spells, `xunits', Mean of dependent variable, `durdem_mean')
490
+ *Col 4: IV, semi-permanent democratization with autocracy spell fixed effects
491
+ ivreghdfe durdem (L.mtech =L.ivbaseline) L.lngdpc , robust cluster(country) absorb(year durableregime_no)
492
+ local xunits=e(dof_table)[2,1]
493
+ outreg2 using "jtg_tables/main/tab_3_main_results.tex", append keep(L.mtech L.lngdpc) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits', Mean of dependent variable, `durdem_mean')
494
+ *Col 5: OLS, likelihood of last (and not reversed) democratization
495
+ ivreghdfe lastdem L.mtech L.lngdpc if L.ivbaseline!=., robust cluster(country) absorb(year countryno)
496
+ local xunits=e(dof_table)[2,1]
497
+ outreg2 using "jtg_tables/main/tab_3_main_results.tex", append keep(L.mtech L.lngdpc) bdec(2) dec(2) e(model) addstat(Autocracy spells, `xunits', Mean of dependent variable, `lastdem_mean')
498
+ *Col 6: IV, likelihood of last (and not reversed) democratization
499
+ ivreghdfe lastdem (L.mtech =L.ivbaseline) L.lngdpc , robust cluster(country) absorb(year countryno)
500
+ local xunits=e(dof_table)[2,1]
501
+ outreg2 using "jtg_tables/main/tab_3_main_results.tex", append keep(L.mtech L.lngdpc) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits', Mean of dependent variable, `lastdem_mean')
502
+ *Col 7: OLS, likelihood of democratic reversal
503
+ ivreghdfe demreverse L.mtech L.lngdpc if L.ivbaseline!=., robust cluster(country) absorb(year countryno)
504
+ outreg2 using "jtg_tables/main/tab_3_main_results.tex", append keep(L.mtech L.lngdpc) bdec(2) dec(2) e(model) addstat(Mean of dependent variable, `demreverse_mean')
505
+ *Col 8: IV, likelihood of democratic reversal
506
+ ivreghdfe demreverse (L.mtech =L.ivbaseline) L.lngdpc , robust cluster(country) absorb(year countryno)
507
+ outreg2 using "jtg_tables/main/tab_3_main_results.tex", append excel keep(L.mtech L.lngdpc) bdec(2) dec(2) e(model rkf) addstat(Mean of dependent variable, `demreverse_mean')
508
+ restore
509
+
510
+
511
+ // Auxillary results for Table 3: Conditional military technology
512
+ // (used to assess magnitudes of coefficients, see Section 6 of the paper)
513
+ preserve
514
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
515
+ drop if year>2010
516
+ reghdfe L.mtech L.lngdpc if L.ivbaseline!=. & L.democracy==0, cluster(country) absorb(year regime_no) residuals(conditional_mtech_ols)
517
+ reghdfe L.mtech L.ivbaseline L.lngdpc if L.ivbaseline!=. & L.democracy==0, cluster(country) absorb(year regime_no)
518
+ predict mtech_hat
519
+ reghdfe mtech_hat L.lngdpc if L.ivbaseline!=., cluster(country) absorb(year regime_no) residuals(conditional_mtech_iv)
520
+ sum conditional_mtech* if mtech!=. & lngdpc!=. & ivbaseline!=. & democracy==0, detail
521
+ sum conditional_mtech* if mtech!=. & lngdpc!=. & ivbaseline!=. & democracy==0 & year==2010, detail
522
+
523
+ ivreghdfe democratization conditional_mtech_ols L.lngdpc if L.ivbaseline!=. & conditional_mtech_ols>-2 & conditional_mtech_ols<1.8, robust cluster(country) absorb(year regime_no)
524
+ restore
525
+ ////////////////////////////////////////////////////////////////////////////////
526
+
527
+
528
+
529
+ ////////////////////////////////////////////////////////////////////////////////
530
+ // TABLE 4: DEMORATIC DIFF TABLE
531
+ ////////////////////////////////////////////////////////////////////////////////
532
+ preserve
533
+
534
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
535
+ drop if year>2010
536
+
537
+ *Col 1: baseline
538
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc , robust cluster(countryno) absorb(year durableregime_no)
539
+ local xunits=e(dof_table)[2,1]
540
+ outreg2 using "jtg_tables/main/tab_4_democratic_diffusion.tex", replace keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
541
+ *democratization among neighbors
542
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc n1_democratization_3y n2_democratization_3y, robust cluster(countryno) absorb(year durableregime_no)
543
+ local xunits=e(dof_table)[2,1]
544
+ outreg2 using "jtg_tables/main/tab_4_democratic_diffusion.tex", append keep(L.mtech L.lngdpc n1_democratization_3y n2_democratization_3y ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
545
+ *democracy in region (Acemoglu et al)
546
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc democracy_iv_ANRR, robust cluster(countryno) absorb(year durableregime_no)
547
+ local xunits=e(dof_table)[2,1]
548
+ outreg2 using "jtg_tables/main/tab_4_democratic_diffusion.tex", append keep(L.mtech L.lngdpc democracy_iv_ANRR) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
549
+ *distance-weighted democracy in autocratix peers
550
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc democracy_iv_ANRR_distw, robust cluster(countryno) absorb(year durableregime_no)
551
+ local xunits=e(dof_table)[2,1]
552
+ outreg2 using "jtg_tables/main/tab_4_democratic_diffusion.tex", append keep(L.mtech L.lngdpc democracy_iv_ANRR_distw ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
553
+ * combined
554
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc n1_democratization_3y n2_democratization_3y democracy_iv_ANRR democracy_iv_ANRR_distw, robust cluster(countryno) absorb(year durableregime_no)
555
+ local xunits=e(dof_table)[2,1]
556
+ outreg2 using "jtg_tables/main/tab_4_democratic_diffusion.tex", append keep(L.mtech L.lngdpc L.lngdpc n1_democratization_3y n2_democratization_3y democracy_iv_ANRR democracy_iv_ANRR_distw ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
557
+ * OLS
558
+ ivreghdfe durdem L.mtech L.lngdpc n1_democratization_3y n2_democratization_3y democracy_iv_ANRR democracy_iv_ANRR_distw if L.ivbaseline!=., robust cluster(countryno) absorb(year durableregime_no)
559
+ local xunits=e(dof_table)[2,1]
560
+ outreg2 using "jtg_tables/main/tab_4_democratic_diffusion.tex", append excel keep(L.mtech L.lngdpc L.lngdpc n1_democratization_3y n2_democratization_3y democracy_iv_ANRR democracy_iv_ANRR_distw ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
561
+
562
+
563
+ *Reduced form (cite in paper or appendix along with plausibly exogenous figure)
564
+ *these results show that democratic diffusion controls only reduce reduced form estimate by 1% compared to 50% required to make results insignificant
565
+ ivreghdfe durdem L.ivbaseline L.lngdpc if L.mtech!=., robust cluster(countryno) absorb(year durableregime_no)
566
+ ivreghdfe durdem L.ivbaseline L.lngdpc n1_democratization_3y n2_democratization_3y democracy_iv_ANRR democracy_iv_ANRR_distw if L.mtech!=., robust cluster(countryno) absorb(year durableregime_no)
567
+
568
+ restore
569
+
570
+
571
+
572
+
573
+
574
+ ////////////////////////////////////////////////////////////////////////////////
575
+ //TABLE 5: SUPPORTING EVIDENCE FROM FORMER COLONIES
576
+ ////////////////////////////////////////////////////////////////////////////////
577
+ preserve
578
+ egen firstyear=min(year) if tpop!=. & colony==1 & year>=1945, by(iso3)
579
+ replace firstyear=firstyear[_n-1] if firstyear==. & iso3==iso3[_n-1]
580
+
581
+ gen temp1=mtech if year==firstyear & democracy!=.
582
+ egen mtech_ini=mean(temp1), by(country)
583
+
584
+ drop if mtech_ini==.
585
+ replace democracy=democracy*100
586
+ gen temp2=democracy if year==firstyear
587
+ egen demo_ini=mean(temp2), by(country)
588
+
589
+ gen decade_fe=floor(year/10)
590
+
591
+ reghdfe mtech ivbaseline if year==firstyear, vce(robust) absorb(decade continent)
592
+ outreg2 using "jtg_tables/main/tab_5_colonies.tex", replace keep(ivbaseline ) bdec(2) dec(2) e(model ) nocons
593
+ reghdfe mtech ivbaseline if year==firstyear+15 , vce(robust) absorb(decade continent)
594
+ outreg2 using "jtg_tables/main/tab_5_colonies.tex", append keep(ivbaseline ) bdec(2) dec(2) e(model ) nocons
595
+
596
+ replace firstyear=1990 if firstyear==1991 //correction for former soviet republics to have them in the 30-year sample (data end in 2020)
597
+
598
+ reghdfe democracy mtech_ini demo_ini if year==firstyear+15 , vce(robust) absorb(decade continent)
599
+ outreg2 using "jtg_tables/main/tab_5_colonies.tex", append keep(mtech_ini demo_ini) bdec(2) dec(2) e(model ) nocons
600
+ reghdfe democracy mtech_ini demo_ini if year==firstyear+30 , vce(robust) absorb(decade continent)
601
+ outreg2 using "jtg_tables/main/tab_5_colonies.tex", append keep(mtech_ini demo_ini) bdec(2) dec(2) e(model ) nocons
602
+
603
+ reghdfe democracy mtech_ini demo_ini if year==firstyear+15 & colony_we==1, vce(robust) absorb(decade continent)
604
+ outreg2 using "jtg_tables/main/tab_5_colonies.tex", append keep(mtech_ini demo_ini) bdec(2) dec(2) e(model ) nocons
605
+ reghdfe democracy mtech_ini demo_ini if year==firstyear+30 & colony_we==1, vce(robust) absorb(decade continent)
606
+ outreg2 using "jtg_tables/main/tab_5_colonies.tex", append excel keep(mtech_ini demo_ini) bdec(2) dec(2) e(model ) nocons
607
+
608
+ restore
609
+ ////////////////////////////////////////////////////////////////////////////////
610
+
611
+
612
+
613
+ ////////////////////////////////////////////////////////////////////////////////
614
+ //TABLE 6: WHAT CORRELATES WITH DURABLE DEMOCRATIZATION?
615
+ ////////////////////////////////////////////////////////////////////////////////
616
+
617
+ preserve
618
+ drop if durdem==.
619
+ gen recession_3y=0
620
+ replace recession_3y=1 if lngdpc-L2.lngdpc<-0.05 & countryno==L2.countryno
621
+
622
+ drop if year<1948
623
+ drop if year>2006
624
+ gen obs=1
625
+
626
+ collapse (mean) resistance_3y vresistance_3y nresistance_3y civilwar_central_3y interstatewar_3y mildispute_3y recession_3y (sum) obs, by(durdem)
627
+
628
+ rename *_3y mean*
629
+ rename obs meanobs
630
+
631
+ reshape long mean, i(durdem ) j(variable) string
632
+ reshape wide mean, i(variable ) j(durdem)
633
+
634
+ rename mean0 no_change
635
+ rename mean100 democratization
636
+ order variable democratization no_change
637
+ gen difference=democratization-no_change if variable!="obs"
638
+
639
+ replace variable="violent resistance" if variable=="vresistance"
640
+ replace variable="nonviolent resistance" if variable=="nresistance"
641
+ replace variable="interstate war" if variable=="interstatewar"
642
+ replace variable="militarized dispute" if variable=="mildispute"
643
+ replace variable="civil war for central control" if variable=="civilwar_central"
644
+ replace variable="observations" if variable=="obs"
645
+
646
+ save "jtg_tables/main/tab_6_correlates_of_democratisation.dta", replace
647
+ restore
648
+ ////////////////////////////////////////////////////////////////////////////////
649
+
650
+
651
+ ////////////////////////////////////////////////////////////////////////////////
652
+ //TABLE 7: RESISTANCE OLS & IV
653
+ ////////////////////////////////////////////////////////////////////////////////
654
+
655
+ *Column 1 and 2
656
+ preserve
657
+ gen durdem_res=durdem if resistance!=. & year<=2006 & year>1945
658
+ replace durdem_res=0 if resistance_3y==0 & durdem_res==100
659
+ gen durdem_exres=durdem-durdem_res
660
+
661
+ *ols
662
+ ivreghdfe durdem_res L.mtech L.lngdpc if democratization!=., robust cluster(country) absorb(year durableregime_no)
663
+ outreg2 using "jtg_tables/main/tab_7a_resistance_ols.tex", replace keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf)
664
+ ivreghdfe durdem_exres L.mtech L.lngdpc if democratization!=., robust cluster(country) absorb(year durableregime_no)
665
+ outreg2 using "jtg_tables/main/tab_7a_resistance_ols.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf)
666
+
667
+ *iv
668
+ ivreghdfe durdem_res (L.mtech=L.ivbaseline) L.lngdpc if democratization!=., robust cluster(country) absorb(year durableregime_no)
669
+ outreg2 using "jtg_tables/main/tab_7b_resistance_iv.tex", replace keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf)
670
+ ivreghdfe durdem_exres (L.mtech=L.ivbaseline) L.lngdpc if democratization!=., robust cluster(country) absorb(year durableregime_no)
671
+ outreg2 using "jtg_tables/main/tab_7b_resistance_iv.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf)
672
+ restore
673
+
674
+
675
+ *Column 3 and 4
676
+ preserve
677
+ gen Lmtech=L.mtech
678
+ gen Livbaseline=L.ivbaseline
679
+ gen Llngdpc=L.lngdpc
680
+ save "jtg_data/temp.dta", replace
681
+ clear
682
+ use "jtg_data_raw/navco_v2.dta"
683
+ gen year_act=year
684
+ replace year=year-1
685
+
686
+ destring tccode, replace force
687
+ replace tccode=490 if target=="Mobutu regime"
688
+ drop if lccode!=tccode
689
+ replace ccode=tccode
690
+ replace ccode = 818 if location=="Vietnam"
691
+ replace ccode = 315 if location=="Czechoslovakia"
692
+ replace ccode = 365 if location=="USSR"
693
+ replace ccode = 365 if location=="Russia"
694
+ replace ccode = 679 if location=="Yemen"
695
+
696
+ merge m:1 ccode year using "jtg_data/temp.dta", keepusing(Lmtech Llngdpc Livbaseline democracy durdem tpop)
697
+ drop if _merge!=3
698
+
699
+ gen decade=floor(year_act/10)
700
+ egen maxyear=max(year_act), by(campaign)
701
+ replace cyear=2 if maxyear==year_act & year_act!=2006
702
+ egen campaign_no=group(campaign)
703
+ xtset campaign_no year
704
+ egen maxsuccess=max(success), by(campaign)
705
+ egen maxprim_method=max(prim_method), by(campaign)
706
+ replace success=success*100
707
+
708
+ *ols
709
+ ivreghdfe success Lmtech Llngdpc if democracy==0 & cyear==2 , robust absorb(decade )
710
+ outreg2 using "jtg_tables/main/tab_7a_resistance_ols.tex", append keep(Lmtech Llngdpc ) bdec(2) dec(2) e(model rkf)
711
+ ivreghdfe success Lmtech Llngdpc if democracy==0 & cyear==2 & maxprim_method==1 , robust absorb(decade )
712
+ outreg2 using "jtg_tables/main/tab_7a_resistance_ols.tex", append keep(Lmtech Llngdpc ) bdec(2) dec(2) e(model rkf)
713
+
714
+ *iv
715
+ ivreghdfe success (Lmtech=Livbaseline) Llngdpc if democracy==0 & cyear==2 , robust absorb(decade )
716
+ outreg2 using "jtg_tables/main/tab_7b_resistance_iv.tex", append keep(Lmtech Llngdpc ) bdec(2) dec(2) e(model rkf)
717
+ ivreghdfe success (Lmtech=Livbaseline) Llngdpc if democracy==0 & cyear==2 & maxprim_method==1 , robust absorb(decade )
718
+ outreg2 using "jtg_tables/main/tab_7b_resistance_iv.tex", append keep(Lmtech Llngdpc ) bdec(2) dec(2) e(model rkf)
719
+
720
+ restore
721
+ erase "jtg_data/temp.dta"
722
+
723
+
724
+ *Column 5 and 6
725
+ preserve
726
+ replace resistance=resistance*100
727
+ replace nresistance=nresistance*100
728
+ drop if year>2006
729
+
730
+ *ols
731
+ ivreghdfe resistance L.mtech L.lngdpc if democratization!=. , robust cluster(country) absorb(year durableregime_no)
732
+ outreg2 using "jtg_tables/main/tab_7a_resistance_ols.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf)
733
+ ivreghdfe nresistance L.mtech L.lngdpc if democratization!=. , robust cluster(country) absorb(year durableregime_no)
734
+ outreg2 using "jtg_tables/main/tab_7a_resistance_ols.tex", append excel keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf)
735
+
736
+ *iv
737
+ ivreghdfe resistance (L.mtech=L.ivbaseline) L.lngdpc if democratization!=. , robust cluster(country) absorb(year durableregime_no) first
738
+ outreg2 using "jtg_tables/main/tab_7b_resistance_iv.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf)
739
+ ivreghdfe nresistance (L.mtech=L.ivbaseline) L.lngdpc if democratization!=. , robust cluster(country) absorb(year durableregime_no) first
740
+ outreg2 using "jtg_tables/main/tab_7b_resistance_iv.tex", append excel keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf)
741
+
742
+ restore
743
+ ////////////////////////////////////////////////////////////////////////////////
744
+
745
+
746
+ ////////////////////////////////////////////////////////////////////////////////
747
+ //TABLE 8: MILITARY COUPS
748
+ ////////////////////////////////////////////////////////////////////////////////
749
+ preserve
750
+ drop if year>2010
751
+
752
+ replace rchange_vdem=0 if L.v2regendtype==4 //remove regime change following the natural death of the leader
753
+ replace rchange_vdem=. if democracy_vdem==. //remove regime changes in (current) colonies
754
+ gen rc_mcoup=rchange_vdem
755
+ replace rc_mcoup=0 if L.v2regendtype!=0 & rchange_vdem!=.
756
+ gen rc_nomcoup=rchange_vdem-rc_mcoup
757
+
758
+ sum rchange_* rc_*
759
+ sum rchange_* rc_* if L.democracy_vdem!=1 & L.mtech!=. & L.lngdpc !=.
760
+
761
+ *ols
762
+ ivreghdfe rchange_vdem L.mtech L.lngdpc if L.democracy_vdem!=1 & L.ivbaseline!=., robust cluster(country) absorb(year durautoregime_no_vdem)
763
+ local xunits=e(dof_table)[2,1]
764
+ outreg2 using "jtg_tables/main/tab_8_role_of_military.tex", replace keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
765
+ ivreghdfe rc_mcoup L.mtech L.lngdpc if L.democracy_vdem!=1 & L.ivbaseline!=., robust cluster(country) absorb(year durautoregime_no_vdem)
766
+ local xunits=e(dof_table)[2,1]
767
+ outreg2 using "jtg_tables/main/tab_8_role_of_military.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
768
+ ivreghdfe rc_nomcoup L.mtech L.lngdpc if L.democracy_vdem!=1 & L.ivbaseline!=., robust cluster(country) absorb(year durautoregime_no_vdem)
769
+ local xunits=e(dof_table)[2,1]
770
+ outreg2 using "jtg_tables/main/tab_8_role_of_military.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
771
+
772
+ *iv
773
+ ivreghdfe rchange_vdem (L.mtech=L.ivbaseline) L.lngdpc if L.democracy_vdem!=1 , robust cluster(country) absorb(year durautoregime_no_vdem)
774
+ local xunits=e(dof_table)[2,1]
775
+ outreg2 using "jtg_tables/main/tab_8_role_of_military.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
776
+ ivreghdfe rc_mcoup (L.mtech=L.ivbaseline) L.lngdpc if L.democracy_vdem!=1, robust cluster(country) absorb(year durautoregime_no_vdem)
777
+ local xunits=e(dof_table)[2,1]
778
+ outreg2 using "jtg_tables/main/tab_8_role_of_military.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
779
+ ivreghdfe rc_nomcoup (L.mtech=L.ivbaseline) L.lngdpc if L.democracy_vdem!=1 , robust cluster(country) absorb(year durautoregime_no_vdem)
780
+ local xunits=e(dof_table)[2,1]
781
+ outreg2 using "jtg_tables/main/tab_8_role_of_military.tex", append excel keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
782
+
783
+ restore
784
+
785
+
786
+
787
+
788
+
789
+
41/replication_package/4_jtg_results_appendix.do ADDED
@@ -0,0 +1,862 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ clear
2
+
3
+ *IMPORTANT: Set current directoy to path of do-file before running
4
+ cd "path of this do file"
5
+
6
+ use "jtg_data\jtg_main.dta"
7
+
8
+
9
+
10
+ ////////////////////////////////////////////////////////////////////////////////
11
+ // FIGURE A1: EFFECTIVENESS
12
+ ////////////////////////////////////////////////////////////////////////////////
13
+
14
+ preserve
15
+ clear
16
+ set obs 7
17
+
18
+
19
+ gen techname=""
20
+ gen category=""
21
+ gen effective_range=.
22
+ gen rate_of_fire=.
23
+
24
+ replace category="f" if _n<=9
25
+ replace techname="Matchlock musket" if _n==1
26
+ replace techname="Snaphaunce" if _n==2
27
+ replace techname="Flintlock" if _n==3
28
+ replace techname="Percussion lock" if _n==4
29
+ replace techname="Minié bullet rifle" if _n==5
30
+ replace techname="Breechloading rifle" if _n==6
31
+ replace techname="Tubular magazine rifle" if _n==7
32
+ replace techname="Box magazine rifle" if _n==8
33
+ replace techname="Assault rifle" if _n==9
34
+
35
+ replace category="m" if _n<=2
36
+ replace techname="Hand-cranked" if _n==1
37
+ replace techname="Automatic" if _n==2
38
+
39
+ replace category="a" if _n>2
40
+ replace techname="Field gun" if _n==3
41
+ replace techname="Rifled artillery" if _n==4
42
+ replace techname="Steel tubes" if _n==5
43
+ replace techname="Breechloading" if _n==6
44
+ replace techname="Recoil mechanism" if _n==7
45
+
46
+ ** Data from Zabecki 2014 (see main text for full reference).
47
+ ** A few corrections are made, see the comments below
48
+ *a. Effective range (in meters)
49
+
50
+ replace effective_range=600 if techname=="Hand-cranked"
51
+ replace effective_range=1500 if techname=="Automatic"
52
+
53
+ replace effective_range=(900+1480)/2 if techname=="Field gun" // average of two different kinds of smoothbore cannons
54
+ replace effective_range=(2800+3000)/2 if techname=="Rifled artillery" // average of two different kinds of rifled artillery
55
+ replace effective_range=3800 if techname=="Steel tubes"
56
+ replace effective_range=3800 if techname=="Breechloading"
57
+ replace effective_range=3800 if techname=="Recoil mechanism"
58
+
59
+ *b. Rate of fire (shots/minute)
60
+ replace rate_of_fire=200 if techname=="Hand-cranked"
61
+ replace rate_of_fire=825 if techname=="Automatic"
62
+
63
+ replace rate_of_fire=1 if techname=="Field gun"
64
+ replace rate_of_fire= 1 if techname=="Rifled artillery"
65
+ replace rate_of_fire=2 if techname=="Steel tubes"
66
+ replace rate_of_fire=3.5 if techname=="Breechloading"
67
+ replace rate_of_fire=8 if techname=="Recoil mechanism" //average of sustained and burst. Could in theory fire three times as often
68
+
69
+ *calculate geometric mean
70
+ gen simpleeffect=sqrt(effective_range*rate_of_fire)
71
+
72
+
73
+ *Panel A
74
+ graph hbar simpleeffect if category=="a", over(techname, sort(simpleeffect)) ///
75
+ ytitle("Geometric mean of range and rate of fire") plotregion(fcolor(white)) graphregion(color(white)) ///
76
+ bar(1, color(gs8))
77
+ graph export "jtg_figures/appendix/fig_a1a_effectiveness.eps", replace
78
+ graph export "jtg_figures/appendix/fig_a1a_effectiveness.pdf", replace
79
+ *Panel B
80
+ graph hbar simpleeffect if category=="m", over(techname, sort(simpleeffect)) ///
81
+ ytitle("Geometric mean of range and rate of fire") plotregion(fcolor(white)) graphregion(color(white)) ///
82
+ bar(1, color(gs8))
83
+ graph export "jtg_figures/appendix/fig_a1b_effectiveness.eps", replace
84
+ graph export "jtg_figures/appendix/fig_a1b_effectiveness.pdf", replace
85
+
86
+ restore
87
+ ////////////////////////////////////////////////////////////////////////////////
88
+
89
+
90
+ ////////////////////////////////////////////////////////////////////////////////
91
+ /// FIGURE D1: DEMOCRACIES AND MILITARY TECHNOLOGY BY CONTINENT
92
+ ////////////////////////////////////////////////////////////////////////////////
93
+
94
+ //PANEL A: DEMOCRACY BY CONTINENT
95
+ preserve
96
+ collapse (sum) democracy, by(continent year)
97
+ drop if year>2010
98
+
99
+ sort year
100
+ twoway line democracy year if continent=="Africa", lcolor(black) ///
101
+ || line democracy year if continent=="Asia and Oceania", lcolor(gray) ///
102
+ || line democracy year if continent=="Americas", lcolor(black) lpattern(dash) ///
103
+ || line democracy year if continent=="Europe", lcolor(gray) lpattern(dash) ///
104
+ legend(label(1 "Africa") label(2 "Asia and Oceania") label(3 "Americas") label(4 "Europe") region(col(white))) ///
105
+ plotregion(fcolor(white)) graphregion(color(white)) ///
106
+ ytitle("Number of countries") xtitle("Year")
107
+ graph export "jtg_figures/appendix/fig_d1a_democracy_by_continent.pdf", replace
108
+ graph export "jtg_figures/appendix/fig_d1a_democracy_by_continent.eps", replace
109
+
110
+ restore
111
+
112
+ //PANEL A: MILITARY TECHNOLOGY BY CONTINENT
113
+ preserve
114
+ drop if democracy==.
115
+ collapse (mean) mtech, by(continent year)
116
+ drop if year>2010
117
+ drop if year<1960 & continent=="Africa"
118
+
119
+ sort year
120
+ twoway line mtech year if continent=="Africa", lcolor(black) ///
121
+ || line mtech year if continent=="Asia and Oceania", lcolor(gray) ///
122
+ || line mtech year if continent=="Americas", lcolor(black) lpattern(dash) ///
123
+ || line mtech year if continent=="Europe", lcolor(gray) lpattern(dash) ///
124
+ legend(label(1 "Africa") label(2 "Asia and Oceania") label(3 "Americas") label(4 "Europe") region(col(white))) ///
125
+ plotregion(fcolor(white)) graphregion(color(white)) ///
126
+ ytitle("Average military technologies") xtitle("Year")
127
+ graph export "jtg_figures/appendix/fig_d1b_mtech_by_continent.pdf", replace
128
+ graph export "jtg_figures/appendix/fig_d1b_mtech_by_continent.eps", replace
129
+
130
+ restore
131
+ ////////////////////////////////////////////////////////////////////////////////
132
+
133
+
134
+ ////////////////////////////////////////////////////////////////////////////////
135
+ //////////////// FIGURE D2: PLAUSIBLY EXOGENOUS IV GRAPH ///////////////////////
136
+ ////////////////////////////////////////////////////////////////////////////////
137
+ preserve
138
+ set matsize 1000
139
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
140
+ drop if year>2010
141
+ gen Lmtech=L.mtech
142
+ gen Livbaseline=L.ivbaseline
143
+ gen Llngdpc=L.lngdpc
144
+ xi: plausexog uci durdem Llngdpc i.year i.durableregime_no (Lmtech=Livbaseline), vce(cluster countryno) grid(15) gmin(-1) gmax(0.5) graph(Lmtech)
145
+ graph export "jtg_figures/appendix/fig_d2_plausibly_exogenous.pdf", replace
146
+ graph export "jtg_figures/appendix/fig_d2_plausibly_exogenous.eps", replace
147
+ restore
148
+ ////////////////////////////////////////////////////////////////////////////////
149
+
150
+
151
+
152
+
153
+ ////////////////////////////////////////////////////////////////////////////////
154
+ /////// FIGURE D3 AND D4: DISTRIBUTION OF CONDITIONAL MTECH (OLS AND IV) //////
155
+ ////////////////////////////////////////////////////////////////////////////////
156
+
157
+ preserve
158
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
159
+ drop if year>2010
160
+ reghdfe L.mtech L.lngdpc if L.ivbaseline!=. & L.democracy==0, cluster(country) absorb(year regime_no) residuals(conditional_mtech_ols)
161
+ reghdfe L.mtech L.ivbaseline L.lngdpc if L.ivbaseline!=. & L.democracy==0, cluster(country) absorb(year regime_no)
162
+ predict mtech_hat
163
+ reghdfe mtech_hat L.lngdpc if L.ivbaseline!=., cluster(country) absorb(year regime_no) residuals(conditional_mtech_iv)
164
+
165
+ *full sample
166
+ twoway hist conditional_mtech_ols, color(gs10) || hist conditional_mtech_iv, lcolor(black) fcolor(none) bin(16) ///
167
+ legend(label(1 "Actual") label(2 "Instrumented") region(col(white))) plotregion(fcolor(white)) graphregion(color(white)) xtitle("Conditional mtech")
168
+ graph export "jtg_figures/appendix/fig_d3_conditional_mtech.pdf", replace
169
+ graph export "jtg_figures/appendix/fig_d3_conditional_mtech.eps", replace
170
+
171
+ *2010
172
+ drop if year!=2010
173
+ twoway hist conditional_mtech_ols, color(gs10) bin(24) || hist conditional_mtech_iv, lcolor(black) fcolor(none) bin(12) ///
174
+ legend(label(1 "Actual") label(2 "Instrumented") region(col(white))) plotregion(fcolor(white)) graphregion(color(white)) xtitle("Conditional mtech")
175
+ graph export "jtg_figures/appendix/fig_d4_conditional_mtech_2010.pdf", replace
176
+ graph export "jtg_figures/appendix/fig_d4_conditional_mtech_2010.eps", replace
177
+
178
+ restore
179
+
180
+
181
+
182
+ *###############################################################################
183
+ ////////////////////////////////////////////////////////////////////////////////
184
+ // APPENDIX TABLES //
185
+ ////////////////////////////////////////////////////////////////////////////////
186
+ *###############################################################################
187
+
188
+
189
+
190
+ ////////////////////////////////////////////////////////////////////////////////
191
+ // TABLE D1: ALTERNATIVE DEMOCRACY DATA
192
+ ////////////////////////////////////////////////////////////////////////////////
193
+ preserve
194
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
195
+ drop if year>2010
196
+ drop if tpop==. // V-DEM codes regimes in transition to independence, so we restrict sample to independent states to avoid independence being coded as democratization.
197
+
198
+ ivreghdfe democratization_polity L.mtech L.lngdpc if L.ivbaseline!=. , robust cluster(country) absorb(year regime_no_polity)
199
+ local xunits=e(dof_table)[2,1]
200
+ outreg2 using "jtg_tables/appendix/tab_d1_alt_democracy_data.tex", replace keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
201
+ ivreghdfe democratization_polity (L.mtech=L.ivbaseline) L.lngdpc , robust cluster(country) absorb(year regime_no_polity)
202
+ outreg2 using "jtg_tables/appendix/tab_d1_alt_democracy_data.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
203
+
204
+ ivreghdfe durdem_polity L.mtech L.lngdpc if L.ivbaseline!=., robust cluster(country) absorb(year durableregime_no_polity)
205
+ local xunits=e(dof_table)[2,1]
206
+ outreg2 using "jtg_tables/appendix/tab_d1_alt_democracy_data.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
207
+ ivreghdfe durdem_polity (L.mtech=L.ivbaseline) L.lngdpc , robust cluster(country) absorb(year durableregime_no_polity)
208
+ local xunits=e(dof_table)[2,1]
209
+ outreg2 using "jtg_tables/appendix/tab_d1_alt_democracy_data.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
210
+
211
+ ivreghdfe democratization_vdem L.mtech L.lngdpc if L.ivbaseline!=., robust cluster(country) absorb(year autoregime_no_vdem)
212
+ local xunits=e(dof_table)[2,1]
213
+ outreg2 using "jtg_tables/appendix/tab_d1_alt_democracy_data.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
214
+ ivreghdfe democratization_vdem (L.mtech=L.ivbaseline) L.lngdpc , robust cluster(country) absorb(year autoregime_no_vdem)
215
+ local xunits=e(dof_table)[2,1]
216
+ outreg2 using "jtg_tables/appendix/tab_d1_alt_democracy_data.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
217
+
218
+ ivreghdfe durdem_vdem L.mtech L.lngdpc if L.ivbaseline!=., robust cluster(country) absorb(year durautoregime_no_vdem)
219
+ local xunits=e(dof_table)[2,1]
220
+ outreg2 using "jtg_tables/appendix/tab_d1_alt_democracy_data.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
221
+ ivreghdfe durdem_vdem (L.mtech=L.ivbaseline) L.lngdpc , robust cluster(country) absorb(year durautoregime_no_vdem)
222
+ local xunits=e(dof_table)[2,1]
223
+ outreg2 using "jtg_tables/appendix/tab_d1_alt_democracy_data.tex", append excel keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
224
+
225
+ restore
226
+ ////////////////////////////////////////////////////////////////////////////////
227
+
228
+
229
+ ////////////////////////////////////////////////////////////////////////////////
230
+ // TABLE D2: ALTERNATIVE MESURES OF MILITARY TECHNOLOGY
231
+ ////////////////////////////////////////////////////////////////////////////////
232
+ preserve
233
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
234
+ drop if year>2010
235
+ gen lnmtech=ln(mtech)
236
+ gen lnivbaseline=ln(ivbaseline)
237
+
238
+ ivreghdfe durdem L.mtech_exf L.lngdpc if L.mtech_exf_iv_n2!=., robust cluster(countryno) absorb(year durableregime_no)
239
+ local xunits=e(dof_table)[2,1]
240
+ outreg2 using "jtg_tables/appendix/tab_d2_mtech_measurement.tex", replace keep(L.mtech_exf L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
241
+ ivreghdfe durdem (L.mtech_exf=L.mtech_exf_iv_n2) L.lngdpc , robust cluster(countryno) absorb(year durableregime_no)
242
+ local xunits=e(dof_table)[2,1]
243
+ outreg2 using "jtg_tables/appendix/tab_d2_mtech_measurement.tex", append keep(L.mtech_exf L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
244
+ ivreghdfe durdem L.mtech_exgen L.lngdpc if L.mtech_exgen_iv_n2!=. , robust cluster(countryno) absorb(year durableregime_no)
245
+ local xunits=e(dof_table)[2,1]
246
+ outreg2 using "jtg_tables/appendix/tab_d2_mtech_measurement.tex", append keep(L.mtech_exgen L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
247
+ ivreghdfe durdem (L.mtech_exgen=L.mtech_exgen_iv_n2) L.lngdpc , robust cluster(countryno) absorb(year durableregime_no)
248
+ local xunits=e(dof_table)[2,1]
249
+ outreg2 using "jtg_tables/appendix/tab_d2_mtech_measurement.tex", append keep(L.mtech_exgen L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
250
+ ivreghdfe durdem L.lnmtech L.lngdpc if L.lnivbaseline!=., robust cluster(countryno) absorb(year durableregime_no)
251
+ local xunits=e(dof_table)[2,1]
252
+ outreg2 using "jtg_tables/appendix/tab_d2_mtech_measurement.tex", append keep(L.lnmtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
253
+ ivreghdfe durdem (L.lnmtech=L.lnivbaseline) L.lngdpc , robust cluster(countryno) absorb(year durableregime_no)
254
+ local xunits=e(dof_table)[2,1]
255
+ outreg2 using "jtg_tables/appendix/tab_d2_mtech_measurement.tex", append excel keep(L.lnmtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
256
+
257
+ restore
258
+ ////////////////////////////////////////////////////////////////////////////////
259
+
260
+
261
+ ////////////////////////////////////////////////////////////////////////////////
262
+ // TABLE D3: 5-YEAR FREQUENCY AND LEVELS REGRESSION
263
+ ////////////////////////////////////////////////////////////////////////////////
264
+
265
+ preserve
266
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
267
+ drop if year>2010
268
+ gen L5ivbaseline=L5.ivbaseline
269
+ gen L5lngdpc=L5.lngdpc
270
+ gen L5mtech=L5.mtech
271
+ gen obsno_y5=round(year/5)
272
+ collapse (max) democratization durdem lastdem demreverse (mean) L5mtech L5ivbaseline L5lngdpc, by(iso3 country countryno obsno_y5 regime_no )
273
+ *Col 1: OLS, democratization with autocracy spell fixed effects
274
+ ivreghdfe democratization L5mtech L5lngdpc if L5ivbaseline!=., robust cluster(country) absorb(obsno_y5 regime_no)
275
+ local xunits=e(dof_table)[2,1]
276
+ outreg2 using "jtg_tables/appendix/tab_d3_5yr.tex", replace keep(L5mtech L5lngdpc) bdec(2) dec(2) e(model) addstat(Autocracy spells/countries, `xunits')
277
+ *Col 2: IV, democratization with autocracy spell fixed effects
278
+ ivreghdfe democratization (L5mtech =L5ivbaseline) L5lngdpc , robust cluster(country) absorb(obsno_y5 regime_no)
279
+ local xunits=e(dof_table)[2,1]
280
+ outreg2 using "jtg_tables/appendix/tab_d3_5yr.tex", append keep(L5mtech L5lngdpc) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells/countries, `xunits')
281
+ restore
282
+
283
+ preserve
284
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
285
+ drop if year>2010
286
+ gen L5ivbaseline=L5.ivbaseline
287
+ gen L5lngdpc=L5.lngdpc
288
+ gen L5mtech=L5.mtech
289
+ gen obsno_y5=round(year/5)
290
+ collapse (max) democratization durdem lastdem demreverse (mean) L5mtech L5ivbaseline L5lngdpc, by(iso3 country countryno obsno_y5 durableregime_no)
291
+ *Col 3: OLS, semi-permanent democratization with autocracy spell fixed effects
292
+ ivreghdfe durdem L5mtech L5lngdpc if L5ivbaseline!=., robust cluster(country) absorb(obsno_y5 durableregime_no)
293
+ local xunits=e(dof_table)[2,1]
294
+ outreg2 using "jtg_tables/appendix/tab_d3_5yr.tex", append keep(L5mtech L5lngdpc) bdec(2) dec(2) e(model) addstat(Autocracy spells/countries, `xunits')
295
+ *Col 4: IV, semi-permanent democratization with autocracy spell fixed effects
296
+ ivreghdfe durdem (L5mtech =L5ivbaseline) L5lngdpc , robust cluster(country) absorb(obsno_y5 durableregime_no)
297
+ local xunits=e(dof_table)[2,1]
298
+ outreg2 using "jtg_tables/appendix/tab_d3_5yr.tex", append keep(L5mtech L5lngdpc) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells/countries, `xunits')
299
+ restore
300
+
301
+ preserve
302
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
303
+ drop if year>2010
304
+ gen L5ivbaseline=L5.ivbaseline
305
+ gen L5lngdpc=L5.lngdpc
306
+ gen L5mtech=L5.mtech
307
+ gen obsno_y5=round(year/5)
308
+ collapse (max) democratization durdem lastdem demreverse (mean) L5mtech L5ivbaseline L5lngdpc, by(iso3 country countryno obsno_y5)
309
+ *Col 5: OLS, likelihood of last (and not reversed) democratization
310
+ ivreghdfe lastdem L5mtech L5lngdpc if L5ivbaseline!=., robust cluster(country) absorb(obsno_y5 country)
311
+ local xunits=e(dof_table)[2,1]
312
+ outreg2 using "jtg_tables/appendix/tab_d3_5yr.tex", append keep(L5mtech L5lngdpc) bdec(2) dec(2) e(model) addstat(Autocracy spells/countries, `xunits')
313
+ *Col 6: IV, likelihood of last (and not reversed) democratization
314
+ ivreghdfe lastdem (L5mtech =L5ivbaseline) L5lngdpc , robust cluster(country) absorb(obsno_y5 country)
315
+ local xunits=e(dof_table)[2,1]
316
+ outreg2 using "jtg_tables/appendix/tab_d3_5yr.tex", append keep(L5mtech L5lngdpc) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells/countries, `xunits')
317
+ restore
318
+
319
+
320
+ preserve
321
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
322
+ drop if year>2010
323
+ drop if year/5!=round(year/5)
324
+ egen time=group(year)
325
+ xtset countryno time
326
+ replace lngdpc=lngdpc/100
327
+ replace mtech=mtech/100
328
+ reghdfe democracy L.(mtech lngdpc democracy ), vce(cluster country) absorb(year countryno)
329
+ local xunits=e(dof_table)[2,1]
330
+ outreg2 using "jtg_tables/appendix/tab_d3_5yr.tex", append keep(L.mtech L.lngdpc L.democracy) bdec(2) dec(2) addstat(Autocracy spells/countries, `xunits')
331
+ xtabond2 democracy L.(mtech lngdpc democracy ) i.year if year>1835, gmm(L.(democracy lngdpc mtech ), lag(1 2) collapse) iv(i.year) twostep robust
332
+ local xunits=e(N_g)
333
+ outreg2 using "jtg_tables/appendix/tab_d3_5yr.tex", append excel keep(L.mtech L.lngdpc L.democracy) bdec(2) dec(2) addstat(Autocracy spells/countries, `xunits')
334
+
335
+ restore
336
+ xtset countryno year
337
+ ////////////////////////////////////////////////////////////////////////////////
338
+
339
+
340
+
341
+ ////////////////////////////////////////////////////////////////////////////////
342
+ // TABLE D4: ALTERNATIVE SAMPLES
343
+ ////////////////////////////////////////////////////////////////////////////////
344
+
345
+ preserve
346
+
347
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
348
+ drop if year>2010
349
+
350
+ *balancing
351
+ ivreghdfe durdem L.mtech L.lngdpc if longsample==1, robust cluster(country) absorb(year durableregime_no)
352
+ local xunits=e(dof_table)[2,1]
353
+ outreg2 using "jtg_tables/appendix/tab_d4_alt_samples.tex", replace keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
354
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc if longsample==1, robust cluster(country) absorb(year durableregime_no)
355
+ local xunits=e(dof_table)[2,1]
356
+ outreg2 using "jtg_tables/appendix/tab_d4_alt_samples.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
357
+
358
+ ivreghdfe durdem L.mtech L.lngdpc if mediumsample==1, robust cluster(country) absorb(year durableregime_no)
359
+ local xunits=e(dof_table)[2,1]
360
+ outreg2 using "jtg_tables/appendix/tab_d4_alt_samples.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
361
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc if mediumsample==1, robust cluster(country) absorb(year durableregime_no)
362
+ local xunits=e(dof_table)[2,1]
363
+ outreg2 using "jtg_tables/appendix/tab_d4_alt_samples.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
364
+
365
+ ivreghdfe durdem L.mtech L.lngdpc if shortsample==1, robust cluster(country) absorb(year durableregime_no)
366
+ local xunits=e(dof_table)[2,1]
367
+ outreg2 using "jtg_tables/appendix/tab_d4_alt_samples.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
368
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc if shortsample==1, robust cluster(country) absorb(year durableregime_no)
369
+ local xunits=e(dof_table)[2,1]
370
+ outreg2 using "jtg_tables/appendix/tab_d4_alt_samples.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
371
+
372
+ *ex colonies (only coutries gaining independence after WWII are defined as colonies)
373
+ ivreghdfe durdem L.mtech L.lngdpc if colony!=1 & L.ivbaseline!=., robust cluster(country) absorb(year durableregime_no)
374
+ local xunits=e(dof_table)[2,1]
375
+ outreg2 using "jtg_tables/appendix/tab_d4_alt_samples.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
376
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc if colony!=1, robust cluster(country) absorb(year durableregime_no)
377
+ local xunits=e(dof_table)[2,1]
378
+ outreg2 using "jtg_tables/appendix/tab_d4_alt_samples.tex", append excel keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
379
+
380
+ restore
381
+ ////////////////////////////////////////////////////////////////////////////////
382
+
383
+
384
+
385
+ ////////////////////////////////////////////////////////////////////////////////
386
+ // TABLE D5: MAIN RESULTS W/O GDP
387
+ ////////////////////////////////////////////////////////////////////////////////
388
+ preserve
389
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
390
+ drop if year>2010
391
+
392
+ *Col 1: democratization OLS
393
+ ivreghdfe democratization L.mtech if L.ivbaseline!=. & L.lngdpc!=., robust cluster(countryno) absorb(year regime_no)
394
+ local xunits=e(dof_table)[2,1]
395
+ outreg2 using "jtg_tables/appendix/tab_d5_no_GDP_control.tex", replace keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
396
+ *Col 2: democratization IV
397
+ ivreghdfe democratization (L.mtech =L.ivbaseline) if L.lngdpc!=., robust cluster(countryno) absorb(year regime_no)
398
+ local xunits=e(dof_table)[2,1]
399
+ outreg2 using "jtg_tables/appendix/tab_d5_no_GDP_control.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
400
+ *Col 3: durable democratization OLS
401
+ ivreghdfe durdem L.mtech if L.ivbaseline!=. & L.lngdpc!=. , robust cluster(countryno) absorb(year durableregime_no)
402
+ local xunits=e(dof_table)[2,1]
403
+ outreg2 using "jtg_tables/appendix/tab_d5_no_GDP_control.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
404
+ *Col 4: durable democratization IV
405
+ ivreghdfe durdem (L.mtech =L.ivbaseline) if L.lngdpc!=. , robust cluster(countryno) absorb(year durableregime_no)
406
+ local xunits=e(dof_table)[2,1]
407
+ outreg2 using "jtg_tables/appendix/tab_d5_no_GDP_control.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
408
+ *Col 5: likelihood of unreversed) democratization OLS
409
+ ivreghdfe lastdem L.mtech if L.ivbaseline!=. & L.lngdpc!=. , robust cluster(countryno) absorb(year countryno)
410
+ local xunits=e(dof_table)[2,1]
411
+ outreg2 using "jtg_tables/appendix/tab_d5_no_GDP_control.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
412
+ *Col 6: likelihood of unreversed) democratization IV
413
+ ivreghdfe lastdem (L.mtech =L.ivbaseline) if L.lngdpc!=. , robust cluster(countryno) absorb(year countryno)
414
+ local xunits=e(dof_table)[2,1]
415
+ outreg2 using "jtg_tables/appendix/tab_d5_no_GDP_control.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
416
+ *Col 7: likelihood of democratic reversal OLS
417
+ ivreghdfe demreverse L.mtech if L.ivbaseline!=. & L.lngdpc!=. , robust cluster(countryno) absorb(year countryno)
418
+ outreg2 using "jtg_tables/appendix/tab_d5_no_GDP_control.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf)
419
+ *Col 8: likelihood of democratic reversal IV
420
+ ivreghdfe demreverse (L.mtech =L.ivbaseline) if L.lngdpc!=. , robust cluster(countryno) absorb(year countryno)
421
+ outreg2 using "jtg_tables/appendix/tab_d5_no_GDP_control.tex", append excel keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf)
422
+ restore
423
+ ////////////////////////////////////////////////////////////////////////////////
424
+
425
+
426
+
427
+
428
+ ////////////////////////////////////////////////////////////////////////////////
429
+ // TABLE D6: ASSORTED ROBUSTNESS CHECKS
430
+ ////////////////////////////////////////////////////////////////////////////////
431
+ preserve
432
+ *inc great powers
433
+ drop if year>2010
434
+ ivreghdfe durdem L.mtech L.lngdpc if L.ivbaseline!=., robust cluster(country) absorb(year durableregime_no)
435
+ local xunits=e(dof_table)[2,1]
436
+ outreg2 using "jtg_tables/appendix/tab_d6_assorted_checks.tex", replace keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
437
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc, robust cluster(country) absorb(year durableregime_no)
438
+ local xunits=e(dof_table)[2,1]
439
+ outreg2 using "jtg_tables/appendix/tab_d6_assorted_checks.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
440
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
441
+
442
+ *ex A-bomb countrues
443
+ ivreghdfe durdem L.mtech L.lngdpc if L.ivbaseline!=. & country!="Pakistan" & country!="India" & country!="Korea, Democratic People's Republic of" & country!="China" , robust cluster(country) absorb(year durableregime_no)
444
+ local xunits=e(dof_table)[2,1]
445
+ outreg2 using "jtg_tables/appendix/tab_d6_assorted_checks.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
446
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc if country!="Pakistan" & country!="India" & country!="Korea, Democratic People's Republic of" & country!="China" , robust cluster(country) absorb(year durableregime_no)
447
+ local xunits=e(dof_table)[2,1]
448
+ outreg2 using "jtg_tables/appendix/tab_d6_assorted_checks.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
449
+
450
+ *control for military expenditures
451
+ ivreghdfe durdem L.mtech L.lngdpc L.lnmilex if L.ivbaseline!=., robust cluster(country) absorb(year durableregime_no)
452
+ local xunits=e(dof_table)[2,1]
453
+ outreg2 using "jtg_tables/appendix/tab_d6_assorted_checks.tex", append keep(L.mtech L.lngdpc L.lnmilex ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
454
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc L.lnmilex, robust cluster(country) absorb(year durableregime_no)
455
+ local xunits=e(dof_table)[2,1]
456
+ outreg2 using "jtg_tables/appendix/tab_d6_assorted_checks.tex", append excel keep(L.mtech L.lngdpc L.lnmilex ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
457
+
458
+ restore
459
+ ////////////////////////////////////////////////////////////////////////////////
460
+
461
+
462
+
463
+ ////////////////////////////////////////////////////////////////////////////////
464
+ // TABLE D7: WARFARE
465
+ ////////////////////////////////////////////////////////////////////////////////
466
+ preserve
467
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
468
+ drop if year>2010
469
+ drop if interstatewar==. | milper_pop==. // balance sample
470
+
471
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc , robust cluster(country) absorb(year durableregime_no)
472
+ local xunits=e(dof_table)[2,1]
473
+ outreg2 using "jtg_tables/appendix/tab_d7_war.tex", replace keep(L.mtech L.lngdpc L.interstatewar ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
474
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc L.interstatewar, robust cluster(country) absorb(year durableregime_no)
475
+ local xunits=e(dof_table)[2,1]
476
+ outreg2 using "jtg_tables/appendix/tab_d7_war.tex", append keep(L.mtech L.lngdpc L.interstatewar ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
477
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc L.interstatewar interstatewar, robust cluster(country) absorb(year durableregime_no)
478
+ local xunits=e(dof_table)[2,1]
479
+ outreg2 using "jtg_tables/appendix/tab_d7_war.tex", append keep(L.mtech L.lngdpc L.interstatewar interstatewar ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
480
+
481
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc L.mildispute mildispute, robust cluster(country) absorb(year durableregime_no)
482
+ local xunits=e(dof_table)[2,1]
483
+ outreg2 using "jtg_tables/appendix/tab_d7_war.tex", append keep(L.mtech L.lngdpc interstatewar mildispute L.mildispute L.interstatewar) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
484
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc L.milper_pop , robust cluster(country) absorb(year durableregime_no)
485
+ local xunits=e(dof_table)[2,1]
486
+ outreg2 using "jtg_tables/appendix/tab_d7_war.tex", append keep(L.mtech L.lngdpc L.milper_pop ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
487
+
488
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc L.interstatewar interstatewar L.mildispute mildispute L.milper_pop , robust cluster(country) absorb(year durableregime_no)
489
+ local xunits=e(dof_table)[2,1]
490
+ outreg2 using "jtg_tables/appendix/tab_d7_war.tex", append keep(L.mtech L.lngdpc L.interstatewar interstatewar L.mildispute mildispute L.milper_pop ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
491
+
492
+ *ols*
493
+ ivreghdfe durdem L.mtech L.lngdpc L.interstatewar interstatewar L.mildispute mildispute L.milper_pop if L.ivbaseline!=., robust cluster(country) absorb(year durableregime_no)
494
+ local xunits=e(dof_table)[2,1]
495
+ outreg2 using "jtg_tables/appendix/tab_d7_war.tex", append excel keep(L.mtech L.lngdpc L.interstatewar interstatewar L.mildispute mildispute L.milper_pop ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
496
+
497
+ restore
498
+ ////////////////////////////////////////////////////////////////////////////////
499
+
500
+
501
+
502
+
503
+ ////////////////////////////////////////////////////////////////////////////////
504
+ // TABLE D8: INTERNATIONAL RELATIONS IN THE POSTWAR PERIOD
505
+ ////////////////////////////////////////////////////////////////////////////////
506
+ preserve
507
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
508
+ drop if year>2010
509
+ drop if year<1945
510
+
511
+ gen tivdum_fuk=tivdum_france+ tivdum_uk
512
+
513
+ replace us_rus_agree_diff=0 if us_rus_agree_diff==.
514
+ replace tivdum_us=0 if tivdum_us==.
515
+ replace tivdum_russia=0 if tivdum_russia==.
516
+ replace tivdum_fuk=0 if tivdum_fuk==.
517
+ replace lnaid=0 if lnaid==.
518
+
519
+ replace durdem=. if L.lntrade==.
520
+
521
+ *Col 1: Baseline during Postwar
522
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc, robust cluster(country) absorb(year durableregime_no)
523
+ local xunits=e(dof_table)[2,1]
524
+ outreg2 using "jtg_tables/appendix/tab_d8_ir.tex", replace keep(L.mtech L.lngdpc L.ally_USA L.ally_Russia) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
525
+ *Col 2: Arms deliveries from USA or USSR/Russia
526
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc L.tivdum_us L.tivdum_russia L.tivdum_fuk, robust cluster(country) absorb(year durableregime_no)
527
+ local xunits=e(dof_table)[2,1]
528
+ outreg2 using "jtg_tables/appendix/tab_d8_ir.tex", append keep(L.mtech L.lngdpc L.tivdum_us L.tivdum_russia L.tivdum_fuk) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
529
+ *Col 3: Alliances with USA /USSR
530
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc L.ally_USA L.ally_Russia, robust cluster(country) absorb(year durableregime_no)
531
+ local xunits=e(dof_table)[2,1]
532
+ outreg2 using "jtg_tables/appendix/tab_d8_ir.tex", append keep(L.mtech L.lngdpc L.ally_USA L.ally_Russia) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
533
+ *Col 4: UN agreement with USA or USSR/Russia
534
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc L.us_rus_agree_diff, robust cluster(country) absorb(year durableregime_no)
535
+ local xunits=e(dof_table)[2,1]
536
+ outreg2 using "jtg_tables/appendix/tab_d8_ir.tex", append keep(L.mtech L.lngdpc L.us_rus_agree_diff) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
537
+ *Col 5: Aid (DAC) and trade
538
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc L.lnaid L.lntrade , robust cluster(country) absorb(year durableregime_no)
539
+ local xunits=e(dof_table)[2,1]
540
+ outreg2 using "jtg_tables/appendix/tab_d8_ir.tex", append keep(L.mtech L.lngdpc L.lnaid L.lntrade) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
541
+ *Col 6: All
542
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc L.ally_USA L.ally_Russia L.us_rus_agree_diff L.tivdum_us L.tivdum_russia L.tivdum_fuk L.lnaid L.lntrade , robust cluster(country) absorb(year durableregime_no)
543
+ local xunits=e(dof_table)[2,1]
544
+ outreg2 using "jtg_tables/appendix/tab_d8_ir.tex", append keep(L.mtech L.lngdpc L.ally_USA L.ally_Russia L.us_rus_agree_diff L.tivdum_us L.tivdum_russia L.tivdum_fuk L.lnaid L.lntrade) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
545
+ *Col 7: OLS
546
+ ivreghdfe durdem L.mtech L.lngdpc L.ally_USA L.ally_Russia L.us_rus_agree_diff L.tivdum_us L.tivdum_russia L.tivdum_fuk L.lnaid L.lntrade if L.ivbaseline!=., robust cluster(country) absorb(year durableregime_no)
547
+ local xunits=e(dof_table)[2,1]
548
+ outreg2 using "jtg_tables/appendix/tab_d8_ir.tex", append excel keep(L.mtech L.lngdpc L.ally_USA L.ally_Russia L.us_rus_agree_diff L.tivdum_us L.tivdum_russia L.tivdum_fuk L.lnaid L.lntrade) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
549
+ restore
550
+ ////////////////////////////////////////////////////////////////////////////////
551
+
552
+
553
+
554
+ ////////////////////////////////////////////////////////////////////////////////
555
+ // TABLE D9: INTERNATIONAL RELATIONS IN THE POSTWAR PERIOD, NEIGHBORS
556
+ ////////////////////////////////////////////////////////////////////////////////
557
+
558
+ preserve
559
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
560
+ drop if year>2010
561
+ drop if year<1945
562
+ replace n1_lnaid=0 if n1_lnaid==.
563
+ gen n1_tivdum_fuk=n1_tivdum_france + n1_tivdum_uk
564
+
565
+ gen n1_agree_diff=n1_agree_USA_avg-n1_agree_Russia_avg
566
+
567
+ replace n1_agree_diff=0 if n1_agree_diff==.
568
+ replace n1_tivdum_us=0 if n1_tivdum_us==.
569
+ replace n1_tivdum_russia=0 if n1_tivdum_russia==.
570
+ replace n1_tivdum_fuk=0 if n1_tivdum_fuk==.
571
+ replace n1_lnaid=0 if n1_lnaid==.
572
+ replace n1_lntrade=0 if n1_lntrade==.
573
+
574
+ replace durdem=. if L.lntrade==.
575
+
576
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc , robust cluster(country) absorb(year durableregime_no)
577
+ local xunits=e(dof_table)[2,1]
578
+ outreg2 using "jtg_tables/appendix/tab_d9_ir_neighbors.tex", replace keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
579
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc n1_tivdum_us n1_tivdum_russia n1_tivdum_fuk , robust cluster(country) absorb(year durableregime_no)
580
+ local xunits=e(dof_table)[2,1]
581
+ outreg2 using "jtg_tables/appendix/tab_d9_ir_neighbors.tex", append keep(L.mtech L.lngdpc n1_tivdum_us n1_tivdum_russia n1_tivdum_fuk) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
582
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc n1_ally_USA n1_ally_Russia , robust cluster(country) absorb(year durableregime_no)
583
+ local xunits=e(dof_table)[2,1]
584
+ outreg2 using "jtg_tables/appendix/tab_d9_ir_neighbors.tex", append keep(L.mtech L.lngdpc n1_ally_USA n1_ally_Russia) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
585
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc n1_agree_diff , robust cluster(country) absorb(year durableregime_no)
586
+ local xunits=e(dof_table)[2,1]
587
+ outreg2 using "jtg_tables/appendix/tab_d9_ir_neighbors.tex", append keep(L.mtech L.lngdpc n1_agree_diff) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
588
+
589
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc n1_lntrade n1_lnaid , robust cluster(country) absorb(year durableregime_no)
590
+ local xunits=e(dof_table)[2,1]
591
+ outreg2 using "jtg_tables/appendix/tab_d9_ir_neighbors.tex", append keep(L.mtech L.lngdpc n1_lntrade n1_lnaid) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
592
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc n1_tivdum_us n1_tivdum_russia n1_tivdum_fuk n1_tivdum_fuk n1_ally_USA n1_ally_Russia n1_agree_diff n1_lntrade n1_lnaid if year>=1945, robust cluster(country) absorb(year durableregime_no)
593
+ local xunits=e(dof_table)[2,1]
594
+ outreg2 using "jtg_tables/appendix/tab_d9_ir_neighbors.tex", append keep(L.mtech L.lngdpc n1_tivdum_us n1_tivdum_russia n1_tivdum_fuk n1_ally_USA n1_ally_Russia n1_agree_diff n1_lntrade n1_lnaid) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
595
+ ivreghdfe durdem L.mtech L.lngdpc n1_tivdum_us n1_tivdum_russia n1_tivdum_fuk n1_ally_USA n1_ally_Russia n1_agree_diff n1_lntrade n1_lnaid if L.ivbaseline!=., robust cluster(country) absorb(year durableregime_no)
596
+ local xunits=e(dof_table)[2,1]
597
+ outreg2 using "jtg_tables/appendix/tab_d9_ir_neighbors.tex", append excel keep(L.mtech L.lngdpc n1_tivdum_us n1_tivdum_russia n1_tivdum_fuk n1_ally_USA n1_ally_Russia n1_agree_diff n1_lntrade n1_lnaid) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
598
+ restore
599
+ ////////////////////////////////////////////////////////////////////////////////
600
+
601
+
602
+ ////////////////////////////////////////////////////////////////////////////////
603
+ // TABLE D10: REGIONAL HETEROGENEITY
604
+ ////////////////////////////////////////////////////////////////////////////////
605
+ preserve
606
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
607
+ drop if year>2010
608
+
609
+ ivreghdfe durdem L.mtech L.lngdpc if continent!="Africa" & L.ivbaseline!=., robust cluster(countryno) absorb(year durableregime_no)
610
+ local xunits=e(dof_table)[2,1]
611
+ outreg2 using "jtg_tables/appendix/tab_d10_continents.tex", replace keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
612
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc if continent!="Africa" & L.ivbaseline!=., robust cluster(countryno) absorb(year durableregime_no) first
613
+ local xunits=e(dof_table)[2,1]
614
+ outreg2 using "jtg_tables/appendix/tab_d10_continents.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf arfp) addstat(Autocracy spells, `xunits')
615
+
616
+ ivreghdfe durdem L.mtech L.lngdpc if continent!="Americas" & L.ivbaseline!=., robust cluster(countryno) absorb(year durableregime_no)
617
+ local xunits=e(dof_table)[2,1]
618
+ outreg2 using "jtg_tables/appendix/tab_d10_continents.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
619
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc if continent!="Americas" & L.ivbaseline!=., robust cluster(countryno) absorb(year durableregime_no) first
620
+ local xunits=e(dof_table)[2,1]
621
+ outreg2 using "jtg_tables/appendix/tab_d10_continents.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf arfp) addstat(Autocracy spells, `xunits')
622
+
623
+ ivreghdfe durdem L.mtech L.lngdpc if continent!="Asia and Oceania" & L.ivbaseline!=., robust cluster(countryno) absorb(year durableregime_no)
624
+ local xunits=e(dof_table)[2,1]
625
+ outreg2 using "jtg_tables/appendix/tab_d10_continents.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
626
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc if continent!="Asia and Oceania" & L.ivbaseline!=., robust cluster(countryno) absorb(year durableregime_no) first
627
+ local xunits=e(dof_table)[2,1]
628
+ outreg2 using "jtg_tables/appendix/tab_d10_continents.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf arfp) addstat(Autocracy spells, `xunits')
629
+
630
+ ivreghdfe durdem L.mtech L.lngdpc if continent!="Europe" & L.ivbaseline!=., robust cluster(countryno) absorb(year durableregime_no)
631
+ local xunits=e(dof_table)[2,1]
632
+ outreg2 using "jtg_tables/appendix/tab_d10_continents.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
633
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc if continent!="Europe" & L.ivbaseline!=., robust cluster(countryno) absorb(year durableregime_no) first
634
+ local xunits=e(dof_table)[2,1]
635
+ outreg2 using "jtg_tables/appendix/tab_d10_continents.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf arfp) addstat(Autocracy spells, `xunits')
636
+
637
+ egen contno=group(continent)
638
+ gen decade_fe=floor(year/10)
639
+
640
+ ivreghdfe durdem L.mtech L.lngdpc if L.ivbaseline!=., robust cluster(country) absorb(decade_fe##contno durableregime_no year) first
641
+ local xunits=e(dof_table)[2,1]
642
+ outreg2 using "jtg_tables/appendix/tab_d10_continents.tex", append keep(L.mtech L.lngdpc) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
643
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc , robust cluster(country) absorb(decade_fe##contno durableregime_no year) first
644
+ local xunits=e(dof_table)[2,1]
645
+ outreg2 using "jtg_tables/appendix/tab_d10_continents.tex", append excel keep(L.mtech L.lngdpc) bdec(2) dec(2) e(model rkf arfp) addstat(Autocracy spells, `xunits')
646
+
647
+ restore
648
+ ////////////////////////////////////////////////////////////////////////////////
649
+
650
+
651
+
652
+
653
+
654
+ ////////////////////////////////////////////////////////////////////////////////
655
+ // TABLE D11: ALTERNATIVE INSTRUMENTS
656
+ ////////////////////////////////////////////////////////////////////////////////
657
+ preserve
658
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
659
+ drop if year>2010
660
+
661
+ *Col 1: Including neighbors
662
+ ivreghdfe durdem (L.mtech=L.mtech_iv_n1) L.lngdpc , robust cluster(countryno) absorb(year durableregime_no)
663
+ local xunits=e(dof_table)[2,1]
664
+ outreg2 using "jtg_tables/appendix/tab_d11_alt_instruments.tex", replace keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
665
+
666
+ *Col 2: ex neighbors 500 km apart
667
+ ivreghdfe durdem (L.mtech=L.mtech_iv_n2_500) L.lngdpc , robust cluster(countryno) absorb(year durableregime_no)
668
+ local xunits=e(dof_table)[2,1]
669
+ outreg2 using "jtg_tables/appendix/tab_d11_alt_instruments.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
670
+
671
+ *Col 3: ex neighbors 750 km apart
672
+ ivreghdfe durdem (L.mtech=L.mtech_iv_n2_750) L.lngdpc , robust cluster(countryno) absorb(year durableregime_no)
673
+ local xunits=e(dof_table)[2,1]
674
+ outreg2 using "jtg_tables/appendix/tab_d11_alt_instruments.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
675
+
676
+ *Col 4: ex neighbors 1000 km apart
677
+ ivreghdfe durdem (L.mtech=L.mtech_iv_n2_1000) L.lngdpc , robust cluster(countryno) absorb(year durableregime_no)
678
+ local xunits=e(dof_table)[2,1]
679
+ outreg2 using "jtg_tables/appendix/tab_d11_alt_instruments.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
680
+
681
+ *Col 5: Population weight in IV
682
+ ivreghdfe durdem (L.mtech=L.mtech_iv_n2_pop) L.lngdpc , robust cluster(countryno) absorb(year durableregime_no)
683
+ local xunits=e(dof_table)[2,1]
684
+ outreg2 using "jtg_tables/appendix/tab_d11_alt_instruments.tex", append keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
685
+
686
+ *Col 6: Acemoglu et al style IV
687
+ ivreghdfe durdem (L.mtech =L.mtech_iv_ANRR) L.lngdpc , robust cluster(country) absorb(year durableregime_no)
688
+ local xunits=e(dof_table)[2,1]
689
+ outreg2 using "jtg_tables/appendix/tab_d11_alt_instruments.tex", append excel keep(L.mtech L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
690
+
691
+ restore
692
+ ////////////////////////////////////////////////////////////////////////////////
693
+
694
+
695
+ ////////////////////////////////////////////////////////////////////////////////
696
+ // TABLE D12: ROBUSTNESS TO INTERNATIONAL DIFFUSION OF DEMOCRACY
697
+ ////////////////////////////////////////////////////////////////////////////////
698
+ preserve
699
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
700
+ drop if year>2010
701
+
702
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc n1_democracy_avg n2_democracy_avg , robust cluster(country) absorb(year durableregime_no)
703
+ local xunits=e(dof_table)[2,1]
704
+ outreg2 using "jtg_tables/appendix/tab_d12_democratic_diffusion.tex", replace keep(L.mtech L.lngdpc n1_democracy_avg n2_democracy_avg ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
705
+
706
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc distw1_democracy, robust cluster(country) absorb(year durableregime_no)
707
+ local xunits=e(dof_table)[2,1]
708
+ outreg2 using "jtg_tables/appendix/tab_d12_democratic_diffusion.tex", append keep(L.mtech L.lngdpc n1_democracy_avg n2_democracy_avg distw1_democracy ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
709
+
710
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc distw1_democratization, robust cluster(country) absorb(year durableregime_no)
711
+ local xunits=e(dof_table)[2,1]
712
+ outreg2 using "jtg_tables/appendix/tab_d12_democratic_diffusion.tex", append keep(L.mtech L.lngdpc n1_democracy_avg n2_democracy_avg distw1_democracy distw1_democratization) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
713
+
714
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc n1_democracy_avg n2_democracy_avg distw1_democracy distw1_democratization, robust cluster(country) absorb(year durableregime_no)
715
+ local xunits=e(dof_table)[2,1]
716
+ outreg2 using "jtg_tables/appendix/tab_d12_democratic_diffusion.tex", append keep(L.mtech L.lngdpc n1_democracy_avg n2_democracy_avg distw1_democracy distw1_democratization) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
717
+
718
+ ivreghdfe durdem L.mtech L.lngdpc n1_democracy_avg n2_democracy_avg distw1_democracy distw1_democratization if L.ivbaseline!=., robust cluster(country) absorb(year durableregime_no)
719
+ local xunits=e(dof_table)[2,1]
720
+ outreg2 using "jtg_tables/appendix/tab_d12_democratic_diffusion.tex", append keep(L.mtech L.lngdpc n1_democracy_avg n2_democracy_avg distw1_democracy distw1_democratization) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
721
+
722
+
723
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc n1_auto_resistance_3y n2_auto_resistance_3y if year>=1945 & year<=2006 , robust cluster(country) absorb(year durableregime_no)
724
+ local xunits=e(dof_table)[2,1]
725
+ outreg2 using "jtg_tables/appendix/tab_d12_democratic_diffusion.tex", append keep(L.mtech L.lngdpc n1_democracy_avg n2_democracy_avg distw1_democracy distw1_democratization n1_auto_resistance_3y n2_auto_resistance_3y) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
726
+
727
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc n1_democracy_avg n2_democracy_avg distw1_democracy distw1_democratization n1_auto_resistance_3y n2_auto_resistance_3y if year>=1945 & year<=2006, robust cluster(country) absorb(year durableregime_no)
728
+ local xunits=e(dof_table)[2,1]
729
+ outreg2 using "jtg_tables/appendix/tab_d12_democratic_diffusion.tex", append keep(L.mtech L.lngdpc n1_democracy_avg n2_democracy_avg distw1_democracy distw1_democratization n1_auto_resistance_3y n2_auto_resistance_3y) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
730
+
731
+ ivreghdfe durdem L.mtech L.lngdpc n1_democracy_avg n2_democracy_avg distw1_democracy distw1_democratization n1_auto_resistance_3y n2_auto_resistance_3y if year>=1945 & year<=2006 & L.ivbaseline!=., robust cluster(country) absorb(year durableregime_no)
732
+ local xunits=e(dof_table)[2,1]
733
+ outreg2 using "jtg_tables/appendix/tab_d12_democratic_diffusion.tex", append excel keep(L.mtech L.lngdpc n1_democracy_avg n2_democracy_avg distw1_democracy distw1_democratization n1_auto_resistance_3y n2_auto_resistance_3y) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
734
+
735
+ restore
736
+ ////////////////////////////////////////////////////////////////////////////////
737
+
738
+
739
+ ////////////////////////////////////////////////////////////////////////////////
740
+ // TABLE D13: ROBUSTNESS TO OTHER INTERNATIONAL SPILL-OVERS
741
+ ////////////////////////////////////////////////////////////////////////////////
742
+ preserve
743
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
744
+ drop if year>2010
745
+
746
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc n1_lngdp n2_lngdp, robust cluster(country) absorb(year durableregime_no)
747
+ local xunits=e(dof_table)[2,1]
748
+ outreg2 using "jtg_tables/appendix/tab_d13_other_intl_diffusion.tex", replace keep(L.mtech L.lngdpc n1_lngdp n2_lngdp) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
749
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc n1_interstatewar_3y n2_interstatewar_3y, robust cluster(country) absorb(year durableregime_no)
750
+ local xunits=e(dof_table)[2,1]
751
+ outreg2 using "jtg_tables/appendix/tab_d13_other_intl_diffusion.tex", append keep(L.mtech L.lngdpc n1_interstatewar_3y n2_interstatewar_3y ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
752
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc n1_civilwar_3y n2_civilwar_3y , robust cluster(country) absorb(year durableregime_no)
753
+ local xunits=e(dof_table)[2,1]
754
+ outreg2 using "jtg_tables/appendix/tab_d13_other_intl_diffusion.tex", append keep(L.mtech L.lngdpc n1_civilwar_3y n2_civilwar_3y) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
755
+
756
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc distw1_lngdp distw1_interstatewar distw1_civilwar, robust cluster(country) absorb(year durableregime_no)
757
+ local xunits=e(dof_table)[2,1]
758
+ outreg2 using "jtg_tables/appendix/tab_d13_other_intl_diffusion.tex", append keep(L.mtech L.lngdpc distw1_lngdp distw1_interstatewar distw1_civilwar) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
759
+
760
+ ivreghdfe durdem (L.mtech=L.ivbaseline) L.lngdpc n1_lngdp n2_lngdp n1_interstatewar_3y n2_interstatewar_3y n1_civilwar_3y n2_civilwar_3y distw1_lngdp distw1_interstatewar distw1_civilwar , robust cluster(country) absorb(year durableregime_no)
761
+ local xunits=e(dof_table)[2,1]
762
+ outreg2 using "jtg_tables/appendix/tab_d13_other_intl_diffusion.tex", append keep(L.mtech L.lngdpc n1_lngdp n2_lngdp n1_interstatewar_3y n2_interstatewar_3y n1_civilwar_3y n2_civilwar_3y distw1_lngdp distw1_interstatewar distw1_civilwar ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
763
+
764
+ ivreghdfe durdem L.mtech L.lngdpc n1_lngdp n2_lngdp n1_interstatewar_3y n2_interstatewar_3y n1_civilwar_3y n2_civilwar_3y distw1_lngdp distw1_interstatewar distw1_civilwar if L.ivbaseline!=., robust cluster(country) absorb(year durableregime_no)
765
+ local xunits=e(dof_table)[2,1]
766
+ outreg2 using "jtg_tables/appendix/tab_d13_other_intl_diffusion.tex", append excel keep(L.mtech L.lngdpc n1_lngdp n2_lngdp n1_interstatewar_3y n2_interstatewar_3y n1_civilwar_3y n2_civilwar_3y distw1_lngdp distw1_interstatewar distw1_civilwar ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
767
+
768
+ restore
769
+ ////////////////////////////////////////////////////////////////////////////////
770
+
771
+
772
+
773
+
774
+ ////////////////////////////////////////////////////////////////////////////////
775
+ // TABLE D14: REDUCED FORM ESTIMATES
776
+ ////////////////////////////////////////////////////////////////////////////////
777
+ preserve
778
+
779
+ drop if country=="United Kingdom" | country=="France" | country=="Germany" | country=="United States" | country=="Russian Federation"
780
+ drop if year>2010
781
+
782
+ *Col 1: baseline
783
+ ivreghdfe durdem L.ivbaseline L.lngdpc if L.mtech!=., robust cluster(country) absorb(year durableregime_no)
784
+ local xunits=e(dof_table)[2,1]
785
+ outreg2 using "jtg_tables/appendix/tab_d14_reduced_form.tex", replace keep(L.ivbaseline L.lngdpc ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
786
+ *Col 2: democratization among neighbors
787
+ ivreghdfe durdem L.ivbaseline L.lngdpc n1_democratization_3y n2_democratization_3y if L.mtech!=., robust cluster(country) absorb(year durableregime_no)
788
+ local xunits=e(dof_table)[2,1]
789
+ outreg2 using "jtg_tables/appendix/tab_d14_reduced_form.tex", append keep(L.ivbaseline L.lngdpc n1_democratization_3y n2_democratization_3y ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
790
+ *Col 3: democracy in region (Acemoglu et al)
791
+ ivreghdfe durdem L.ivbaseline L.lngdpc democracy_iv_ANRR if L.mtech!=., robust cluster(country) absorb(year durableregime_no)
792
+ local xunits=e(dof_table)[2,1]
793
+ outreg2 using "jtg_tables/appendix/tab_d14_reduced_form.tex", append keep(L.ivbaseline L.lngdpc democracy_iv_ANRR) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
794
+ *Col 4: distance-weighted democracy in autocratix peers
795
+ ivreghdfe durdem L.ivbaseline L.lngdpc democracy_iv_ANRR_distw if L.mtech!=., robust cluster(country) absorb(year durableregime_no)
796
+ local xunits=e(dof_table)[2,1]
797
+ outreg2 using "jtg_tables/appendix/tab_d14_reduced_form.tex", append keep(L.ivbaseline L.lngdpc democracy_iv_ANRR_distw ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
798
+ *Col 5: combined
799
+ ivreghdfe durdem L.ivbaseline L.lngdpc n1_democratization_3y n2_democratization_3y democracy_iv_ANRR democracy_iv_ANRR_distw if L.mtech!=., robust cluster(country) absorb(year durableregime_no)
800
+ local xunits=e(dof_table)[2,1]
801
+ outreg2 using "jtg_tables/appendix/tab_d14_reduced_form.tex", append excel keep(L.ivbaseline L.lngdpc L.lngdpc n1_democratization_3y n2_democratization_3y democracy_iv_ANRR democracy_iv_ANRR_distw ) bdec(2) dec(2) e(model rkf) addstat(Autocracy spells, `xunits')
802
+
803
+ restore
804
+ ////////////////////////////////////////////////////////////////////////////////
805
+
806
+
807
+
808
+ ////////////////////////////////////////////////////////////////////////////////
809
+ // TABLE D15: POSTWAR ARMS TRADE SUMMARY STATISTICS
810
+ ////////////////////////////////////////////////////////////////////////////////
811
+
812
+ preserve
813
+ keep if year==2010
814
+ collapse (sum) tivakk_us tivakk_russia tivakk_france tivakk_uk tivakk_any
815
+ replace tivakk_us=round(tivakk_us/tivakk_any*100,0.1)
816
+ replace tivakk_russia=round(tivakk_russia/tivakk_any*100,0.1)
817
+ replace tivakk_france=round(tivakk_france/tivakk_any*100,0.1)
818
+ replace tivakk_uk=round(tivakk_uk/tivakk_any*100,0.1)
819
+ drop tivakk_any
820
+ sum tivakk*
821
+ gen panel="Panel A"
822
+ gen buyer="Global"
823
+ rename tivakk_* *
824
+ order panel buyer us russia uk france
825
+ save "jtg_tables/appendix/tab_d15_arms_trade.dta", replace
826
+ restore
827
+
828
+ preserve
829
+ collapse (sum) tivdum* tiv_*, by(region)
830
+ keep *_france *_uk *_us *_russia region
831
+
832
+ local countries "us russia uk france"
833
+ foreach x of local countries {
834
+ egen tiv_`x'_sum=sum(tiv_`x')
835
+ replace tiv_`x'=round(tiv_`x'/tiv_`x'_sum*100,0.1)
836
+ egen tivdum_`x'_sum=sum(tivdum_`x')
837
+ replace tivdum_`x'=round(tivdum_`x'/tivdum_`x'_sum*100,0.1)
838
+
839
+ rename tivdum_`x' deal_`x'
840
+ }
841
+
842
+ drop *_sum
843
+
844
+ rename deal_* *1
845
+ rename tiv_* *2
846
+
847
+ reshape long us russia uk france, i(region) j(panel) string
848
+
849
+ replace panel="Panel B" if panel=="1"
850
+ replace panel="Panel C" if panel=="2"
851
+
852
+ rename region buyer
853
+ drop if buyer==""
854
+ order panel buyer us russia uk france
855
+
856
+ append using "jtg_tables/appendix/tab_d15_arms_trade.dta"
857
+ sort panel buyer
858
+ save "jtg_tables/appendix/tab_d15_arms_trade.dta", replace
859
+ restore
860
+ ////////////////////////////////////////////////////////////////////////////////
861
+
862
+
41/replication_package/ReadMe.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5186db22645d83e98b759682c6d3c2450609d2158da647bb7e083417a11d3491
3
+ size 276690
41/replication_package/jtg_data/jtg_main.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9a2f2b123071cd65dd56f6f1a6aebb830cfdd1bdb90eaa6f229c5a6cec3e539
3
+ size 14278945
41/replication_package/jtg_data/jtg_main.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b3a4d861c22d4c1b79fe75ea78d235155eeed1a509887067f0ac7d20deb0114
3
+ size 35331291
41/replication_package/jtg_data_raw/BoixMillerRosato-v4.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5072f6724c99b8552ecbe9634a504b7bb7eed4ce278ad52d90025a782837e09
3
+ size 784424
41/replication_package/jtg_data_raw/BoixMillerRosato-v4.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bac9cf824bb71b2da99128760ab420dc476ca7292177d6ccde39a22e80471f60
3
+ size 1900298
41/replication_package/jtg_data_raw/COW_NMC-60-abridged.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:989920cc06ccb652bf8b0c537f78220463ecfe14c41295a8876e9f263e78f323
3
+ size 905231
41/replication_package/jtg_data_raw/COW_NMC-60-abridged.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d117c3180dc129a5133b8a3f894f89a0ed2ac21b491f92808c829e687b5d068
3
+ size 729301
41/replication_package/jtg_data_raw/COW_alliances.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af97fe12e9b5f7e60a90c1194c2cfaa22265e33036f92555affca58638de6b90
3
+ size 5701632
41/replication_package/jtg_data_raw/COW_alliances.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba1272dd1ef1eb61fe2b521e27387ad7d76690da16a71d1aab368e6f6814e589
3
+ size 8306345
41/replication_package/jtg_data_raw/COW_contiguity_2010.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f107e6b6388f7016c29e041996ca1a38cb391497bf81aeaae0ef2ef467b4756e
3
+ size 38178
41/replication_package/jtg_data_raw/COW_contiguity_2010.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b086d4a19416b347a4776d6967e8ddc1cc967ca39247a7ece7762cce97dc3f95
3
+ size 28817
41/replication_package/jtg_data_raw/COW_interstate_wars.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c36e66f08eab98771a4fbe33a5515353b9c9470468af4e5b7d7d369bbe658f0
3
+ size 32037
41/replication_package/jtg_data_raw/COW_interstate_wars.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e44c7066bbbca97edfedef95bf458f240af7f95852b17f24d5ee4144e940cc25
3
+ size 38576
41/replication_package/jtg_data_raw/COW_intrastatewar_v51.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80b38200bf820832fb3fbf13f17fcb2ca38f6b573df8e06c37ab33dbc9afa271
3
+ size 106354
41/replication_package/jtg_data_raw/COW_intrastatewar_v51.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34351c0ab909c04b12d6eb2f1e746e371f888872b66af36bfb86cd3bb36c3deb
3
+ size 130013
41/replication_package/jtg_data_raw/COW_militarized_disputes.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50524ea9f4662168b02c893f44a61b5576710c24f32e1653d15b72e420bab07c
3
+ size 408535
41/replication_package/jtg_data_raw/COW_militarized_disputes.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:842fde0dddb74786337928f640b1409ae67d40dcf250d63a266b0fc16d4b932d
3
+ size 206906
41/replication_package/jtg_data_raw/COW_trade_4.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e30c35565da5d3ac98ed982c352a6d01949b37b6ae9412b3a9513524e4dff601
3
+ size 689137
41/replication_package/jtg_data_raw/COW_trade_4.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62a6e1f49bf8173e0732b9e4ea12b711d0d03e39976f198d6d94b66254adcc2d
3
+ size 929835
41/replication_package/jtg_data_raw/Polity_IV_2016.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60fa691f209f1a4967eef1b70aa07fa425c903adfa861a1e7ee097f928979f5b
3
+ size 1418698
41/replication_package/jtg_data_raw/Polity_IV_2016.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1943c7d5e6f6bfebc5a2ff63e0d17459ee64d037908726fe3bd92dec68ab4b3
3
+ size 1212189
41/replication_package/jtg_data_raw/UN_agreement_extract.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64816df3469a5121e173ca1c3c13a5fe903d45901d66d86e03abbbea9df06d25
3
+ size 1421234
41/replication_package/jtg_data_raw/UN_agreement_extract.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ff67fd52d6cc32493dac6723dc4bfc4cbdf831ace5fb33023783aa19a8b7f70
3
+ size 1519846
41/replication_package/jtg_data_raw/VDem10_extract.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:681cbd4e54f8965542ef7f5340e6ecb4d7c0aed7f5534dcc1bfc3335f1c67c57
3
+ size 2111227
41/replication_package/jtg_data_raw/VDem10_extract.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9746150290417431d9d391abb09ebf0baca24e6eac6049c99090e2b448e6253a
3
+ size 5230752
41/replication_package/jtg_data_raw/aid_dac_countries.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5cb8e4396f836e10f35242d5a25fa60618f92f1e204052a334e845df2529ecc9
3
+ size 1118992
41/replication_package/jtg_data_raw/aid_dac_countries.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c748bb7f1173424fe89b70e3cce806346c57ba1f20f309fe24b349d85e0b493
3
+ size 1258612
41/replication_package/jtg_data_raw/country_codes.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0385930636669ae5f0a587b95b0cc949566aa6a46b6955622fcc925649ba5432
3
+ size 22815
41/replication_package/jtg_data_raw/country_codes.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ec8afbe9c2d34ab642e9b66738aed97e6e55bec0e99ef444acad65ee96c599b
3
+ size 129756
41/replication_package/jtg_data_raw/dist_cepii.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:73f517478fb95730130264b075c487b047741bb430ed5c5d9d58a9cb569f8f6d
3
+ size 3996031
41/replication_package/jtg_data_raw/dist_cepii.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3c7fa0231c2f36707ad082a847ab011855603e6f9deaad122208b665e3440d2
3
+ size 1934601
41/replication_package/jtg_data_raw/hyde_pop.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a0af1ffc30e513a7f219df05d7423d2933344ee1282b19076bc0f8b001645fa
3
+ size 273041
41/replication_package/jtg_data_raw/hyde_pop.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:410994558cb0fef946dcbbae0e66d85bd5e0f44ae30c814778090920c5bb19a4
3
+ size 185170
41/replication_package/jtg_data_raw/maddison_gdp.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f4bc90cffad83e040eb680f92dcec61818e70e42bbc5f15754790f1b82c5b22
3
+ size 947025
41/replication_package/jtg_data_raw/maddison_gdp.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13a8f3c54290a59d5f1cb208b60055f561104fce6f919b470404a7b40475f3d8
3
+ size 1378770
41/replication_package/jtg_data_raw/mtech_raw.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb60bbafdbf07a97df0e83890512813cba602975ab264eaa63e306c2587a789c
3
+ size 2367029
41/replication_package/jtg_data_raw/mtech_raw.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7efadf26e7af2f518737baeccd972849c3ddaec6343d3c82868efa9ea31354c
3
+ size 10222063
41/replication_package/jtg_data_raw/navco_v2.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ebac81e9926077f9cd14caae1bf8b4db64f9051346a2309209eb11d488d7af4
3
+ size 288682
41/replication_package/jtg_data_raw/navco_v2.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54196435d42c446e03e0b98e0fb0c69ed6402aab560cd52674a4c2dfa6b1c39e
3
+ size 403691
41/replication_package/jtg_data_raw/prices.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02d3b9c4bf871868d97069ffd9eba6e9ccd177ede40c0bd819ef50642add7ff3
3
+ size 151013
41/replication_package/jtg_data_raw/prices.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:847cd171b5f730eede0df11f4ba246c3f3466fa1264cc4c88abbc4d001aa2da4
3
+ size 695004
41/replication_package/jtg_data_raw/sipri_arms_trade.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d9c48c453e887f4f27ec58cfd6317fdbdafc8c31d9b05b4a29d3fbdfb5b8c49
3
+ size 328626
41/replication_package/jtg_data_raw/sipri_arms_trade.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8da4f7b5e4c16cabab573023a16b830069a27184d54864909d09026a313d604
3
+ size 1288733
41/should_reproduce.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddc9c253f84ddb25a7c0605b8905164de6e6fec416fe5add5a7bf1d3b2b4d244
3
+ size 15