anonymous-submission-acl2025 commited on
Commit
a98ffee
·
1 Parent(s): a92978e
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. 104/paper.pdf +3 -0
  2. 104/replication_package/README.docx +3 -0
  3. 104/replication_package/README.pdf +3 -0
  4. 104/replication_package/Replication/Data/EG_Index.dta +3 -0
  5. 104/replication_package/Replication/Data/HuaiYr.dta +3 -0
  6. 104/replication_package/Replication/Data/HunanBattleField.dta +3 -0
  7. 104/replication_package/Replication/Data/HunanCntyYr.dta +3 -0
  8. 104/replication_package/Replication/Data/HunanSurname.dta +3 -0
  9. 104/replication_package/Replication/Data/NationalCntyYr.dta +3 -0
  10. 104/replication_package/Replication/Data/OfficialYear.dta +3 -0
  11. 104/replication_package/Replication/Data/ProvGovernors.dta +3 -0
  12. 104/replication_package/Replication/Data/ThreeRivers.dta +3 -0
  13. 104/replication_package/Replication/Programs/All_in_One.do +217 -0
  14. 104/replication_package/Replication/Programs/Appendix_Figure_A5.do +34 -0
  15. 104/replication_package/Replication/Programs/Appendix_Figure_C1.do +277 -0
  16. 104/replication_package/Replication/Programs/Appendix_Table_A3.do +19 -0
  17. 104/replication_package/Replication/Programs/Appendix_Table_B1_I.do +37 -0
  18. 104/replication_package/Replication/Programs/Appendix_Table_B1_II.do +44 -0
  19. 104/replication_package/Replication/Programs/Appendix_Table_B1_III.do +181 -0
  20. 104/replication_package/Replication/Programs/Appendix_Table_B1_IV.do +103 -0
  21. 104/replication_package/Replication/Programs/Appendix_Table_B2.do +87 -0
  22. 104/replication_package/Replication/Programs/Appendix_Table_B4.do +62 -0
  23. 104/replication_package/Replication/Programs/Appendix_Table_B5_I.do +60 -0
  24. 104/replication_package/Replication/Programs/Appendix_Table_B5_II.do +47 -0
  25. 104/replication_package/Replication/Programs/Appendix_Table_B6_I.do +134 -0
  26. 104/replication_package/Replication/Programs/Appendix_Table_B6_II.do +56 -0
  27. 104/replication_package/Replication/Programs/Appendix_Table_C2.do +79 -0
  28. 104/replication_package/Replication/Programs/Appendix_Table_C3.do +68 -0
  29. 104/replication_package/Replication/Programs/Appendix_Table_C4.do +72 -0
  30. 104/replication_package/Replication/Programs/Appendix_Table_C5.do +69 -0
  31. 104/replication_package/Replication/Programs/Appendix_Table_C6.do +53 -0
  32. 104/replication_package/Replication/Programs/Appendix_Table_C7.do +72 -0
  33. 104/replication_package/Replication/Programs/Figure_3.do +41 -0
  34. 104/replication_package/Replication/Programs/Figure_4.do +285 -0
  35. 104/replication_package/Replication/Programs/Figure_5.do +52 -0
  36. 104/replication_package/Replication/Programs/Figure_6.do +284 -0
  37. 104/replication_package/Replication/Programs/Figure_7.do +84 -0
  38. 104/replication_package/Replication/Programs/Figure_8.do +39 -0
  39. 104/replication_package/Replication/Programs/Table_1.do +30 -0
  40. 104/replication_package/Replication/Programs/Table_2.do +141 -0
  41. 104/replication_package/Replication/Programs/Table_3.do +138 -0
  42. 104/replication_package/Replication/Programs/Table_4.do +126 -0
  43. 104/replication_package/Replication/Programs/Table_5.do +73 -0
  44. 104/replication_package/Replication/Programs/Table_6.do +78 -0
  45. 104/replication_package/Replication/Results/AllCnty_hXconn_All0_ctrl_0.gph +3 -0
  46. 104/replication_package/Replication/Results/AllCnty_hXconn_all0_yearly_A_0.gph +3 -0
  47. 104/replication_package/Replication/Results/AllCnty_hXconn_all0_yearly_Entry_0.gph +3 -0
  48. 104/replication_package/Replication/Results/AllCnty_hXconn_all0_yearly_Rentry_0.gph +3 -0
  49. 104/replication_package/Replication/Results/AllCnty_hunan_conn_All0_ctrl_0.gph +3 -0
  50. 104/replication_package/Replication/Results/AllCnty_nhunan_conn_All0_ctrl_0.gph +3 -0
104/paper.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a097a820f70993f855e1ffa091627a5342e415805e81ac00ca1c3ed5e6aa6c3b
3
+ size 1195648
104/replication_package/README.docx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f045608f20d814503c162d7bc031b8193e13e0bd05b0f41d02b4e36e8c3c3489
3
+ size 32770
104/replication_package/README.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14e6a3a30c21f87982063721bf4dd959bbe4f1e2a8bc745a637ec47273b97c4a
3
+ size 196981
104/replication_package/Replication/Data/EG_Index.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a80b641adbc475f58c7743e556f2060372e10b59fe37ea60c7a5b0944a3b5c5
3
+ size 6753508
104/replication_package/Replication/Data/HuaiYr.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb1e943dbd9833e9358c4042225655a3b47338a4d554d9b9fddb0d1af32721d5
3
+ size 253518
104/replication_package/Replication/Data/HunanBattleField.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:572b72f53cb4876360b32f3d4235712c7d8e2b90aebde97d6f79dc1db463e04d
3
+ size 5537412
104/replication_package/Replication/Data/HunanCntyYr.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6ce196bdbf1a4e65d2432b77269dcf6c0d972ac2b91ee6173c64e1ed0e0bc5f
3
+ size 276552
104/replication_package/Replication/Data/HunanSurname.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddf6a8e8684082ab9d546a319ff828800a059095a5cbb89c0b07999021aab32c
3
+ size 32013848
104/replication_package/Replication/Data/NationalCntyYr.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:706d758e54420fe9d4be484050bf6f384370ddb425b7f5f6f33c7d774e6f4376
3
+ size 53392090
104/replication_package/Replication/Data/OfficialYear.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4133b73de265efc5620ea73dfd2b295a97d4658ca430dd1b1b1772190d99a2e1
3
+ size 7871
104/replication_package/Replication/Data/ProvGovernors.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9baff1bac6dfba19e6e21fa5c59d6112c590be88296726deeed9ad83e26c85d7
3
+ size 15353
104/replication_package/Replication/Data/ThreeRivers.dta ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77b53c04e8d53e7ef9b9dac96316c87c05a108c5b978c56f4c5eb238d667d5dc
3
+ size 25882
104/replication_package/Replication/Programs/All_in_One.do ADDED
@@ -0,0 +1,217 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ************************************
2
+ ************************************
3
+ ************************************ This dofile could generate key tables and figures in the paper
4
+ ************************************ in the order which they are cited in the text
5
+ ************************************
6
+ ************************************
7
+
8
+ clear
9
+
10
+
11
+ *********
12
+ ********* Change directory to Replication\
13
+ *********
14
+ cd D:\Dropbox\Xiangjun\FinalFiles\Replication\
15
+
16
+
17
+
18
+
19
+ log using "Results\All_in_One.log", replace
20
+
21
+ ********************************************************************************
22
+
23
+ ******** Table 1: Summary Statistics
24
+
25
+
26
+ do Programs\Table_1.do
27
+
28
+
29
+ ******** Table A3: Elite Connections and Other Characteristics cross Counties
30
+
31
+
32
+ do Programs\Appendix_Table_A3.do
33
+
34
+
35
+ ******** Figure 3. Motivational Evidence on Elite Networks and Soldier Deaths: Raw Data
36
+
37
+
38
+ do Programs\Figure_3.do
39
+
40
+
41
+ ******** Figure A.5. II. Number of National-level Offices and Officials Over Time
42
+
43
+
44
+ do Programs\Appendix_Figure_A5.do
45
+
46
+
47
+ ******** Table 2. The Impact of Elite Connections on Soldier Deaths: DD Estimates
48
+
49
+
50
+ do Programs\Table_2.do
51
+
52
+
53
+ ******* Table B.1. I. The Impact of Elite Connections on Soldier Deaths: Checking Outliers
54
+
55
+
56
+ do Programs\Appendix_Table_B1_I.do
57
+
58
+
59
+ ******* Table B.1. II. The Impact of Elite Connections on Soldier Deaths
60
+
61
+
62
+ do Programs\Appendix_Table_B1_II.do
63
+
64
+
65
+ ******* Table B.1. III. The Impact of Elite Connections on Soldier Deaths: Spatial Clustering S.E.
66
+
67
+
68
+ do Programs\Appendix_Table_B1_III.do
69
+
70
+
71
+ ******* Table B.1. IV. The Impact of Elite Connections on Soldier Deaths: Controls X Year FE
72
+
73
+
74
+ do Programs\Appendix_Table_B1_IV.do
75
+
76
+
77
+ ******* Table B.2. Yearly Effects of Elite Connections
78
+
79
+
80
+ do Programs\Appendix_Table_B2.do
81
+
82
+
83
+ ******* Table 3. The Impact of Elite Connections on Soldier Deaths: Types of Links
84
+
85
+
86
+ do Programs\Table_3.do
87
+
88
+
89
+ ******* Table 4. The Impact of Elite Connections on Soldier Deaths: Placebo Networks
90
+
91
+
92
+ do Programs\Table_4.do
93
+
94
+
95
+ ******* Figure 4. The Impact of Elite Connections on Soldier Deaths: Year-by-Year Estimates
96
+
97
+
98
+ do Programs\Figure_4.do
99
+
100
+
101
+ ******* Table B.4. The Impact of Elite Connections on Soldier Deaths: Controlling for Physical Distance to Zeng
102
+
103
+
104
+ do Programs\Appendix_Table_B4.do
105
+
106
+
107
+ ******* Table B.5. I. Elite Networks and Data Missing
108
+
109
+
110
+ do Programs\Appendix_Table_B5_I.do
111
+
112
+
113
+ ******* Table B.5. II. The Impact of Elite Connections on Soldier Deaths: Degree-Holders vs. Commoners
114
+
115
+
116
+ do Programs\Appendix_Table_B5_II.do
117
+
118
+
119
+ ******* Table B.6. I. What Does the Number of Soldier Deaths Measure?
120
+
121
+
122
+ do Programs\Appendix_Table_B6_I.do
123
+
124
+
125
+ ******* Table B.6. II. The Battle of Three Rivers vs. Other Battles in 1858
126
+
127
+
128
+ do Programs\Appendix_Table_B6_II.do
129
+
130
+
131
+ ******** Table 5. The Impact of Elite Connections on Elite Power: DD and DDD Estimates
132
+
133
+
134
+ do Programs\Table_5.do
135
+
136
+
137
+ ******** Figure 5. Motivational Evidence for the Power Effect: National-level Offices by Connection-Province
138
+
139
+
140
+ do Programs\Figure_5.do
141
+
142
+
143
+ ******** Table 6. The Power Effect: the Role of Soldier Deaths
144
+
145
+
146
+ do Programs\Table_6.do
147
+
148
+
149
+ ******** Figure 6. The Dynamics Impacts of Elite Network on National-level Offices
150
+
151
+
152
+ do Programs\Figure_6.do
153
+
154
+
155
+ ******** Figure C.1. Understanding the Fluctuation of the Power Impact
156
+
157
+
158
+ do Programs\Appendix_Figure_C1.do
159
+
160
+
161
+ ******** Table C.2. The Impact of Elite Networks on Elite Power: Inside and Outside the Network
162
+
163
+
164
+ do Programs\Appendix_Table_C2.do
165
+
166
+
167
+ ******** Table C.3. The Impact of Elite Networks on Exam Quotas and Numbers of Jinshi
168
+
169
+
170
+ do Programs\Appendix_Table_C3.do
171
+
172
+
173
+
174
+ ******** Figure 7. National-level Power Distribution and the Contribution of Elite Networks
175
+
176
+
177
+ do Programs\Figure_7.do
178
+
179
+
180
+ ******** Table C.4. The Impact of Elite Networks on Elite Power
181
+ ******** Observation of Zeros in Our Data on National-level Offices
182
+
183
+
184
+ do Programs\Appendix_Table_C4.do
185
+
186
+
187
+ ******** Table C.5. The Impact of Elite Networks and Elite Power: Varying Comparison Provinces
188
+
189
+
190
+ do Programs\Appendix_Table_C5.do
191
+
192
+
193
+ ******** Table C.6. The Impact of Elite Networks and Elite Power: Controlling for Placebo Networks
194
+
195
+
196
+ do Programs\Appendix_Table_C6.do
197
+
198
+
199
+
200
+ *********Table C.7. The Changes in Power Distribution by Decade
201
+
202
+
203
+ do Programs\Appendix_Table_C7.do
204
+
205
+
206
+ ******** Figure 8. The Share of Provincial Officials from Connected Counties in Hunan
207
+
208
+
209
+ do Programs\Figure_8.do
210
+
211
+
212
+
213
+ clear
214
+ log close
215
+
216
+
217
+
104/replication_package/Replication/Programs/Appendix_Figure_A5.do ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ********************************************************************************
2
+ ******** Figure A.5. II. Number of National-level Offices and Officials Over Time
3
+ ********************************************************************************
4
+
5
+ use Data\OfficialYear.dta,clear
6
+
7
+ ********************************************************************************
8
+
9
+ use Data\OfficialYear.dta,clear
10
+
11
+ tsset year
12
+
13
+ keep if year>=1820
14
+ foreach x of varlist tot_ind tot_han_ind tot_senior tot_han_senior {
15
+ gen ma5_`x'=(`x'+l.`x'+l2.`x'+l3.`x'+l4.`x')/5
16
+ }
17
+
18
+
19
+
20
+ twoway (scatter tot_senior year, m(O) msize(small) mc(gs6) xlabel(1820(30)1910)) ///
21
+ (line ma5_tot_senior year, lp(solid) lc(gs2) lw(medium )) ///
22
+ (scatter tot_han_senior year, m(Oh) msize(small) mc(gs6)) ///
23
+ (line ma5_tot_han_senior year, lp(dash) lc(gs2) lw(medium ) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) xtitle(Year) legend(order(1 "Total number" 2 "5-year moving average" 3 "The Han Chinese" 4 "5-year moving average" ) row(2)) title(A: Number of positions) saving(Results\AllPositions_by_Year, replace))
24
+
25
+ twoway (scatter tot_ind year, m(O) msize(small) mc(gs6) xlabel(1820(30)1910)) ///
26
+ (line ma5_tot_ind year, lp(solid) lc(gs2) lw(medium )) ///
27
+ (scatter tot_han_ind year, m(Oh) msize(small) mc(gs6)) ///
28
+ (line ma5_tot_han_ind year, lp(dash) lc(gs2) lw(medium ) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) xtitle(Year) legend(order(1 "Total number" 2 "5-year moving average" 3 "The Han Chinese" 4 "5-year moving average" ) row(2)) title(B: Number of officials) saving(Results\AllOfficials_by_Year, replace))
29
+
30
+
31
+ graph combine Results\AllPositions_by_Year.gph Results\AllOfficials_by_Year.gph, xsize(9) ysize(4.5) graphregion( color(white) ifcolor(white) ilcolor(white) fcolor(white))
32
+ graph export Results\Figure_A5.png, replace
33
+
34
+
104/replication_package/Replication/Programs/Appendix_Figure_C1.do ADDED
@@ -0,0 +1,277 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *********************************************************************************************************
2
+ **** Figure C.1. Yearly effects of connections : Entry vs. Re-entry
3
+ *********************************************************************************************************
4
+
5
+
6
+ use Data\NationalCntyYr.dta,clear
7
+
8
+
9
+
10
+ ********************************************************************************
11
+ ********** gen interactions
12
+
13
+
14
+ gen nhXZenghu_all_invdist=nonhunan*Zenghu_all_invdist
15
+ gen hXZenghu_all_invdist=hunan*Zenghu_all_invdist
16
+
17
+ gen nhXZeng_all0_invdist=nonhunan*Zeng_all0_invdist
18
+ gen hXZeng_all0_invdist=hunan*Zeng_all0_invdist
19
+
20
+
21
+ foreach x of varlist hunan Zenghu_all_invdist Zeng_all0_invdist Zeng_all0_invdist_pc invdist0_L1 invdist0_F1 Zeng_exam0_invdist Zeng_Extraexam_invdist Zeng_BMF_invdist Zeng_juren0_invdist nhXZenghu_all_invdist nhXZeng_all0_invdist hXZenghu_all_invdist hXZeng_all0_invdist{
22
+ gen `x'Xperiod1=`x'*period1
23
+ gen `x'Xperiod2=`x'*period2
24
+ gen `x'Xperiod=`x'*period
25
+
26
+ }
27
+
28
+
29
+ foreach x of varlist lnurbanpop prefcap lnjinshi lncntyquota0 lncntypop lncntyarea mainriv dist2canal lnrice lnwheat dist_nanjing Taiping_route1 {
30
+ gen `x'Xperiod1=`x'*period1
31
+ gen `x'Xperiod2=`x'*period2
32
+ gen `x'Xperiod=`x'*period
33
+
34
+ }
35
+
36
+
37
+ foreach x of varlist lnurbanpop prefcap lnjinshi lncntyquota0 lncntypop lncntyarea mainriv dist2canal lnrice lnwheat dist_nanjing Taiping_route1 {
38
+ gen h`x'Xperiod1=hunan*`x'*period1
39
+ gen h`x'Xperiod2=hunan*`x'*period2
40
+ gen h`x'Xperiod=hunan*`x'*period
41
+ }
42
+
43
+
44
+
45
+
46
+ ********************************************************************************
47
+ ********** gen year dummy & interactions
48
+
49
+
50
+ drop if year==.
51
+ tab year, gen(year)
52
+
53
+
54
+ foreach x of varlist year2-year111 {
55
+ gen hunanX`x'=hunan*`x'
56
+
57
+
58
+ }
59
+
60
+
61
+ ***************************************************************
62
+ foreach x of varlist year2-year111 {
63
+ gen Zeng_all0_invdistX`x'=Zeng_all0_invdist*`x'
64
+ }
65
+
66
+ ********
67
+ foreach x of varlist year2-year111 {
68
+ gen hXZeng_all0_invdistX`x'=hXZeng_all0_invdist*`x'
69
+ }
70
+
71
+
72
+ ********
73
+ foreach x of varlist year2-year111 {
74
+ gen nhXZeng_all0_invdistX`x'=nhXZeng_all0_invdist*`x'
75
+ }
76
+
77
+
78
+ ***************************************************************
79
+ foreach x of varlist year2-year111 {
80
+ gen Zenghu_all_invdistX`x'=Zenghu_all_invdist*`x'
81
+ }
82
+
83
+ ********
84
+ foreach x of varlist year2-year111 {
85
+ gen hXZenghu_all_invdistX`x'=hXZenghu_all_invdist*`x'
86
+ }
87
+
88
+
89
+ ********
90
+ foreach x of varlist year2-year111 {
91
+ gen nhXZenghu_all_invdistX`x'=nhXZenghu_all_invdist*`x'
92
+ }
93
+
94
+
95
+
96
+ ********************************************************************************
97
+
98
+
99
+ reghdfe entry hXZeng_all0_invdistXyear22-hXZeng_all0_invdistXyear111 Zeng_all0_invdistXyear22-Zeng_all0_invdistXyear111 lnurbanpopXperiod-Taiping_route1Xperiod , absorb(year samcntyid ) cluster(prefid )
100
+
101
+
102
+ parmest, saving( Results\ConnectionOnEntry_all0_yearly_0, replace)
103
+
104
+
105
+ reghdfe reentry hXZeng_all0_invdistXyear22-hXZeng_all0_invdistXyear111 Zeng_all0_invdistXyear22-Zeng_all0_invdistXyear111 lnurbanpopXperiod-Taiping_route1Xperiod , absorb(year samcntyid ) cluster(prefid )
106
+
107
+
108
+ parmest, saving( Results\ConnectionOnRentry_all0_yearly_0, replace)
109
+
110
+
111
+
112
+
113
+ preserve
114
+
115
+ **************
116
+
117
+ use Results\ConnectionOnSenior_all0_yearly_02, clear
118
+
119
+
120
+ gen i=_n
121
+ keep if i<=91
122
+ gen time=i
123
+
124
+
125
+ gen zero=0
126
+ label var zero "the effect = 0"
127
+ label var estimate "the coefficent of logged total deaths"
128
+
129
+ keep time max95 min95 time estimate zero
130
+
131
+
132
+ replace time=1820+time
133
+ replace time=1820 if time==1911
134
+
135
+
136
+ foreach x of varlist estimate {
137
+ replace `x'=0 if time==1820
138
+ }
139
+
140
+ foreach x of varlist max95 min95 {
141
+ replace `x'=0 if time==1820
142
+ }
143
+
144
+
145
+ gen year=time
146
+
147
+ ****
148
+ sort time
149
+ label var time "Year"
150
+
151
+ sum estimate if year<=1849
152
+ gen bench=r(mean)
153
+
154
+
155
+ *****
156
+ twoway (rarea max95 min95 time, lstyle(ci) msize(tiny) fc(gs12) c(none) lc(gs12)) (connect estimate time, msize(vsmall) lp(solid) lw(medthick) lc(gs7) xline(1850, lpattern(dash) lcolor(blue)) xline(1853, lpattern(solid) lcolor(blue)) xline(1864, lpattern(dash) lcolor(blue)) ) (line zero time , lp(dash) lw(medthick) lc(gs0) ) ///
157
+ , leg(region(lp(blank)) rows(3)) title("A. All officials", size(medium) ) xlabel(1820(30)1910) ylabel(-0.2(0.2)0.4) legend(order(1 "95% CI" 2 "Effects of connections * Hunan" ) row(2) region(color(none))) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) saving("Results\AllCnty_hXconn_all0_yearly_A_0.gph", replace) xsize(3) ysize(3)
158
+
159
+ restore
160
+
161
+
162
+ *********************************** New entry
163
+
164
+ preserve
165
+
166
+ **************
167
+
168
+ use Results\ConnectionOnEntry_all0_yearly_0, clear
169
+
170
+
171
+ gen i=_n
172
+ keep if i<=91
173
+ gen time=i
174
+
175
+ gen zero=0
176
+ label var zero "the effect = 0"
177
+ label var estimate "the coefficent of logged total deaths"
178
+
179
+ keep time max95 min95 time estimate zero
180
+
181
+
182
+ replace time=1820+time
183
+ replace time=1820 if time==1911
184
+
185
+
186
+ foreach x of varlist estimate {
187
+ replace `x'=0 if time==1820
188
+ }
189
+
190
+ foreach x of varlist max95 min95 {
191
+ replace `x'=0 if time==1820
192
+ }
193
+
194
+
195
+ gen year=time
196
+
197
+ ****
198
+ sort time
199
+ label var time "Year"
200
+
201
+ sum estimate if year<=1849
202
+ gen bench=r(mean)
203
+
204
+
205
+ *****
206
+ twoway (rarea max95 min95 time, lstyle(ci) msize(tiny) fc(gs12) c(none) lc(gs12)) (connect estimate time, msize(vsmall) lp(solid) lw(medthick) lc(gs7) xline(1850, lpattern(dash) lcolor(blue)) xline(1853, lpattern(solid) lcolor(blue)) xline(1864, lpattern(dash) lcolor(blue)) ) (line zero time , lp(dash) lw(medthick) lc(gs0) ) ///
207
+ , leg(region(lp(blank)) rows(3)) title("B. Newly promoted", size(medium) ) xlabel(1820(30)1910) ylabel(-0.2(0.2)0.4) legend(order(1 "95% CI" 2 "Effects of connections * Hunan" ) row(2) region(color(none))) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) saving("Results\AllCnty_hXconn_all0_yearly_Entry_0.gph", replace) xsize(3) ysize(3)
208
+
209
+ restore
210
+
211
+
212
+
213
+
214
+ *********************************** RE entry
215
+
216
+ preserve
217
+
218
+ **************
219
+
220
+ use Results\ConnectionOnRentry_all0_yearly_0, clear
221
+
222
+
223
+ gen i=_n
224
+ keep if i<=91
225
+ gen time=i
226
+
227
+
228
+ gen zero=0
229
+ label var zero "the effect = 0"
230
+ label var estimate "the coefficent of logged total deaths"
231
+
232
+ keep time max95 min95 time estimate zero
233
+
234
+
235
+ replace time=1820+time
236
+ replace time=1820 if time==1911
237
+
238
+
239
+ foreach x of varlist estimate {
240
+ replace `x'=0 if time==1820
241
+ }
242
+
243
+ foreach x of varlist max95 min95 {
244
+ replace `x'=0 if time==1820
245
+ }
246
+
247
+
248
+ gen year=time
249
+
250
+ ****
251
+ sort time
252
+ label var time "Year"
253
+
254
+
255
+ sum estimate if year<=1849
256
+ gen bench=r(mean)
257
+
258
+
259
+ *****
260
+ twoway (rarea max95 min95 time, lstyle(ci) msize(tiny) fc(gs12) c(none) lc(gs12)) (connect estimate time, msize(vsmall) lp(solid) lw(medthick) lc(gs7) xline(1850, lpattern(dash) lcolor(blue)) xline(1853, lpattern(solid) lcolor(blue)) xline(1864, lpattern(dash) lcolor(blue)) ) (line zero time , lp(dash) lw(medthick) lc(gs0) ) ///
261
+ , leg(region(lp(blank)) rows(3)) title("C. Re-promoted", size(medium) ) xlabel(1820(30)1910) ylabel(-0.2(0.2)0.4) legend(order(1 "95% CI" 2 "Effects of connections * Hunan" ) row(2) region(color(none))) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) saving("Results\AllCnty_hXconn_all0_yearly_Rentry_0.gph", replace) xsize(3) ysize(3)
262
+
263
+ restore
264
+
265
+
266
+
267
+
268
+
269
+ *********************************************************************************************************
270
+ ************************************************** Yearly effect of connections all, newly promoted, and re-promoted
271
+ **************************************************
272
+
273
+ graph combine Results\AllCnty_hXconn_all0_yearly_A_0.gph Results\AllCnty_hXconn_all0_yearly_Entry_0.gph Results\AllCnty_hXconn_all0_yearly_Rentry_0.gph, row(1) xsize(9) ysize(4.5) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white))
274
+
275
+ graph export Results\Figure_C1.png, replace
276
+
277
+
104/replication_package/Replication/Programs/Appendix_Table_A3.do ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ***************************************************************************************
3
+ ************************** Table A3: Elite Connections and Other Characteristics cross Counties
4
+ ************************** Sample: Hunan counties, 1850--1864
5
+ ****************************************************************************************
6
+
7
+ use Data\NationalCntyYr.dta,clear
8
+
9
+ *********************************************************************************
10
+
11
+
12
+ reg Zeng_all0_invdist lncntyarea lncntypop lnrice lnwheat mainriv dist2canal lnurbanpop prefcap lnjinshi lncntyquota0 dist_nanjing Taiping_route1 if year==1855&hunan==1, cluster( samcntyid)
13
+ outreg2 using Results\Appendix_Table_A3.doc, keep(lncntyarea lncntypop lnrice lnwheat mainriv dist2canal lnurbanpop prefcap lnjinshi lncntyquota0 dist_nanjing Taiping_route1 ) sortvar(lncntyarea lncntypop lnrice lnwheat mainriv dist2canal lnurbanpop prefcap lnjinshi lncntyquota0 dist_nanjing Taiping_route1) se bdec(3) rdec(3) nocons replace
14
+
15
+
16
+ reg Zeng_all0_invdist lncntyarea lncntypop lnrice lnwheat mainriv dist2canal lnurbanpop prefcap lnjinshi lncntyquota0 dist_nanjing Taiping_route1 if year==1855, cluster(samcntyid)
17
+ outreg2 using Results\Appendix_Table_A3.doc, keep(lncntyarea lncntypop lnrice lnwheat mainriv dist2canal lnurbanpop prefcap lnjinshi lncntyquota0 dist_nanjing Taiping_route1 ) sortvar(lncntyarea lncntypop lnrice lnwheat mainriv dist2canal lnurbanpop prefcap lnjinshi lncntyquota0 dist_nanjing Taiping_route1) se bdec(3) rdec(3) nocons append
18
+
19
+
104/replication_package/Replication/Programs/Appendix_Table_B1_I.do ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ***************************************************************************************
3
+ ************************** Table B.1. I. The Impact of Elite Connections on Soldier Deaths
4
+ ************************** Checking Outliers
5
+ ****************************************************************************************
6
+
7
+ use Data\HunanCntyYr.dta,clear
8
+
9
+ ********************************************************************************
10
+ ********************** gen Zeng Guofan period dummies
11
+
12
+ gen Post=0 if year<1854
13
+ replace Post=1 if year>=1854&year<=1864
14
+
15
+
16
+ foreach y of varlist Zeng_all0_invdist_pc Zeng_all0_pc Zenghu_all Zenghu_all_invdist Zeng_all0 Zeng_all0_invdist Zeng_exam0_invdist Zeng_BMF_invdist Zeng_Juren_invdist lnarea capital lnurbanpop lnpop dist_nanjing lnjinshi lnquotas mainriv route1 dist2canal lnwheat lnrice {
17
+ gen `y'_Post=`y'*Post
18
+
19
+ }
20
+
21
+
22
+ ********************************************************************************
23
+ ********************** regression
24
+
25
+
26
+ xi: reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post , absorb(year cntyid) cluster( cntyid)
27
+ outreg2 using Results\Appendix_Table_B1_I.doc, keep(Zeng_all0_invdist_Post ) se bdec(3) rdec(3) nocons replace
28
+
29
+ xi: reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post if Zeng_all0_invdist<=10, absorb(year cntyid) cluster( cntyid)
30
+ outreg2 using Results\Appendix_Table_B1_I.doc, keep(Zeng_all0_invdist_Post ) se bdec(3) rdec(3) nocons append
31
+
32
+
33
+ xi: reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post if Zeng_all0_invdist<=3, absorb(year cntyid) cluster( cntyid)
34
+ outreg2 using Results\Appendix_Table_B1_I.doc, keep(Zeng_all0_invdist_Post ) se bdec(3) rdec(3) nocons append
35
+
36
+
37
+
104/replication_package/Replication/Programs/Appendix_Table_B1_II.do ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ***************************************************************************************
3
+ ************************** Tab B.1. II. The impact of elite connections on soldier deaths
4
+ ************************** sine transformation
5
+ ****************************************************************************************
6
+
7
+ use Data\HunanCntyYr.dta,clear
8
+
9
+ ********************************************************************************
10
+ ********************** gen Zeng Guofan period dummies
11
+
12
+ gen Post=0 if year<1854
13
+ replace Post=1 if year>=1854&year<=1864
14
+
15
+
16
+ foreach y of varlist Zeng_all0_invdist_pc Zeng_all0_pc Zenghu_all Zenghu_all_invdist Zeng_all0 Zeng_all0_invdist Zeng_exam0_invdist Zeng_BMF_invdist Zeng_Juren_invdist lnarea capital lnurbanpop lnpop dist_nanjing lnjinshi lnquotas mainriv route1 dist2canal lnwheat lnrice {
17
+ gen `y'_Post=`y'*Post
18
+
19
+ }
20
+
21
+
22
+ ********************************************************************************
23
+ ********************** regression
24
+
25
+ xi: reghdfe lnmartyr_sine capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post , absorb(year cntyid) cluster( cntyid)
26
+ outreg2 using Results\\Appendix_Table_B1_II.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons replace
27
+
28
+
29
+
30
+ xi: reghdfe lnmartyr_sine capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_pc_Post , absorb(year cntyid ) cluster( cntyid)
31
+ outreg2 using Results\\Appendix_Table_B1_II.doc, keep(Zeng_all0_invdist_pc_Post ) se bdec(3) rdec(3) nocons append
32
+
33
+
34
+
35
+ **** *** ***
36
+ xi: reghdfe lnmartyr_sine capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_Post , absorb(year cntyid ) cluster( cntyid)
37
+ outreg2 using Results\\Appendix_Table_B1_II.doc, keep(Zeng_all0_Post) se bdec(3) rdec(3) nocons append
38
+
39
+
40
+ *** *** ***
41
+
42
+ xi: reghdfe lnmartyr_sine capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_pc_Post , absorb(year cntyid ) cluster( cntyid)
43
+ outreg2 using Results\\Appendix_Table_B1_II.doc, keep(Zeng_all0_pc_Post ) se bdec(3) rdec(3) nocons append
44
+
104/replication_package/Replication/Programs/Appendix_Table_B1_III.do ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ***************************************************************************************
3
+ ************************** Appendix Table B.1.III. arbitray clustering standard errors
4
+ ****************************************************************************************
5
+
6
+ use Data\HunanCntyYr.dta,clear
7
+
8
+ ********************************************************************************
9
+ ********************** gen Zeng Guofan period dummies
10
+
11
+ gen Post=0 if year<1854
12
+ replace Post=1 if year>=1854&year<=1864
13
+
14
+
15
+ foreach y of varlist Zeng_all0_invdist_pc Zeng_all0_pc Zenghu_all Zenghu_all_invdist Zeng_all0 Zeng_all0_invdist Zeng_exam0_invdist Zeng_BMF_invdist Zeng_Juren_invdist lnarea capital lnurbanpop lnpop dist_nanjing lnjinshi lnquotas mainriv route1 dist2canal lnwheat lnrice {
16
+ gen `y'_Post=`y'*Post
17
+
18
+ }
19
+
20
+
21
+ ********************************************************************************
22
+ ********************** regression
23
+
24
+
25
+
26
+
27
+ ************* 50 KM
28
+ reg2hdfespatial lnmartyr1 Zeng_all0_invdist_Post, timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(50) lagcutoff(20)
29
+ outreg2 using Results\Appendix_Table_B1_III_50KM.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons replace
30
+
31
+
32
+ reg2hdfespatial lnmartyr1 lnurbanpop_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post , timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(50) lagcutoff(20)
33
+ outreg2 using Results\Appendix_Table_B1_III_50KM.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
34
+
35
+
36
+ reg2hdfespatial lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post, timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(50) lagcutoff(20)
37
+ outreg2 using Results\Appendix_Table_B1_III_50KM.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
38
+
39
+
40
+ reg2hdfespatial lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post, timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(50) lagcutoff(20)
41
+ outreg2 using Results\Appendix_Table_B1_III_50KM.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
42
+
43
+
44
+ *************
45
+
46
+ reg2hdfespatial lnmartyr1 Zeng_all0_invdist_pc_Post, timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(50) lagcutoff(20)
47
+ outreg2 using Results\Appendix_Table_B1_III_50KM.doc, keep(Zeng_all0_invdist_pc_Post) se bdec(3) rdec(3) nocons append
48
+
49
+
50
+ reg2hdfespatial lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_pc_Post, timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(50) lagcutoff(20)
51
+ outreg2 using Results\Appendix_Table_B1_III_50KM.doc, keep(Zeng_all0_invdist_pc_Post) se bdec(3) rdec(3) nocons append
52
+
53
+
54
+ *** *** ***
55
+ reg2hdfespatial lnmartyr1 Zeng_all0_Post , timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(50) lagcutoff(20)
56
+ outreg2 using Results\Appendix_Table_B1_III_50KM.doc, keep(Zeng_all0_Post) se bdec(3) rdec(3) nocons append
57
+
58
+
59
+ *** *** ***
60
+ reg2hdfespatial lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_Post , timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(50) lagcutoff(20)
61
+ outreg2 using Results\Appendix_Table_B1_III_50KM.doc, keep(Zeng_all0_Post) se bdec(3) rdec(3) nocons append
62
+
63
+ *** *** ***
64
+
65
+ reg2hdfespatial lnmartyr1 Zeng_all0_pc_Post , timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(50) lagcutoff(20)
66
+ outreg2 using Results\Appendix_Table_B1_III_50KM.doc, keep(Zeng_all0_pc_Post ) se bdec(3) rdec(3) nocons append
67
+
68
+
69
+ reg2hdfespatial lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_pc_Post , timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(50) lagcutoff(20)
70
+ outreg2 using Results\Appendix_Table_B1_III_50KM.doc, keep(Zeng_all0_pc_Post ) se bdec(3) rdec(3) nocons append
71
+
72
+
73
+
74
+
75
+
76
+ ********************* 100 KM
77
+
78
+ reg2hdfespatial lnmartyr1 Zeng_all0_invdist_Post, timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(100) lagcutoff(20)
79
+ outreg2 using Results\Appendix_Table_B1_III_100KM.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons replace
80
+
81
+
82
+ reg2hdfespatial lnmartyr1 lnurbanpop_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post , timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(100) lagcutoff(20)
83
+ outreg2 using Results\Appendix_Table_B1_III_100KM.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
84
+
85
+
86
+ reg2hdfespatial lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post, timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(100) lagcutoff(20)
87
+ outreg2 using Results\Appendix_Table_B1_III_100KM.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
88
+
89
+
90
+ reg2hdfespatial lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post, timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(100) lagcutoff(20)
91
+ outreg2 using Results\Appendix_Table_B1_III_100KM.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
92
+
93
+
94
+ *************
95
+
96
+ reg2hdfespatial lnmartyr1 Zeng_all0_invdist_pc_Post, timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(100) lagcutoff(20)
97
+ outreg2 using Results\Appendix_Table_B1_III_100KM.doc, keep(Zeng_all0_invdist_pc_Post) se bdec(3) rdec(3) nocons append
98
+
99
+
100
+ reg2hdfespatial lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_pc_Post, timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(100) lagcutoff(20)
101
+ outreg2 using Results\Appendix_Table_B1_III_100KM.doc, keep(Zeng_all0_invdist_pc_Post) se bdec(3) rdec(3) nocons append
102
+
103
+
104
+
105
+
106
+
107
+
108
+ *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
109
+ *** *** ***
110
+ reg2hdfespatial lnmartyr1 Zeng_all0_Post , timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(100) lagcutoff(20)
111
+ outreg2 using Results\Appendix_Table_B1_III_100KM.doc, keep(Zeng_all0_Post) se bdec(3) rdec(3) nocons append
112
+
113
+
114
+ *** *** ***
115
+ reg2hdfespatial lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_Post , timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(100) lagcutoff(20)
116
+ outreg2 using Results\Appendix_Table_B1_III_100KM.doc, keep(Zeng_all0_Post) se bdec(3) rdec(3) nocons append
117
+
118
+ *** *** ***
119
+
120
+ reg2hdfespatial lnmartyr1 Zeng_all0_pc_Post , timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(100) lagcutoff(20)
121
+ outreg2 using Results\Appendix_Table_B1_III_100KM.doc, keep(Zeng_all0_pc_Post ) se bdec(3) rdec(3) nocons append
122
+
123
+
124
+ reg2hdfespatial lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_pc_Post , timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(100) lagcutoff(20)
125
+ outreg2 using Results\Appendix_Table_B1_III_100KM.doc, keep(Zeng_all0_pc_Post ) se bdec(3) rdec(3) nocons append
126
+
127
+
128
+
129
+
130
+
131
+ ********************* 200 KM
132
+
133
+ reg2hdfespatial lnmartyr1 Zeng_all0_invdist_Post, timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(200) lagcutoff(20)
134
+ outreg2 using Results\Appendix_Table_B1_III_200KM.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons replace
135
+
136
+
137
+ reg2hdfespatial lnmartyr1 lnurbanpop_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post , timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(200) lagcutoff(20)
138
+ outreg2 using Results\Appendix_Table_B1_III_200KM.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
139
+
140
+
141
+ reg2hdfespatial lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post, timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(200) lagcutoff(20)
142
+ outreg2 using Results\Appendix_Table_B1_III_200KM.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
143
+
144
+
145
+ reg2hdfespatial lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post, timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(200) lagcutoff(20)
146
+ outreg2 using Results\Appendix_Table_B1_III_200KM.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
147
+
148
+
149
+
150
+ *************
151
+
152
+ reg2hdfespatial lnmartyr1 Zeng_all0_invdist_pc_Post, timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(200) lagcutoff(20)
153
+ outreg2 using Results\Appendix_Table_B1_III_200KM.doc, keep(Zeng_all0_invdist_pc_Post) se bdec(3) rdec(3) nocons append
154
+
155
+
156
+ reg2hdfespatial lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_pc_Post, timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(200) lagcutoff(20)
157
+ outreg2 using Results\Appendix_Table_B1_III_200KM.doc, keep(Zeng_all0_invdist_pc_Post) se bdec(3) rdec(3) nocons append
158
+
159
+
160
+
161
+
162
+ *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
163
+ *** *** ***
164
+ reg2hdfespatial lnmartyr1 Zeng_all0_Post , timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(200) lagcutoff(20)
165
+ outreg2 using Results\Appendix_Table_B1_III_200KM.doc, keep(Zeng_all0_Post) se bdec(3) rdec(3) nocons append
166
+
167
+
168
+ *** *** ***
169
+ reg2hdfespatial lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_Post , timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(200) lagcutoff(20)
170
+ outreg2 using Results\Appendix_Table_B1_III_200KM.doc, keep(Zeng_all0_Post) se bdec(3) rdec(3) nocons append
171
+
172
+ *** *** ***
173
+
174
+ reg2hdfespatial lnmartyr1 Zeng_all0_pc_Post , timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(200) lagcutoff(20)
175
+ outreg2 using Results\Appendix_Table_B1_III_200KM.doc, keep(Zeng_all0_pc_Post ) se bdec(3) rdec(3) nocons append
176
+
177
+
178
+ reg2hdfespatial lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_pc_Post , timevar(year) panelvar(cntyid) lat(y_coord) lon(x_coord) distcutoff(200) lagcutoff(20)
179
+ outreg2 using Results\Appendix_Table_B1_III_200KM.doc, keep(Zeng_all0_pc_Post ) se bdec(3) rdec(3) nocons append
180
+
181
+
104/replication_package/Replication/Programs/Appendix_Table_B1_IV.do ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ ***************************************************************************************
4
+ ************************** Appendix Table B.1.IV. Additional Fixed effects
5
+ ****************************************************************************************
6
+
7
+ use Data\HunanCntyYr.dta,clear
8
+
9
+
10
+ ********************************************************************************
11
+ ********************** gen Zeng Guofan period dummies
12
+
13
+ gen Post=0 if year<1854
14
+ replace Post=1 if year>=1854&year<=1864
15
+
16
+
17
+ foreach y of varlist Zeng_all0_invdist_pc Zeng_all0_pc Zenghu_all Zenghu_all_invdist Zeng_all0 Zeng_all0_invdist Zeng_exam0_invdist Zeng_BMF_invdist Zeng_Juren_invdist lnarea capital lnurbanpop lnpop dist_nanjing lnjinshi lnquotas mainriv route1 dist2canal lnwheat lnrice {
18
+ gen `y'_Post=`y'*Post
19
+
20
+ }
21
+
22
+
23
+ ********************** ********************** ********************** **********************
24
+ ********************** gen year dummies
25
+
26
+ tab year, gen(year)
27
+ local r=1
28
+ while `r'<16 {
29
+ local s=`r'+1849
30
+ rename year`r' yr`s'
31
+ local r=`r'+1
32
+ }
33
+
34
+ **
35
+ foreach y of varlist Zeng_all0_invdist_pc Zeng_all0_pc Zenghu_all Zenghu_all_invdist Zeng_all0 Zeng_all0_invdist Zeng_exam0_invdist Zeng_BMF_invdist Zeng_Juren_invdist lnarea capital lnurbanpop lnpop dist_nanjing lnjinshi lnquotas mainriv route1 dist2canal lnwheat lnrice {
36
+ foreach x of varlist yr1850-yr1852 yr1854-yr1864 {
37
+ gen `y'_`x'=`y'*`x'
38
+ }
39
+ }
40
+
41
+
42
+ **************************
43
+
44
+ egen prefidXyear=group(prefid year)
45
+
46
+
47
+ ********************************************************************************
48
+ ********************** regression
49
+
50
+ *** *** ***
51
+ *** *** ***
52
+ *** *** *** controls X year FE
53
+ *** *** ***
54
+ *** *** ***
55
+
56
+
57
+ xi: reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post , absorb(year cntyid prefidXyear) cluster(prefid cntyid)
58
+ outreg2 using Results\\Appendix_Table_B1_IV.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons replace
59
+
60
+
61
+
62
+ xi: reghdfe lnmartyr1 capital_yr* lnurbanpop_yr* lnjinshi_yr* lnquotas_yr* route1_yr* dist_nanjing_yr* mainriv_yr* lnwheat_yr* lnrice_yr* lnpop_yr* lnarea_yr* Zeng_all0_invdist_Post , absorb(year cntyid prefidXyear) cluster(prefid cntyid)
63
+ outreg2 using Results\\Appendix_Table_B1_IV.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
64
+
65
+
66
+
67
+ *** *** *** *** *** ***
68
+ *** *** *** *** *** ***
69
+ xi: reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_pc_Post, absorb(year cntyid prefidXyear) cluster(prefid cntyid)
70
+ outreg2 using Results\\Appendix_Table_B1_IV.doc, keep(Zeng_all0_invdist_pc_Post ) se bdec(3) rdec(3) nocons append
71
+
72
+
73
+
74
+ xi: reghdfe lnmartyr1 capital_yr* lnurbanpop_yr* lnjinshi_yr* lnquotas_yr* route1_yr* dist_nanjing_yr* mainriv_yr* lnwheat_yr* lnrice_yr* lnpop_yr* lnarea_yr* Zeng_all0_invdist_pc_Post, absorb(year cntyid prefidXyear) cluster(prefid cntyid)
75
+ outreg2 using Results\\Appendix_Table_B1_IV.doc, keep(Zeng_all0_invdist_pc_Post ) se bdec(3) rdec(3) nocons append
76
+
77
+
78
+
79
+ *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
80
+ *** *** ***
81
+
82
+ xi: reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_Post , absorb(year cntyid prefidXyear) cluster(prefid cntyid)
83
+ outreg2 using Results\\Appendix_Table_B1_IV.doc, keep(Zeng_all0_Post) se bdec(3) rdec(3) nocons append
84
+
85
+ **** *** ***
86
+
87
+
88
+ **** *** ***
89
+ xi: reghdfe lnmartyr1 capital_yr* lnurbanpop_yr* lnjinshi_yr* lnquotas_yr* route1_yr* dist_nanjing_yr* mainriv_yr* dist2canal_yr* lnwheat_yr* lnrice_yr* lnpop_yr* lnarea_yr* Zeng_all0_Post , absorb(year cntyid prefidXyear) cluster(prefid cntyid)
90
+ outreg2 using Results\\Appendix_Table_B1_IV.doc, keep(Zeng_all0_Post) se bdec(3) rdec(3) nocons append
91
+
92
+
93
+
94
+ *** *** ***
95
+ xi: reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_pc_Post , absorb(year cntyid prefidXyear) cluster(prefid cntyid)
96
+ outreg2 using Results\\Appendix_Table_B1_IV.doc, keep(Zeng_all0_pc_Post ) se bdec(3) rdec(3) nocons append
97
+
98
+
99
+
100
+ xi: reghdfe lnmartyr1 capital_yr* lnurbanpop_yr* lnjinshi_yr* lnquotas_yr* route1_yr* dist_nanjing_yr* mainriv_yr* dist2canal_yr* lnwheat_yr* lnrice_yr* lnpop_yr* lnarea_yr* Zeng_all0_pc_Post , absorb(year cntyid prefidXyear) cluster(prefid cntyid)
101
+ outreg2 using Results\\Appendix_Table_B1_IV.doc, keep(Zeng_all0_pc_Post ) se bdec(3) rdec(3) nocons append
102
+
103
+
104/replication_package/Replication/Programs/Appendix_Table_B2.do ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ *********************************************************************************
3
+ *** Table B.2. Yearly Effects of Elite Connections
4
+ *********************************************************************************
5
+
6
+
7
+ use Data\HunanCntyYr.dta,clear
8
+
9
+
10
+ ********************************************************************************
11
+ ********************** gen Zeng Guofan period dummies
12
+
13
+ gen Post=0 if year<1854
14
+ replace Post=1 if year>=1854&year<=1864
15
+
16
+
17
+
18
+ foreach y of varlist Zeng_all0_invdist_pc Zeng_all0_pc Zenghu_all Zenghu_all_invdist Zeng_all0 Zeng_all0_invdist Zeng_exam0_invdist Zeng_BMF_invdist Zeng_Juren_invdist lnarea capital lnurbanpop lnpop dist_nanjing lnjinshi lnquotas mainriv route1 dist2canal lnwheat lnrice {
19
+ gen `y'_Post=`y'*Post
20
+
21
+ }
22
+
23
+
24
+ ********************** ********************** ********************** **********************
25
+ ********************** gen year dummies
26
+
27
+
28
+ tab year, gen(year)
29
+ local r=1
30
+ while `r'<16 {
31
+ local s=`r'+1849
32
+ rename year`r' yr`s'
33
+ local r=`r'+1
34
+ }
35
+
36
+ **
37
+ foreach y of varlist Zeng_all0_invdist Zeng_all0 Zeng_all0_invdist_pc Zeng_all0_pc{
38
+ foreach x of varlist yr1850-yr1852 yr1854-yr1864 {
39
+ gen `y'_`x'=`y'*`x'
40
+ }
41
+ }
42
+
43
+
44
+ **************************
45
+
46
+ egen prefidXyear=group(prefid year)
47
+
48
+
49
+ *** *** *** *** *** *** *** *** *** *** ***
50
+ *** *** *** *** *** *** *** *** *** *** *** Weighted
51
+
52
+
53
+ xi: reghdfe lnmartyr1 Zeng_all0_invdist_yr* capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
54
+
55
+ outreg2 using Results\Appendix_Table_B2.doc, keep(Zeng_all0_invdist_yr* ) se bdec(3) rdec(3) nocons addtext(Observations, `e(N_full)') noobs replace
56
+ parmest, saving( Results\Placebo_Yearly_ctrl_all0_invdist, replace)
57
+
58
+
59
+
60
+ *** *** *** *** *** *** *** *** *** *** ***
61
+ *** *** *** *** *** *** *** *** *** *** *** unweighted
62
+
63
+ xi: reghdfe lnmartyr1 Zeng_all0_yr* capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
64
+
65
+ outreg2 using Results\Appendix_Table_B2.doc, keep(Zeng_all0_yr* ) se bdec(3) rdec(3) nocons addtext(Observations, `e(N_full)') noobs append
66
+ parmest, saving( Results\Placebo_Yearly_ctrl_all0, replace)
67
+
68
+
69
+ *** *** *** *** *** *** *** *** *** *** ***
70
+ *** *** *** *** *** *** *** *** *** *** *** per capita weighted
71
+
72
+ xi: reghdfe lnmartyr1 Zeng_all0_invdist_pc_yr* capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
73
+
74
+ outreg2 using Results\Appendix_Table_B2.doc, keep(Zeng_all0_invdist_pc_yr* ) se bdec(3) rdec(3) nocons addtext(Observations, `e(N_full)') noobs append
75
+ parmest, saving( Results\Placebo_Yearly_ctrl_all0_invdist_pc, replace)
76
+
77
+
78
+
79
+ *** *** *** *** *** *** *** *** *** *** ***
80
+ *** *** *** *** *** *** *** *** *** *** *** per capita unweighted
81
+
82
+
83
+ xi: reghdfe lnmartyr1 Zeng_all0_pc_yr* capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post , absorb(year cntyid prefidXyear) cluster(cntyid)
84
+
85
+ outreg2 using Results\Appendix_Table_B2.doc, keep(Zeng_all0_pc_yr* ) se bdec(3) rdec(3) nocons addtext(Observations, `e(N_full)') noobs append
86
+ parmest, saving( Results\Placebo_Yearly_ctrl_all0_pc, replace)
87
+
104/replication_package/Replication/Programs/Appendix_Table_B4.do ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ************************************************************************************************
3
+ ****Table B4: The Impact of Elite Connections on Soldier Deaths: Controlling for Physical Distance to Zeng
4
+ *** Distance to Xiangxiang dist_xiangxiang_Post LangSimilarity_Post
5
+ ************************************************************************************************
6
+
7
+ use Data\HunanCntyYr.dta,clear
8
+
9
+
10
+ ********************************************************************************
11
+ ********************** gen Zeng Guofan period dummies
12
+
13
+ gen Post=0 if year<1854
14
+ replace Post=1 if year>=1854&year<=1864
15
+
16
+
17
+
18
+ foreach y of varlist Zeng_all0_invdist_pc Zeng_all0_pc Zenghu_all Zenghu_all_invdist Zeng_all0 Zeng_all0_invdist Zeng_exam0_invdist Zeng_BMF_invdist Zeng_Juren_invdist invdist0_L1 invdist0_F1 lnarea capital lnurbanpop lnpop dist_nanjing lnjinshi lnquotas mainriv route1 dist2canal lnwheat lnrice dist_xiangxiang LangSimilarity{
19
+ gen `y'_Post=`y'*Post
20
+
21
+ }
22
+
23
+ **************************
24
+
25
+ egen prefidXyear=group(prefid year)
26
+
27
+
28
+
29
+ ********************************************************************************
30
+ ************************** regression
31
+
32
+ reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post dist_xiangxiang_Post Zeng_all0_invdist_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
33
+ outreg2 using Results\Appendix_Table_B4.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons replace
34
+
35
+
36
+ **************
37
+ reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post LangSimilarity_Post Zeng_all0_invdist_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
38
+ outreg2 using Results\Appendix_Table_B4.doc, keep(Zeng_all0_invdist_Post ) se bdec(3) rdec(3) nocons append
39
+
40
+
41
+ **************
42
+
43
+ reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post dist_xiangxiang_Post LangSimilarity_Post Zeng_all0_invdist_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
44
+ outreg2 using Results\Appendix_Table_B4.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
45
+
46
+
47
+ ***************
48
+ reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post dist_xiangxiang_Post Zeng_all0_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
49
+ outreg2 using Results\Appendix_Table_B4.doc, keep(Zeng_all0_Post) se bdec(3) rdec(3) nocons append
50
+
51
+
52
+ **************
53
+ reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post LangSimilarity_Post Zeng_all0_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
54
+ outreg2 using Results\Appendix_Table_B4.doc, keep(Zeng_all0_Post ) se bdec(3) rdec(3) nocons append
55
+
56
+ **************
57
+
58
+ reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post dist_xiangxiang_Post LangSimilarity_Post Zeng_all0_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
59
+ outreg2 using Results\Appendix_Table_B4.doc, keep(Zeng_all0_Post) se bdec(3) rdec(3) nocons append
60
+
61
+
62
+
104/replication_package/Replication/Programs/Appendix_Table_B5_I.do ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ *********************************************************************************
4
+ ********************************** Table B.5. I. Elite Networks and Data Missing
5
+ *********************************************************************************
6
+
7
+
8
+ use Data\HunanCntyYr.dta,clear
9
+
10
+
11
+ ********************************************************************************
12
+ ********************** gen Zeng Guofan period dummies
13
+
14
+ gen Post=0 if year<1854
15
+ replace Post=1 if year>=1854&year<=1864
16
+
17
+
18
+ foreach y of varlist Zeng_all0_invdist_pc Zeng_all0_pc Zenghu_all Zenghu_all_invdist Zeng_all0 Zeng_all0_invdist Zeng_exam0_invdist Zeng_BMF_invdist Zeng_Juren_invdist invdist0_L1 invdist0_F1 lnarea capital lnurbanpop lnpop dist_nanjing lnjinshi lnquotas mainriv route1 dist2canal lnwheat lnrice dist_xiangxiang LangSimilarity{
19
+ gen `y'_Post=`y'*Post
20
+
21
+ }
22
+
23
+
24
+ ************************************************************************************************
25
+ ************************ regression
26
+
27
+ reghdfe missingratio Zeng_all0_invdist_Post if year==1855, absorb(prefid) cluster( cntyid)
28
+ outreg2 using Results\Appendix_Table_B5_I.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons replace
29
+
30
+
31
+ reghdfe missingratio Zeng_all0_invdist_Post lntotmartyr_withmissing if year==1855, absorb(prefid) cluster( cntyid)
32
+ outreg2 using Results\Appendix_Table_B5_I.doc, keep(Zeng_all0_invdist_Post lntotmartyr_withmissing) se bdec(3) rdec(3) nocons append
33
+
34
+
35
+ reghdfe missingratio Zeng_all0_invdist_Post capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post if year==1855, absorb(prefid) cluster(cntyid)
36
+ outreg2 using Results\Appendix_Table_B5_I.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
37
+
38
+
39
+ reghdfe missingratio Zeng_all0_invdist_Post lntotmartyr_withmissing capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post if year==1855, absorb(prefid) cluster( cntyid)
40
+ outreg2 using Results\Appendix_Table_B5_I.doc, keep(Zeng_all0_invdist_Post lntotmartyr_withmissing ) se bdec(3) rdec(3) nocons append
41
+
42
+
43
+ ********************
44
+ reghdfe missingratio Zeng_all0_Post if year==1855, absorb(prefid) cluster( cntyid)
45
+ outreg2 using Results\Appendix_Table_B5_I.doc, keep(Zeng_all0_Post) se bdec(3) rdec(3) nocons append
46
+
47
+
48
+ reghdfe missingratio Zeng_all0_Post lntotmartyr_withmissing if year==1855, absorb(prefid) cluster( cntyid)
49
+ outreg2 using Results\Appendix_Table_B5_I.doc, keep(Zeng_all0_Post lntotmartyr_withmissing) se bdec(3) rdec(3) nocons append
50
+
51
+
52
+ reghdfe missingratio Zeng_all0_Post capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post if year==1855, absorb(prefid) cluster( cntyid)
53
+ outreg2 using Results\Appendix_Table_B5_I.doc, keep(Zeng_all0_Post lntotmartyr_withmissing) se bdec(3) rdec(3) nocons append
54
+
55
+
56
+ reghdfe missingratio Zeng_all0_Post lntotmartyr_withmissing capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post if year==1855, absorb(prefid) cluster( cntyid)
57
+ outreg2 using Results\Appendix_Table_B5_I.doc, keep(Zeng_all0_Post lntotmartyr_withmissing) se bdec(3) rdec(3) nocons append
58
+
59
+
60
+
104/replication_package/Replication/Programs/Appendix_Table_B5_II.do ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ ************************************************************************************
4
+ ****** Table B.5. II. The Impact of Elite Connections on Soldier Deaths: Degree-Holders vs. Commoners
5
+ ************************************************************************************
6
+
7
+
8
+ use Data\HunanCntyYr.dta,clear
9
+
10
+
11
+ ********************************************************************************
12
+ ********************** gen Zeng Guofan period dummies
13
+
14
+ gen Post=0 if year<1854
15
+ replace Post=1 if year>=1854&year<=1864
16
+
17
+
18
+ foreach y of varlist Zeng_all0_invdist_pc Zeng_all0_pc Zenghu_all Zenghu_all_invdist Zeng_all0 Zeng_all0_invdist Zeng_exam0_invdist Zeng_BMF_invdist Zeng_Juren_invdist invdist0_L1 invdist0_F1 lnarea capital lnurbanpop lnpop dist_nanjing lnjinshi lnquotas mainriv route1 dist2canal lnwheat lnrice dist_xiangxiang LangSimilarity{
19
+ gen `y'_Post=`y'*Post
20
+
21
+ }
22
+
23
+
24
+ **************************
25
+
26
+ egen prefidXyear=group(prefid year)
27
+
28
+
29
+ ************************************************************************************************
30
+ *************************** regression
31
+
32
+ reghdfe std_lnmartyr1 Zeng_all0_invdist_Post capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
33
+ outreg2 using Results\Appendix_Table_B5_II.doc, keep( Zeng_all0_invdist_Post ) se bdec(3) rdec(3) nocons replace
34
+
35
+ reghdfe std_lnmartyr1 Zeng_all0_Post capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
36
+ outreg2 using Results\Appendix_Table_B5_II.doc, keep( Zeng_all0_Post ) se bdec(3) rdec(3) nocons append
37
+
38
+
39
+ *****
40
+ reghdfe std_lnGentryDeath1 Zeng_all0_invdist_Post capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
41
+ outreg2 using Results\Appendix_Table_B5_II.doc, keep( Zeng_all0_invdist_Post ) se bdec(3) rdec(3) nocons append
42
+
43
+ reghdfe std_lnGentryDeath1 Zeng_all0_Post capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post , absorb(year cntyid prefidXyear) cluster(cntyid)
44
+ outreg2 using Results\Appendix_Table_B5_II.doc, keep( Zeng_all0_Post ) se bdec(3) rdec(3) nocons append
45
+
46
+
47
+
104/replication_package/Replication/Programs/Appendix_Table_B6_I.do ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ *This dofile produces Table B6.I column (1)-(3)
3
+
4
+ ************************************************************************************
5
+ ****** Table B.6. I. What Does the Number of Soldier Deaths Measure?
6
+ ************************************************************************************
7
+
8
+
9
+ *This part produces Table B6.I column (1)-(3)
10
+
11
+
12
+ use Data\HunanCntyYr.dta,clear
13
+
14
+
15
+ ********************************************************************************
16
+ ********************** gen Zeng Guofan period dummies
17
+
18
+ gen Post=0 if year<1854
19
+ replace Post=1 if year>=1854&year<=1864
20
+
21
+
22
+ foreach y of varlist Zeng_all0_invdist_pc Zeng_all0_pc Zenghu_all Zenghu_all_invdist Zeng_all0 Zeng_all0_invdist Zeng_exam0_invdist Zeng_BMF_invdist Zeng_Juren_invdist invdist0_L1 invdist0_F1 lnarea capital lnurbanpop lnpop lnhh dist_nanjing lnjinshi lnquotas mainriv route1 dist2canal lnwheat lnrice dist_xiangxiang LangSimilarity{
23
+ gen `y'_Post=`y'*Post
24
+
25
+ }
26
+
27
+
28
+ ********************************************************************************
29
+ ********************** gen interactions
30
+
31
+
32
+ sum lnhh
33
+ gen ZengXlnhhXPost=Zeng_all0_invdist_Post*(lnhh-r(mean))
34
+ gen ZenghuXlnhhXPost=Zenghu_all_invdist_Post*(lnhh-r(mean))
35
+
36
+
37
+ sum lnquotas
38
+ gen ZengXlnquotasXPost=Zeng_all0_invdist_Post*(lnquotas_Post-r(mean))
39
+
40
+
41
+ sum lnjinshi
42
+ gen ZengXlnjinshiXPost=Zeng_all0_invdist_Post*(lnjinshi-r(mean))
43
+
44
+
45
+
46
+ **************************
47
+
48
+ egen prefidXyear=group(prefid year)
49
+
50
+
51
+ ************************************************************************************************
52
+ *************************** regression
53
+
54
+
55
+ reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnrice_Post lnwheat_Post lnhh_Post lnarea_Post Zeng_all0_invdist_Post ZengXlnquotasXPost ZengXlnhhXPost, absorb(year cntyid prefidXyear) cluster(cntyid)
56
+ outreg2 using Results\Appendix_Table_B6_I.doc, keep(Zeng_all0_invdist_Post ZengXlnquotasXPost ZengXlnhhXPost) se bdec(3) rdec(3) nocons replace
57
+
58
+
59
+ ***************
60
+
61
+ reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnrice_Post lnwheat_Post lnhh_Post lnarea_Post Zeng_all0_invdist_Post ZengXlnjinshiXPost ZengXlnhhXPost, absorb(year cntyid prefidXyear) cluster(cntyid)
62
+ outreg2 using Results\Appendix_Table_B6_I.doc, keep(Zeng_all0_invdist_Post ZengXlnquotasXPost ZengXlnjinshiXPost ZengXlnhhXPost) se bdec(3) rdec(3) nocons append
63
+
64
+
65
+ ***************
66
+
67
+ reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnrice_Post lnwheat_Post lnhh_Post lnarea_Post Zeng_all0_invdist_Post ZengXlnquotasXPost ZengXlnjinshiXPost ZengXlnhhXPost, absorb(year cntyid prefidXyear) cluster( cntyid)
68
+ outreg2 using Results\Appendix_Table_B6_I.doc, keep(Zeng_all0_invdist_Post ZengXlnquotasXPost ZengXlnjinshiXPost ZengXlnhhXPost) se bdec(3) rdec(3) nocons append
69
+
70
+
71
+
72
+
73
+
74
+
75
+ ********************************************************************************
76
+ ********************************************************************************
77
+ ********************************************************************************
78
+ ************************************ This dofile creats Table B.6.I Column (4-5)
79
+
80
+
81
+
82
+ use Data\HunanBattleField.dta,clear
83
+
84
+
85
+
86
+ ********************** ********************** ********************** **********
87
+ ********************** gen Zeng Guofan period dummies
88
+
89
+ gen Post=0 if year<1854
90
+ replace Post=1 if year>=1854&year<=1864
91
+
92
+
93
+ ******
94
+
95
+ gen Zeng_all0_invdist_P=Zeng_all0_invdist*Post
96
+
97
+ foreach y of varlist lnarea capital lnurbanpop lnhh dist_nanjing lnjinshi lnquotas mainriv route1 dist2canal lnrice lnwheat {
98
+ gen `y'_Post=`y'*Post
99
+ }
100
+
101
+
102
+ ******
103
+
104
+ gen cntyXyear=cntyid*100+(year-1850)
105
+
106
+ egen prefidXyear=group(prefid year)
107
+
108
+
109
+
110
+ ******** Table B.6 Column (4): Without Battle FE
111
+
112
+ reghdfe lnmartyrs_battle1 Zeng_all0_invdist_P ///
113
+ capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnrice_Post lnwheat_Post lnhh_Post lnarea_Post ///
114
+ , absorb(cntyid year prefidXyear) cluster(cntyid)
115
+
116
+ outreg2 using Results\Appendix_Table_B6_I.doc, keep(Zeng_all0_invdist_P) se bdec(3) rdec(3) nocons append
117
+
118
+
119
+ ********* Table B.6 Column (5): With Battle FE
120
+
121
+ reghdfe lnmartyrs_battle1 Zeng_all0_invdist_P ///
122
+ capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnrice_Post lnwheat_Post lnhh_Post lnarea_Post ///
123
+ , absorb(battleid cntyid year prefidXyear) cluster(cntyid )
124
+
125
+ outreg2 using Results\Appendix_Table_B6_I.doc, keep(Zeng_all0_invdist_P) se bdec(3) rdec(3) nocons append
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
104/replication_package/Replication/Programs/Appendix_Table_B6_II.do ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ********************************************************************************
3
+ ***** Table B.6. II. The Battle of Three Rivers vs. Other Battles in 1858
4
+ ***** Sample: Hunan counties, 1858
5
+ ********************************************************************************
6
+
7
+
8
+ use Data\ThreeRivers.dta,clear
9
+
10
+
11
+ foreach x of varlist martyrs_battle martyrs_battle_sanhe martyrs_battle_nosanhe {
12
+ gen ln`x'1=ln(1+`x')
13
+ }
14
+
15
+
16
+
17
+ ********************************************************************************
18
+
19
+
20
+
21
+ sum martyrs_battle martyrs_battle_sanhe martyrs_battle_nosanhe if year==1858
22
+
23
+ sum martyrs_battle martyrs_battle_sanhe martyrs_battle_nosanhe if year==1858
24
+
25
+
26
+
27
+ ********************************************************************************
28
+ ****************************** Appendix Table B.6.II San He
29
+
30
+
31
+
32
+ egen prefidXyear=group(prefid year)
33
+
34
+
35
+ reghdfe lnmartyrs_battle1 Zeng_all0_invdist ///
36
+ capital lnjinshi lnquotas ///
37
+ route1 dist_nanjing ///
38
+ lnurbanpop dist2canal lnrice lnwheat mainriv lnhh lnarea if year==1858 , absorb(prefid) cluster( cntyid)
39
+ outreg2 using Results\Appendix_Table_B6_II.doc, keep(Zeng_all0_invdist) se bdec(3) rdec(3) nocons addtext(Observations, `e(N_full)') noobs replace
40
+
41
+
42
+ reghdfe lnmartyrs_battle_sanhe1 Zeng_all0_invdist ///
43
+ capital lnjinshi lnquotas ///
44
+ route1 dist_nanjing ///
45
+ lnurbanpop dist2canal lnrice lnwheat mainriv lnhh lnarea if year==1858 , absorb(prefid) cluster( cntyid)
46
+ outreg2 using Results\Appendix_Table_B6_II.doc, keep(Zeng_all0_invdist) se bdec(3) rdec(3) nocons addtext(Observations, `e(N_full)') noobs append
47
+
48
+
49
+ reghdfe lnmartyrs_battle_nosanhe1 Zeng_all0_invdist ///
50
+ capital lnjinshi lnquotas ///
51
+ route1 dist_nanjing ///
52
+ lnurbanpop dist2canal lnrice lnwheat mainriv lnhh lnarea if year==1858 , absorb(prefid) cluster( cntyid)
53
+ outreg2 using Results\Appendix_Table_B6_II.doc, keep(Zeng_all0_invdist) se bdec(3) rdec(3) nocons addtext(Observations, `e(N_full)') noobs append
54
+
55
+
56
+
104/replication_package/Replication/Programs/Appendix_Table_C2.do ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ *********************************************************************************
3
+ * Table C.2. The Impact of Elite Networks on Elite Power: Inside and Outside the Network
4
+ *********************************************************************************
5
+
6
+
7
+ use Data\NationalCntyYr.dta,clear
8
+
9
+
10
+
11
+ ********************************************************************************
12
+ ********** gen interactions
13
+
14
+
15
+ gen nhXZenghu_all_invdist=nonhunan*Zenghu_all_invdist
16
+ gen hXZenghu_all_invdist=hunan*Zenghu_all_invdist
17
+
18
+ gen nhXZeng_all0_invdist=nonhunan*Zeng_all0_invdist
19
+ gen hXZeng_all0_invdist=hunan*Zeng_all0_invdist
20
+
21
+
22
+ foreach x of varlist hunan Zenghu_all_invdist Zeng_all0_invdist Zeng_all0_invdist_pc invdist0_L1 invdist0_F1 Zeng_exam0_invdist Zeng_Extraexam_invdist Zeng_BMF_invdist Zeng_juren0_invdist nhXZenghu_all_invdist nhXZeng_all0_invdist hXZenghu_all_invdist hXZeng_all0_invdist{
23
+ gen `x'Xperiod=`x'*period
24
+
25
+ }
26
+
27
+
28
+ foreach x of varlist lnurbanpop prefcap lnjinshi lncntyquota0 lncntypop lncntyarea mainriv dist2canal lnrice lnwheat dist_nanjing Taiping_route1 {
29
+ gen `x'Xperiod=`x'*period
30
+
31
+ }
32
+ foreach x of varlist lnurbanpop prefcap lnjinshi lncntyquota0 lncntypop lncntyarea mainriv dist2canal lnrice lnwheat dist_nanjing Taiping_route1 {
33
+ gen h`x'Xperiod=hunan*`x'*period
34
+ }
35
+
36
+
37
+
38
+ ********************************************************************************
39
+
40
+ keep if year>=1820
41
+
42
+ foreach x of varlist alloff ZengConnected NotZengConnected entry reentry {
43
+ sum `x'
44
+ gen `x'_byavg=`x'/r(mean)
45
+ }
46
+
47
+
48
+
49
+ ********************************************************************************
50
+
51
+
52
+ *********
53
+
54
+
55
+ reghdfe alloff_byavg lnurbanpopXperiod-Taiping_route1Xperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod, absorb(year samcntyid ) cluster(prefid )
56
+ outreg2 using Results\Appendix_Table_C2.doc, keep( hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod) se bdec(3) rdec(3) nocons replace
57
+
58
+
59
+
60
+ *********
61
+ reghdfe ZengConnected_byavg lnurbanpopXperiod-Taiping_route1Xperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod, absorb(year samcntyid ) cluster(prefid )
62
+ outreg2 using Results\Appendix_Table_C2.doc, keep( hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod) se bdec(3) rdec(3) nocons append
63
+
64
+
65
+ *********
66
+
67
+ reghdfe NotZengConnected_byavg lnurbanpopXperiod-Taiping_route1Xperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod, absorb(year samcntyid) cluster(prefid )
68
+ outreg2 using Results\Appendix_Table_C2.doc, keep( hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod) se bdec(3) rdec(3) nocons append
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
104/replication_package/Replication/Programs/Appendix_Table_C3.do ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ *********************************************************************************
3
+ **** Table C.3. The Impact of Elite Networks on Exam Quotas and Numbers of Jinshi
4
+ *********************************************************************************
5
+
6
+
7
+ use Data\NationalCntyYr.dta,clear
8
+
9
+
10
+ ********************************************************************************
11
+ ********** gen interactions
12
+
13
+
14
+ gen hXZeng_all0_invdist=hunan*Zeng_all0_invdist
15
+
16
+
17
+ foreach x of varlist hunan Zeng_all0_invdist hXZeng_all0_invdist{
18
+ gen `x'Xperiod=`x'*period
19
+
20
+ }
21
+
22
+ foreach x of varlist lnurbanpop prefcap lnjinshi lncntyquota0 lncntypop lncntyarea mainriv dist2canal lnrice lnwheat dist_nanjing Taiping_route1 {
23
+ gen `x'Xperiod=`x'*period
24
+
25
+ }
26
+
27
+
28
+ ********************************************************************************
29
+
30
+ keep if year > =1820
31
+
32
+
33
+
34
+ *******
35
+
36
+ reghdfe lncntyquota_panel lnurbanpopXperiod-Taiping_route1Xperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod if year==1840|year==1880 , absorb(year samcntyid ) cluster(prefid )
37
+ outreg2 using Results\Appendix_Table_C3.doc, keep( hXZeng_all0_invdistXperiod ) se bdec(3) rdec(3) nocons replace
38
+
39
+
40
+ *******
41
+
42
+ reghdfe lnjinshi_panel lnurbanpopXperiod-Taiping_route1Xperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod if year==1840|year==1880, absorb(year samcntyid ) cluster(prefid )
43
+ outreg2 using Results\Appendix_Table_C3.doc, keep( hXZeng_all0_invdistXperiod ) se bdec(3) rdec(3) nocons append
44
+
45
+
46
+ *******
47
+
48
+ reghdfe alloff lnurbanpopXperiod-Taiping_route1Xperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod, absorb(year samcntyid ) cluster(prefid )
49
+ outreg2 using Results\Appendix_Table_C3.doc, keep( hXZeng_all0_invdistXperiod ) se bdec(3) rdec(3) nocons append
50
+
51
+
52
+ *******
53
+
54
+ reghdfe alloff lnjinshi_panel lncntyquota_panel lnurbanpopXperiod-Taiping_route1Xperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod , absorb(year samcntyid ) cluster(prefid )
55
+ outreg2 using Results\Appendix_Table_C3.doc, keep( hXZeng_all0_invdistXperiod lnjinshi_panel lncntyquota_panel) se bdec(3) rdec(3) nocons append
56
+
57
+
58
+ *******
59
+
60
+ gen lncntyquotaXperiod=lncntyquota*period
61
+ gen lnjinshi_aft50Xperiod=lnjinshi_aft50*period
62
+
63
+ reghdfe alloff lnjinshi_aft50Xperiod lncntyquotaXperiod lnurbanpopXperiod-Taiping_route1Xperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod , absorb(year samcntyid ) cluster(prefid )
64
+ outreg2 using Results\Appendix_Table_C3.doc, keep( hXZeng_all0_invdistXperiod lnjinshi_aft50Xperiod lncntyquotaXperiod) se bdec(3) rdec(3) nocons append
65
+
66
+
67
+
68
+
104/replication_package/Replication/Programs/Appendix_Table_C4.do ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ *********************************************************************************
3
+ ************************** Table C.4. The Impact of Elite Networks on Elite Power
4
+ *********************************************************************************
5
+
6
+
7
+ use Data\NationalCntyYr.dta,clear
8
+
9
+
10
+ ********************************************************************************
11
+ ********** gen interactions
12
+
13
+ gen hXZeng_all0_invdist=hunan*Zeng_all0_invdist
14
+
15
+
16
+ foreach x of varlist hunan Zeng_all0_invdist hXZeng_all0_invdist{
17
+ gen `x'Xperiod=`x'*period
18
+
19
+ }
20
+
21
+ foreach x of varlist lnurbanpop prefcap lnjinshi lncntyquota0 lncntypop lncntyarea mainriv dist2canal lnrice lnwheat dist_nanjing Taiping_route1 {
22
+ gen `x'Xperiod=`x'*period
23
+
24
+ }
25
+
26
+
27
+ ********************************************************************************
28
+
29
+ keep if year > = 1820
30
+
31
+
32
+ *********
33
+ *********
34
+ *********
35
+ *********
36
+ *********
37
+
38
+ reghdfe alloff lnurbanpopXperiod-Taiping_route1Xperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod , absorb(year samcntyid ) cluster(prefid )
39
+
40
+ outreg2 using Results\Appendix_Table_C4.doc, keep( hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod ) se bdec(3) rdec(3) nocons replace
41
+
42
+
43
+
44
+ reghdfe alloffd lnurbanpopXperiod-Taiping_route1Xperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod , absorb(year samcntyid ) cluster(prefid )
45
+
46
+ outreg2 using Results\Appendix_Table_C4.doc, keep( hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod ) se bdec(3) rdec(3) nocons append
47
+
48
+
49
+
50
+ reghdfe alloff lnurbanpopXperiod-Taiping_route1Xperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod if alloffd==1, absorb(year samcntyid ) cluster(prefid )
51
+
52
+ outreg2 using Results\Appendix_Table_C4.doc, keep( hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod ) se bdec(3) rdec(3) nocons append
53
+
54
+
55
+
56
+ *********
57
+
58
+
59
+ reghdfe alloff lnurbanpop prefcap lnjinshi lncntyquota0 lncntypop lncntyarea mainriv dist2canal lnrice lnwheat dist_nanjing Taiping_route1 lnurbanpopXperiod-Taiping_route1Xperiod hXZeng_all0_invdistXperiod Zeng_all0_invdist hXZeng_all0_invdist Zeng_all0_invdistXperiod hunanXperiod hunan, absorb(year ) cluster(prefid )
60
+
61
+ outreg2 using Results\Appendix_Table_C4.doc, keep( hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod ) se bdec(3) rdec(3) nocons append
62
+
63
+
64
+
65
+ *********
66
+ xi: zinb alloff i.year lnurbanpop prefcap lnjinshi lncntyquota0 lncntypop lncntyarea mainriv dist2canal lnrice lnwheat dist_nanjing Taiping_route1 lnurbanpopXperiod-Taiping_route1Xperiod hXZeng_all0_invdistXperiod Zeng_all0_invdist hXZeng_all0_invdist Zeng_all0_invdistXperiod hunanXperiod hunan, inflate( i.year lnurbanpop prefcap lnjinshi lncntyquota0 lncntypop lncntyarea mainriv dist2canal lnrice lnwheat dist_nanjing Taiping_route1 lnurbanpopXperiod-Taiping_route1Xperiod Zeng_all0_invdist hXZeng_all0_invdist hunanXperiod hunan) probit vce(cluster prefid)
67
+
68
+ margins , dydx(hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod)
69
+
70
+ outreg2 using Results\Appendix_Table_C4.doc, keep( hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod ) se bdec(3) rdec(3) nocons append
71
+
72
+
104/replication_package/Replication/Programs/Appendix_Table_C5.do ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *********************************************************************************
2
+ *Table C5.The Impact of Elite Networks and Elite Power: Varying Comparison Provinces
3
+ *********************************************************************************
4
+
5
+
6
+ use Data\NationalCntyYr.dta,clear
7
+
8
+
9
+ ********************************************************************************
10
+ ********** gen interactions
11
+
12
+ gen hXZeng_all0_invdist=hunan*Zeng_all0_invdist
13
+ gen hXZeng_exam0_invdist=hunan*Zeng_exam0_invdist
14
+ gen hXZeng_Extraexam_invdist=hunan*Zeng_Extraexam_invdist
15
+
16
+
17
+ foreach x of varlist hunan Zeng_all0_invdist Zenghu_all_invdist Zeng_exam0_invdist Zeng_Extraexam_invdist hXZeng_all0_invdist hXZeng_exam0_invdist hXZeng_Extraexam_invdist martyrs_tot_post{
18
+ gen `x'Xperiod=`x'*period
19
+
20
+ }
21
+
22
+ foreach x of varlist lnurbanpop prefcap lnjinshi lncntyquota0 lncntypop lncntyarea mainriv dist2canal lnrice lnwheat dist_nanjing Taiping_route1 {
23
+ gen `x'Xperiod=`x'*period
24
+
25
+ }
26
+
27
+ ********************************************************************************
28
+
29
+ keep if year > =1820
30
+
31
+
32
+ ******************************* Hunan vs. Guangxi, Hubei, Jiangxi, Anhui and Jiangsu
33
+
34
+ reghdfe alloff hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod lnurbanpopXperiod-Taiping_route1Xperiod if provcd==11|provcd==5|provcd==16|provcd==10| provcd==3| provcd==2, absorb(year samcntyid) cluster(prefid samcntyid)
35
+
36
+ outreg2 using Results\Appendix_Table_C5.doc, keep( hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod ) se bdec(3) rdec(3) nocons replace
37
+
38
+
39
+ reghdfe alloff martyrs_tot_postXperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod lnurbanpopXperiod-Taiping_route1Xperiod if provcd==11|provcd==5|provcd==16|provcd==10| provcd==3| provcd==2, absorb(year samcntyid ) cluster(prefid samcntyid)
40
+
41
+
42
+ outreg2 using Results\Appendix_Table_C5.doc, keep(martyrs_tot_postXperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod ) se bdec(3) rdec(3) nocons append
43
+
44
+
45
+ ******************************* Hunan vs. Guangxi, Hubei and Jiangxi
46
+
47
+ reghdfe alloff hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod lnurbanpopXperiod-Taiping_route1Xperiod if provcd==11|provcd==5|provcd==16|provcd==10, absorb(year samcntyid ) cluster(prefid samcntyid)
48
+
49
+ outreg2 using Results\Appendix_Table_C5.doc, keep(martyrs_tot_postXperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod ) se bdec(3) rdec(3) nocons append
50
+
51
+
52
+ reghdfe alloff martyrs_tot_postXperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod lnurbanpopXperiod-Taiping_route1Xperiod if provcd==11|provcd==5|provcd==16|provcd==10, absorb(year samcntyid ) cluster(prefid samcntyid)
53
+
54
+
55
+ outreg2 using Results\Appendix_Table_C5.doc, keep(martyrs_tot_postXperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod ) se bdec(3) rdec(3) nocons append
56
+
57
+
58
+
59
+ ******************************* Hunan vs. Anhui and Jiangsu
60
+
61
+ reghdfe alloff hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod lnurbanpopXperiod-Taiping_route1Xperiod if provcd==11| provcd==3| provcd==2, absorb(year samcntyid) cluster(prefid samcntyid)
62
+
63
+ outreg2 using Results\Appendix_Table_C5.doc, keep(martyrs_tot_postXperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod ) se bdec(3) rdec(3) nocons append
64
+
65
+
66
+ reghdfe alloff martyrs_tot_postXperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod lnurbanpopXperiod-Taiping_route1Xperiod if provcd==11| provcd==3| provcd==2, absorb(year samcntyid) cluster(prefid samcntyid)
67
+
68
+
69
+ outreg2 using Results\Appendix_Table_C5.doc, keep(martyrs_tot_postXperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod ) se bdec(3) rdec(3) nocons append
104/replication_package/Replication/Programs/Appendix_Table_C6.do ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ *********************************************************************************
3
+ *Table C6.The Impact of Elite Networks and Elite Power: Controlling for Placebo Networks
4
+ *********************************************************************************
5
+
6
+
7
+ use Data\NationalCntyYr.dta,clear
8
+
9
+
10
+
11
+ ********************************************************************************
12
+ ********** gen interactions
13
+
14
+
15
+ gen hXZeng_exam0_invdist=hunan*Zeng_exam0_invdist
16
+
17
+ gen hXinvdist0_F1=invdist0_F1*hunan
18
+ gen hXinvdist0_L1=invdist0_L1*hunan
19
+
20
+
21
+
22
+ foreach x of varlist hunan Zeng_all0_invdist Zenghu_all_invdist Zeng_exam0_invdist Zeng_Extraexam_invdist hXZeng_exam0_invdist martyrs_tot_post hXinvdist0_F1 hXinvdist0_L1 invdist0_L1 invdist0_F1{
23
+ gen `x'Xperiod=`x'*period
24
+
25
+ }
26
+
27
+ foreach x of varlist lnurbanpop prefcap lnjinshi lncntyquota0 lncntypop lncntyarea mainriv dist2canal lnrice lnwheat dist_nanjing Taiping_route1 {
28
+ gen `x'Xperiod=`x'*period
29
+
30
+ }
31
+
32
+
33
+
34
+ ********************************************************************************
35
+
36
+ keep if year > =1820
37
+
38
+ ********************************************************************************
39
+
40
+
41
+ ivreghdfe alloff (martyrs_tot_postXperiod = hXZeng_exam0_invdistXperiod ) Zeng_exam0_invdistXperiod hunanXperiod lnurbanpopXperiod-Taiping_route1Xperiod , absorb(year samcntyid ) cluster(prefid )
42
+
43
+ outreg2 using Results\Appendix_Table_C6.doc, keep( hXZeng_exam0_invdistXperiod martyrs_tot_postXperiod Zeng_exam0_invdistXperiod hXinvdist0_L1Xperiod invdist0_L1Xperiod hXinvdist0_F1Xperiod invdist0_F1Xperiod hunanXperiod ) se bdec(3) rdec(3) nocons replace
44
+
45
+
46
+
47
+ ivreghdfe alloff (martyrs_tot_postXperiod = hXZeng_exam0_invdistXperiod ) Zeng_exam0_invdistXperiod hXinvdist0_L1Xperiod invdist0_L1Xperiod hXinvdist0_F1Xperiod invdist0_F1Xperiod hunanXperiod lnurbanpopXperiod-Taiping_route1Xperiod , absorb(year samcntyid ) cluster(prefid )
48
+
49
+ outreg2 using Results\Appendix_Table_C6.doc, keep( hXZeng_exam0_invdistXperiod martyrs_tot_postXperiod Zeng_exam0_invdistXperiod hXinvdist0_L1Xperiod invdist0_L1Xperiod hXinvdist0_F1Xperiod invdist0_F1Xperiod hunanXperiod ) se bdec(3) rdec(3) nocons append
50
+
51
+
52
+
53
+
104/replication_package/Replication/Programs/Appendix_Table_C7.do ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ *********************************************************************************************************
3
+ ********** Table C.7. The Changes in Power Distribution by Decade
4
+ *********************************************************************************************************
5
+
6
+
7
+ use Data\EG_Index.dta, clear
8
+
9
+
10
+ **** Gen Hunan dummy
11
+ gen hunan=(provcd==11)
12
+
13
+
14
+ **** Gen number of offices net of the effect of connections*Hunan
15
+ gen alloff_NoConn=alloff
16
+ replace alloff_NoConn=alloff_NoConn-estimate*Zeng_all0_invdist if hunan==1
17
+
18
+ sort provcd year
19
+ collapse (sum) alloff alloff_NoConn labor, by(provcd year)
20
+
21
+
22
+ sort year
23
+ by year: egen tot_labor=sum(labor)
24
+ gen x=labor/tot_labor
25
+
26
+ gen x2=x^2
27
+ sort year
28
+ by year: egen sigmax2=sum(x2)
29
+
30
+
31
+
32
+ local vars "alloff alloff_NoConn"
33
+
34
+ foreach y of local vars {
35
+
36
+ sort year
37
+ by year: egen t`y'=sum(`y')
38
+ gen s`y'=`y'/t`y'
39
+
40
+ gen H`y'=1/t`y'
41
+
42
+ gen sminusx`y'=(s`y'-x)
43
+
44
+ gen sminusx2`y'=(s`y'-x)^2
45
+ sort year
46
+ by year: egen G`y'=sum(sminusx2`y')
47
+
48
+ gen gama`y'=(G`y'-(1-sigmax2)*H`y')/((1-sigmax2)*(1-H`y'))
49
+ }
50
+
51
+
52
+
53
+ ****************** ****************** ****************** ******************
54
+
55
+ keep if provcd==10
56
+
57
+ keep year gamaalloff gamaalloff_NoConn
58
+
59
+ label var gamaalloff "EG Index"
60
+ label var gamaalloff_NoConn "EG Index excluding the Hunan*connected officials"
61
+
62
+ ****
63
+
64
+
65
+
66
+ *************************** Table C.7. The Changes in Power Distribution by Decade
67
+
68
+ gen dec=int(year/10)
69
+ table dec
70
+ table dec, c(mean gamaalloff mean gamaalloff_NoConn)
71
+
72
+
104/replication_package/Replication/Programs/Figure_3.do ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ***************************************************************************************
3
+ ************************** Figure 3: Motivational Evidence on Elite Networks and Soldier Deaths
4
+ ****************************************************************************************
5
+
6
+ use Data\HunanCntyYr.dta,clear
7
+
8
+ *********************************************************************************
9
+
10
+ gen connect=(Zeng_all0_invdist>0)
11
+
12
+
13
+ **** **** ****
14
+ gen year0=year
15
+ tabout year0 connect using Results\Figure_3.txt, replace cells(mean martyr) format(3) sum
16
+
17
+
18
+ **** **** **** **** **** **** ******* **** **** **** **** **** ******* **** **** **** **** **** ***
19
+ **** **** **** **** **** **** **** graphing: parallel
20
+
21
+ clear
22
+ import delimited "Results\Figure_3.txt"
23
+ drop in 1/3
24
+ drop in 16
25
+ destring v1, force gen(year)
26
+ destring v2, force gen(NonConnect_martyr)
27
+ destring v3, force gen(Connect_martyr)
28
+ destring v4, force gen(tot_martyr)
29
+
30
+ drop v1 v2 v3 v4
31
+ sum
32
+ sort year
33
+
34
+ twoway connect Connect_martyr year, msymbol(O) mc(gs6) lp(solid) lc(gs6) lw(medthick) || ///
35
+ connect NonConnect_martyr year, legend(order(1 "Connected" 2 "Unconnected") row(2)) ylabel(0(40)120) msymbol(Oh) mc(gs6) lp(dash) lc(gs6) lw(medthick) ///
36
+ xsize(8) ysize(6) xline(1853, lc(blue) lp(solid)) graphregion( color(white) ifcolor(white) ilcolor(white) fcolor(white)) title("Number of soldier deaths:" "connected & unconnected counties in Hunan", size(median) )
37
+
38
+
39
+ graph export Results\Figure_3.png, replace
40
+
41
+
104/replication_package/Replication/Programs/Figure_4.do ADDED
@@ -0,0 +1,285 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ *********************************************************************************
3
+ *** Figure 4: The Impact of Elite Connections on Soldier Deaths: Year-by-Year Estimates
4
+ *********************************************************************************
5
+
6
+
7
+ use Data\HunanCntyYr.dta,clear
8
+
9
+
10
+ ********************************************************************************
11
+ ********************** gen Zeng Guofan period dummies
12
+
13
+ gen Post=0 if year<1854
14
+ replace Post=1 if year>=1854&year<=1864
15
+
16
+
17
+
18
+ foreach y of varlist Zeng_all0_invdist_pc Zeng_all0_pc Zenghu_all Zenghu_all_invdist Zeng_all0 Zeng_all0_invdist Zeng_exam0_invdist Zeng_BMF_invdist Zeng_Juren_invdist lnarea capital lnurbanpop lnpop dist_nanjing lnjinshi lnquotas mainriv route1 dist2canal lnwheat lnrice {
19
+ gen `y'_Post=`y'*Post
20
+
21
+ }
22
+
23
+
24
+ ********************** ********************** ********************** **********************
25
+ ********************** gen year dummies
26
+
27
+
28
+ tab year, gen(year)
29
+ local r=1
30
+ while `r'<16 {
31
+ local s=`r'+1849
32
+ rename year`r' yr`s'
33
+ local r=`r'+1
34
+ }
35
+
36
+ **
37
+ foreach y of varlist Zeng_all0_invdist Zeng_all0 Zeng_all0_invdist_pc Zeng_all0_pc{
38
+ foreach x of varlist yr1850-yr1852 yr1854-yr1864 {
39
+ gen `y'_`x'=`y'*`x'
40
+ }
41
+ }
42
+
43
+
44
+ **************************
45
+
46
+ egen prefidXyear=group(prefid year)
47
+
48
+
49
+ *** *** *** *** *** *** *** *** *** *** ***
50
+ *** *** *** *** *** *** *** *** *** *** *** Weighted
51
+
52
+
53
+ xi: reghdfe lnmartyr1 Zeng_all0_invdist_yr* capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
54
+
55
+ outreg2 using Results\Placebo_Yearly_ctrl_all0_invdist.doc, keep(Zeng_all0_invdist_yr* ) se bdec(3) rdec(3) nocons replace
56
+ parmest, saving( Results\Placebo_Yearly_ctrl_all0_invdist, replace)
57
+
58
+
59
+
60
+ *** *** *** *** *** *** *** *** *** *** ***
61
+ *** *** *** *** *** *** *** *** *** *** *** unweighted
62
+
63
+ xi: reghdfe lnmartyr1 Zeng_all0_yr* capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
64
+
65
+ outreg2 using Results\Placebo_Yearly_ctrl_all0_invdist.doc, keep(Zeng_all0_yr* ) se bdec(3) rdec(3) nocons append
66
+ parmest, saving( Results\Placebo_Yearly_ctrl_all0, replace)
67
+
68
+
69
+ *** *** *** *** *** *** *** *** *** *** ***
70
+ *** *** *** *** *** *** *** *** *** *** *** per capita weighted
71
+
72
+ xi: reghdfe lnmartyr1 Zeng_all0_invdist_pc_yr* capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
73
+
74
+ outreg2 using Results\Placebo_Yearly_ctrl_all0_invdist.doc, keep(Zeng_all0_invdist_pc_yr* ) se bdec(3) rdec(3) nocons append
75
+ parmest, saving( Results\Placebo_Yearly_ctrl_all0_invdist_pc, replace)
76
+
77
+
78
+
79
+ *** *** *** *** *** *** *** *** *** *** ***
80
+ *** *** *** *** *** *** *** *** *** *** *** per capita unweighted
81
+
82
+
83
+ xi: reghdfe lnmartyr1 Zeng_all0_pc_yr* capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post , absorb(year cntyid prefidXyear) cluster(cntyid)
84
+
85
+ outreg2 using Results\Placebo_Yearly_ctrl_all0_invdist.doc, keep(Zeng_all0_pc_yr* ) se bdec(3) rdec(3) nocons append
86
+ parmest, saving( Results\Placebo_Yearly_ctrl_all0_pc, replace)
87
+
88
+
89
+
90
+
91
+ ********************************* Graphing
92
+ *********************************
93
+ *********************************
94
+ preserve
95
+ use Results\Placebo_Yearly_ctrl_all0_invdist, clear
96
+
97
+
98
+ gen i=_n
99
+ keep if i<=15
100
+ gen time=i
101
+
102
+
103
+ gen zero=0
104
+ label var zero "the effect = 0"
105
+ label var estimate "the coefficent of logged total deaths"
106
+
107
+ keep time max95 min95 time estimate zero
108
+
109
+
110
+
111
+ replace time=time+1 if time>3
112
+ replace time=4 if time==16
113
+
114
+ foreach x of varlist estimate {
115
+ replace `x'=0 if time==4
116
+ }
117
+
118
+ foreach x of varlist max95 min95 {
119
+ replace `x'=0 if time==4
120
+ }
121
+
122
+ replace time=1849+time
123
+
124
+
125
+ ****
126
+ sort time
127
+ label var time "Year"
128
+
129
+
130
+ twoway (rcap max95 min95 time, ylabel(-0.25(0.25)0.5) lstyle(ci) xtitle(" ") ) ///
131
+ (connect estimate time, lp(solid) lc(black) lw(medthick) xline(1853, lpattern(solid) lcolor(blue) lw(medthick)) xsize(6) ysize(6)) ///
132
+ (scatter estimate time, mstyle(p1) yline(0, lpattern(solid) lcolor(red)) ///
133
+ legend(off) xlabel(1850(5)1865) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) saving(Results\Yearly1_All0_invdist, replace) title(A. Weighted connections, size(medsmall)))
134
+
135
+
136
+ restore
137
+
138
+
139
+
140
+
141
+ *********************************
142
+ preserve
143
+ use Results\Placebo_Yearly_ctrl_all0, clear
144
+
145
+
146
+ gen i=_n
147
+ keep if i<=15
148
+ gen time=i
149
+
150
+
151
+ gen zero=0
152
+ label var zero "the effect = 0"
153
+ label var estimate "the coefficent of logged total deaths"
154
+
155
+ keep time max95 min95 time estimate zero
156
+
157
+
158
+
159
+ replace time=time+1 if time>3
160
+ replace time=4 if time==16
161
+
162
+ foreach x of varlist estimate {
163
+ replace `x'=0 if time==4
164
+ }
165
+
166
+ foreach x of varlist max95 min95 {
167
+ replace `x'=0 if time==4
168
+ }
169
+
170
+ replace time=1849+time
171
+
172
+
173
+ ****
174
+ sort time
175
+ label var time "Year"
176
+
177
+
178
+ twoway (rcap max95 min95 time, ylabel(-0.25(0.25)0.5) lstyle(ci) xtitle(" ") ) ///
179
+ (connect estimate time, lp(solid) lc(black) lw(medthick) xline(1853, lpattern(solid) lcolor(blue) lw(medthick)) xsize(6) ysize(6)) ///
180
+ (scatter estimate time, mstyle(p1) yline(0, lpattern(solid) lcolor(red)) ///
181
+ legend(off) xlabel(1850(5)1865) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) saving(Results\Yearly1_All0, replace) title(B. Unweighted connections, size(medsmall)))
182
+
183
+
184
+ restore
185
+
186
+
187
+
188
+
189
+ *********************************
190
+ preserve
191
+ use Results\Placebo_Yearly_ctrl_all0_invdist_pc, clear
192
+
193
+
194
+ gen i=_n
195
+ keep if i<=15
196
+ gen time=i
197
+
198
+
199
+ gen zero=0
200
+ label var zero "the effect = 0"
201
+ label var estimate "the coefficent of logged total deaths"
202
+
203
+ keep time max95 min95 time estimate zero
204
+
205
+
206
+
207
+ replace time=time+1 if time>3
208
+ replace time=4 if time==16
209
+
210
+ foreach x of varlist estimate {
211
+ replace `x'=0 if time==4
212
+ }
213
+
214
+ foreach x of varlist max95 min95 {
215
+ replace `x'=0 if time==4
216
+ }
217
+
218
+ replace time=1849+time
219
+
220
+
221
+ ****
222
+ sort time
223
+ label var time "Year"
224
+
225
+
226
+ twoway (rcap max95 min95 time, ylabel(-0.08(0.08)0.16) lstyle(ci) xtitle(" ") ) ///
227
+ (connect estimate time, lp(solid) lc(black) lw(medthick) xline(1853, lpattern(solid) lcolor(blue) lw(medthick)) xsize(6) ysize(6)) ///
228
+ (scatter estimate time, mstyle(p1) yline(0, lpattern(solid) lcolor(red)) ///
229
+ legend(order(2 "Effects of elite connections") size(small) row(1) region(color(none))) xlabel(1850(5)1865) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) saving(Results\Yearly1_All0_invdist_pc, replace) title(C. Weighted connections per capita, size(medsmall)))
230
+
231
+ restore
232
+
233
+
234
+
235
+
236
+ *********************************
237
+ preserve
238
+ use Results\Placebo_Yearly_ctrl_all0_pc, clear
239
+
240
+
241
+ gen i=_n
242
+ keep if i<=15
243
+ gen time=i
244
+
245
+
246
+ gen zero=0
247
+ label var zero "the effect = 0"
248
+ label var estimate "the coefficent of logged total deaths"
249
+
250
+ keep time max95 min95 time estimate zero
251
+
252
+
253
+
254
+ replace time=time+1 if time>3
255
+ replace time=4 if time==16
256
+
257
+ foreach x of varlist estimate {
258
+ replace `x'=0 if time==4
259
+ }
260
+
261
+ foreach x of varlist max95 min95 {
262
+ replace `x'=0 if time==4
263
+ }
264
+
265
+ replace time=1849+time
266
+
267
+
268
+ ****
269
+ sort time
270
+ label var time "Year"
271
+
272
+
273
+
274
+ twoway (rcap max95 min95 time, ylabel(-0.08(0.08)0.16) lstyle(ci) xtitle(" ") ) ///
275
+ (connect estimate time, lp(solid) lc(black) lw(medthick) xline(1853, lpattern(solid) lcolor(blue) lw(medthick)) xsize(6) ysize(6)) ///
276
+ (scatter estimate time, mstyle(p1) yline(0, lpattern(solid) lcolor(red)) ///
277
+ legend(order(1 "95% CI") size(small) row(1) region(color(none))) xlabel(1850(5)1865) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) saving(Results\Yearly1_All0_pc, replace) title(D. Unweighted connections per capita, size(medsmall)))
278
+
279
+
280
+ restore
281
+
282
+
283
+ gr combine Results\Yearly1_All0_invdist.gph Results\Yearly1_All0.gph Results\Yearly1_All0_invdist_pc.gph Results\Yearly1_All0_pc.gph , row(2) ysize(18) xsize(15) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white))
284
+ graph export Results\Figure_4.png, replace
285
+
104/replication_package/Replication/Programs/Figure_5.do ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ *********************************************************************************************************
3
+ ***************** Figure 5: Motivational Evidence for the Power Effect
4
+ *********************************************************************************************************
5
+
6
+ use Data\NationalCntyYr.dta,clear
7
+
8
+
9
+ ********************************************************************************
10
+
11
+ gen connect=(Zenghu_all_invdist>0)
12
+ gen death=(martyrs_tot_post>0)
13
+
14
+ table hunan connect
15
+ gen hunanXconnect=1
16
+ replace hunanXconnect=4 if hunan==1&connect==1
17
+ replace hunanXconnect=3 if hunan==0&connect==1
18
+ replace hunanXconnect=2 if hunan==1&connect==0
19
+ table year hunanXconnect
20
+
21
+ keep if year>=1820
22
+
23
+ ****************************************************************************************
24
+ preserve
25
+ tabout year hunanXconnect using Results\Official_HunanXconn_1800_1910.txt, replace cells(mean alloff) format(3) sum
26
+
27
+ clear
28
+ import delimited "Results\Official_HunanXconn_1800_1910.txt"
29
+ drop in 1/3
30
+ drop in 92
31
+ sum
32
+ destring v1, force gen(year)
33
+ destring v2, force gen(UnXnonHunan)
34
+ destring v3, force gen(UnXHunan)
35
+ destring v4, force gen(ConnXnonHunan)
36
+ destring v5, force gen(ConnXHunan)
37
+
38
+
39
+
40
+ drop v1 v2 v3 v4 v5 v6
41
+ sort year
42
+
43
+ twoway (connect ConnXHunan year, m(O) msize(vsmall) mc(gs6) lp(solid) lc(gs6) ylabel(0(0.2)0.8) ) ///
44
+ (connect ConnXnonHunan year, m(Oh) msize(vsmall) mc(gs6) lp(dash) lc(gs6) ) ///
45
+ (line UnXHunan year, lp(solid) lc(gs6) xlabel(1820(10)1910) ) ///
46
+ (line UnXnonHunan year, lp(dash) lc(gs6) xsize(8) ysize(6) xline(1850, lc(blue) lp(dash)) xline(1853, lc(blue) lp(solid)) xline(1864, lc(blue) lp(dash)) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) xtitle(Year) ytitle(Number of natioinal-offices) legend(order(1 "Connected, Hunan (38)" 2 "Connected, non-Hunan (670)" 3 "Unconnected, Hunan (37)" 4 "Unconnected, non-Hunan (901)") row(2) size(small)) title("Number of national-offices" "Connected & unconnected counties in Hunan and non-Hunan", size(median)) )
47
+
48
+
49
+ graph export Results\Figure_5.png, replace
50
+
51
+
52
+
104/replication_package/Replication/Programs/Figure_6.do ADDED
@@ -0,0 +1,284 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ *********************************************************************************************************
4
+ **** Figure 6: The dynamic impacts of elite network on national-level office
5
+ *********************************************************************************************************
6
+
7
+
8
+ use Data\NationalCntyYr.dta,clear
9
+
10
+
11
+ ********************************************************************************
12
+ ********** gen interactions
13
+
14
+
15
+ gen nhXZenghu_all_invdist=nonhunan*Zenghu_all_invdist
16
+ gen hXZenghu_all_invdist=hunan*Zenghu_all_invdist
17
+
18
+ gen nhXZeng_all0_invdist=nonhunan*Zeng_all0_invdist
19
+ gen hXZeng_all0_invdist=hunan*Zeng_all0_invdist
20
+
21
+
22
+ foreach x of varlist hunan Zenghu_all_invdist Zeng_all0_invdist Zeng_all0_invdist_pc invdist0_L1 invdist0_F1 Zeng_exam0_invdist Zeng_Extraexam_invdist Zeng_BMF_invdist Zeng_juren0_invdist nhXZenghu_all_invdist nhXZeng_all0_invdist hXZenghu_all_invdist hXZeng_all0_invdist{
23
+ gen `x'Xperiod1=`x'*period1
24
+ gen `x'Xperiod2=`x'*period2
25
+ gen `x'Xperiod=`x'*period
26
+
27
+ }
28
+
29
+
30
+ foreach x of varlist lnurbanpop prefcap lnjinshi lncntyquota0 lncntypop lncntyarea mainriv dist2canal lnrice lnwheat dist_nanjing Taiping_route1 {
31
+ gen `x'Xperiod1=`x'*period1
32
+ gen `x'Xperiod2=`x'*period2
33
+ gen `x'Xperiod=`x'*period
34
+
35
+ }
36
+
37
+ foreach x of varlist lnurbanpop prefcap lnjinshi lncntyquota0 lncntypop lncntyarea mainriv dist2canal lnrice lnwheat dist_nanjing Taiping_route1 {
38
+ gen h`x'Xperiod1=hunan*`x'*period1
39
+ gen h`x'Xperiod2=hunan*`x'*period2
40
+ gen h`x'Xperiod=hunan*`x'*period
41
+ }
42
+
43
+
44
+
45
+
46
+ ********************************************************************************
47
+ ********** gen year dummy & interactions
48
+
49
+
50
+ drop if year==.
51
+ tab year, gen(year)
52
+
53
+
54
+ foreach x of varlist year2-year111 {
55
+ gen hunanX`x'=hunan*`x'
56
+
57
+
58
+ }
59
+
60
+ ***************************************************************
61
+ foreach x of varlist year2-year111 {
62
+ gen Zeng_all0_invdistX`x'=Zeng_all0_invdist*`x'
63
+ }
64
+
65
+ ********
66
+ foreach x of varlist year2-year111 {
67
+ gen hXZeng_all0_invdistX`x'=hXZeng_all0_invdist*`x'
68
+ }
69
+
70
+
71
+ ********
72
+ foreach x of varlist year2-year111 {
73
+ gen nhXZeng_all0_invdistX`x'=nhXZeng_all0_invdist*`x'
74
+ }
75
+
76
+
77
+ ***************************************************************
78
+ foreach x of varlist year2-year111 {
79
+ gen Zenghu_all_invdistX`x'=Zenghu_all_invdist*`x'
80
+ }
81
+
82
+ ********
83
+ foreach x of varlist year2-year111 {
84
+ gen hXZenghu_all_invdistX`x'=hXZenghu_all_invdist*`x'
85
+ }
86
+
87
+
88
+ ********
89
+ foreach x of varlist year2-year111 {
90
+ gen nhXZenghu_all_invdistX`x'=nhXZenghu_all_invdist*`x'
91
+ }
92
+
93
+
94
+ ********************************************************************************
95
+
96
+
97
+ reghdfe alloff hXZeng_all0_invdistXyear22-hXZeng_all0_invdistXyear111 nhXZeng_all0_invdistXyear22-nhXZeng_all0_invdistXyear111 hunanXyear22-hunanXyear111 lnurbanpopXperiod-Taiping_route1Xperiod , absorb(year samcntyid ) cluster(prefid )
98
+ parmest, saving( Results\ConnectionOnSenior_all0_yearly_01, replace)
99
+
100
+
101
+
102
+ reghdfe alloff hXZeng_all0_invdistXyear22-hXZeng_all0_invdistXyear111 Zeng_all0_invdistXyear22-Zeng_all0_invdistXyear111 hunanXyear22-hunanXyear111 lnurbanpopXperiod-Taiping_route1Xperiod , absorb(year samcntyid ) cluster(prefid )
103
+ parmest, saving( Results\ConnectionOnSenior_all0_yearly_02, replace)
104
+
105
+
106
+
107
+ preserve
108
+
109
+ **************
110
+
111
+ use Results\ConnectionOnSenior_all0_yearly_01, clear
112
+
113
+
114
+ gen i=_n
115
+ keep if i<=91
116
+ gen time=i
117
+
118
+
119
+
120
+ gen zero=0
121
+ label var zero "the effect = 0"
122
+ label var estimate "the coefficent of logged total deaths"
123
+
124
+ keep time max95 min95 time estimate zero
125
+
126
+
127
+ replace time=1820+time
128
+ replace time=1820 if time==1911
129
+
130
+
131
+ foreach x of varlist estimate {
132
+ replace `x'=0 if time==1820
133
+ }
134
+
135
+ foreach x of varlist max95 min95 {
136
+ replace `x'=0 if time==1820
137
+ }
138
+
139
+
140
+ gen year=time
141
+
142
+ ****
143
+ sort time
144
+ label var time "Year"
145
+
146
+
147
+ sum estimate if year<=1849
148
+ gen bench=r(mean)
149
+
150
+
151
+ *****
152
+ twoway (rarea max95 min95 time, lstyle(ci) msize(tiny) fc(gs12) c(none) lc(gs12)) (connect estimate time, msize(vsmall) lp(solid) lw(medthick) lc(gs7) xline(1850, lpattern(dash) lcolor(blue)) xline(1853, lpattern(solid) lcolor(blue)) xline(1864, lpattern(dash) lcolor(blue)) ) (line zero time , lp(dash) lw(medthick) lc(gs0) ) ///
153
+ , leg(region(lp(blank)) rows(3)) title("A. Hunan", size(medium) ) xlabel(1820(30)1910) ylabel(-0.2(0.2)0.4) legend(order(1 "95% CI" 2 "Effects of connections" ) row(2) region(color(none))) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) saving("Results\AllCnty_hunan_conn_All0_ctrl_0.gph", replace) xsize(3) ysize(3)
154
+
155
+ restore
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+ *********************************************************************************************************
166
+ **** the connection effects in non-Hunan
167
+
168
+ preserve
169
+
170
+ **************
171
+
172
+ use Results\ConnectionOnSenior_all0_yearly_01, clear
173
+
174
+
175
+ gen i=_n
176
+ keep if i>=91&i<=181
177
+ gen time=i-90
178
+
179
+
180
+ gen zero=0
181
+ label var zero "the effect = 0"
182
+ label var estimate "the coefficent of logged total deaths"
183
+
184
+ keep time max95 min95 time estimate zero
185
+
186
+
187
+ replace time=1820+time
188
+ replace time=1820 if time==1911
189
+
190
+
191
+ foreach x of varlist estimate {
192
+ replace `x'=0 if time==1820
193
+ }
194
+
195
+ foreach x of varlist max95 min95 {
196
+ replace `x'=0 if time==1820
197
+ }
198
+
199
+
200
+
201
+ gen year=time
202
+
203
+ ****
204
+ sort time
205
+ label var time "Year"
206
+
207
+
208
+ sum estimate if year<=1849
209
+ gen bench=r(mean)
210
+ *****
211
+ twoway (rarea max95 min95 time, lstyle(ci) msize(tiny) fc(gs12) c(none) lc(gs12)) (connect estimate time, msize(vsmall) lp(solid) lw(medthick) lc(gs7) xline(1850, lpattern(dash) lcolor(blue)) xline(1853, lpattern(solid) lcolor(blue)) xline(1864, lpattern(dash) lcolor(blue)) ) (line zero time , lp(dash) lw(medthick) lc(gs0) ) ///
212
+ , leg(region(lp(blank)) rows(3)) title("B. Non-Hunan", size(medium) ) xlabel(1820(30)1910) ylabel(-0.2(0.2)0.4) legend(order(1 "95% CI" 2 "Effects of connections" ) row(2) region(color(none))) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) saving("Results\AllCnty_nhunan_conn_All0_ctrl_0.gph", replace) xsize(3) ysize(3)
213
+
214
+ restore
215
+
216
+
217
+
218
+
219
+
220
+
221
+ *********************************************************************************************************
222
+ **** the difference in connection effects, hunan vs. non-hunan
223
+
224
+
225
+ preserve
226
+
227
+ **************
228
+
229
+ use Results\ConnectionOnSenior_all0_yearly_02, clear
230
+
231
+
232
+ gen i=_n
233
+ keep if i<=91
234
+ gen time=i
235
+
236
+
237
+ gen zero=0
238
+ label var zero "the effect = 0"
239
+ label var estimate "the coefficent of logged total deaths"
240
+
241
+ keep time max95 min95 time estimate zero
242
+
243
+
244
+ replace time=1820+time
245
+ replace time=1820 if time==1911
246
+
247
+
248
+ foreach x of varlist estimate {
249
+ replace `x'=0 if time==1820
250
+ }
251
+
252
+ foreach x of varlist max95 min95 {
253
+ replace `x'=0 if time==1820
254
+ }
255
+
256
+
257
+ gen year=time
258
+
259
+ ****
260
+ sort time
261
+ label var time "Year"
262
+
263
+
264
+ sum estimate if year<=1849
265
+ gen bench=r(mean)
266
+
267
+
268
+ *****
269
+ twoway (rarea max95 min95 time, lstyle(ci) msize(tiny) fc(gs12) c(none) lc(gs12)) (connect estimate time, msize(vsmall) lp(solid) lw(medthick) lc(gs7) xline(1850, lpattern(dash) lcolor(blue)) xline(1853, lpattern(solid) lcolor(blue)) xline(1864, lpattern(dash) lcolor(blue)) ) (line zero time , lp(dash) lw(medthick) lc(gs0) ) ///
270
+ , leg(region(lp(blank)) rows(3)) title("C. Difference between Hunan and non-Hunan", size(medium) ) xlabel(1820(30)1910) ylabel(-0.2(0.2)0.4) legend(order(1 "95% CI" 2 "Effects of connections * Hunan" ) row(2) region(color(none))) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) saving("Results\AllCnty_hXconn_All0_ctrl_0.gph", replace) xsize(3) ysize(3)
271
+
272
+ restore
273
+
274
+
275
+
276
+
277
+
278
+ *********************************************************************************************************
279
+ ************************************************** Yearly effect of connections in Hunan, non-hunan, and the difference
280
+ **************************************************
281
+
282
+ graph combine Results\AllCnty_hunan_conn_All0_ctrl_0.gph Results\AllCnty_nhunan_conn_All0_ctrl_0.gph Results\AllCnty_hXconn_All0_ctrl_0.gph , row(1) xsize(9) ysize(4.5) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white))
283
+
284
+ graph export Results\Figure_6.png, replace
104/replication_package/Replication/Programs/Figure_7.do ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ************************************************************************************************
3
+ ************* Figure 7: National-level Power Distribution and the Contribution of Elite Networks
4
+ ************************************************************************************************
5
+
6
+
7
+ use Data\EG_Index.dta, clear
8
+
9
+
10
+ **** Gen Hunan dummy
11
+ gen hunan=(provcd==11)
12
+
13
+
14
+ **** Gen number of offices net of the effect of connections*Hunan
15
+ gen alloff_NoConn=alloff
16
+ replace alloff_NoConn=alloff_NoConn-estimate*Zeng_all0_invdist if hunan==1
17
+
18
+ sort provcd year
19
+ collapse (sum) alloff alloff_NoConn labor, by(provcd year)
20
+
21
+
22
+ sort year
23
+ by year: egen tot_labor=sum(labor)
24
+ gen x=labor/tot_labor
25
+
26
+ gen x2=x^2
27
+ sort year
28
+ by year: egen sigmax2=sum(x2)
29
+
30
+
31
+
32
+
33
+ local vars "alloff alloff_NoConn"
34
+
35
+ foreach y of local vars {
36
+
37
+ sort year
38
+ by year: egen t`y'=sum(`y')
39
+ gen s`y'=`y'/t`y'
40
+
41
+ gen H`y'=1/t`y'
42
+
43
+ gen sminusx`y'=(s`y'-x)
44
+
45
+ gen sminusx2`y'=(s`y'-x)^2
46
+ sort year
47
+ by year: egen G`y'=sum(sminusx2`y')
48
+
49
+ gen gama`y'=(G`y'-(1-sigmax2)*H`y')/((1-sigmax2)*(1-H`y'))
50
+ }
51
+
52
+
53
+
54
+ ****************** ****************** ****************** ******************
55
+
56
+ keep if provcd==10
57
+
58
+
59
+ keep year gamaalloff gamaalloff_NoConn
60
+
61
+ gen hXconnRole=gamaalloff-gamaalloff_NoConn
62
+ label var hXconnRole "The role of Hunan*connections"
63
+
64
+
65
+ label var gamaalloff "EG Index"
66
+ label var gamaalloff_NoConn "EG Index excluding the Hunan*connected officials"
67
+
68
+
69
+ ****
70
+
71
+
72
+ *************************** Figure 7. National-level Power Distribution and the Contribution of Elite Networks
73
+
74
+
75
+ scatter gamaalloff year, ylabel(0(0.02)0.06) xlabel(1820(30)1910) ms(O) mc(gs4) msize(medium) || scatter gamaalloff_NoConn year, ylabel(0(0.02)0.06) xlabel(1820(30)1910) ms(Oh) mc(blue) msize(medium) mlwidth(medthick) xtitle(Year) ytitle(EG index) title(A. EG index) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) legend(order(1 "Real" 2 "Counterfactual: Net the effect of Hunan*connections") region(color(none))) saving(Results\ProvEG.gph, replace) xsize(4.5) ysize(4.5)
76
+
77
+ ****
78
+
79
+ scatter hXconnRole year, legend(on) xlabel(1820(30)1910) ylabel(0(0.01)0.03) ms(Oh) mc(gs1) mlwidth(medthick) msize(medium) xtitle(Year) ytitle(Difference in the two indices) title(B. The role of Hunan*connections) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) legend(order(1 "The role of Hunan*connections") region(color(none))) saving(Results\Role_hXconn.gph, replace) xsize(4.5) ysize(4.5)
80
+
81
+ graph combine Results\ProvEG.gph Results\Role_hXconn.gph, row(1) xsize(9) ysize(4.5) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white))
82
+
83
+ graph export Results\Figure_7.png, replace
84
+
104/replication_package/Replication/Programs/Figure_8.do ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ *********************************************************************************************************
3
+ ********** Figure 8. The Share of Provincial Officials from Connected Counties in Hunan
4
+ *********************************************************************************************************
5
+
6
+
7
+ use Data\ProvGovernors.dta, clear
8
+
9
+ ***** Gen the ratio from Hunan*counnected counties
10
+
11
+ gen RatioWar2053=mobbased2053/num2053
12
+ gen RatioWar5464=mobbased5464/num5464
13
+ gen RatioWar6599=mobbased6599/num6599
14
+
15
+
16
+
17
+ *************************** Figure 8. The Share of Provincial Officials from Connected Counties in Hunan
18
+
19
+
20
+ *Share of top-4 officials from Hunan*connected area
21
+ scatter RatioWar5464 RatioWar2053 if provinceid!=6, xlabel(0(0.1)0.3) ylabel(0(0.1)0.3, tposition(inside)) xtitle("From Hunan*connected counties, 1820-53", size(medium)) ytitle("From Hunan*connected counties, 1854-64", size(medium) margin(right)) ms(Oh) mc(blue) mlwidth(medthick) mlabel(prov_en) mlabcolor(black) mlabposition(1) xsize(6) ysize(6) title(A. 1820-53 (Pre-war) vs. 1854-64 (In-war), size(medium)) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) saving(Results\ProvChief1_HXConn.gph, replace)
22
+
23
+
24
+
25
+ **********************************************************
26
+
27
+ scatter RatioWar6599 RatioWar5464 if provinceid!=6 , xlabel(0(0.1)0.3) ylabel(0(0.1)0.3, tposition(inside)) xtitle("From Hunan*connected counties, 1854-64", size(medium)) ytitle("From Hunan*connected counties, 1865-99", size(medium) margin(right)) ms(Oh) mcolor(blue) mlwidth(medthick) mlabel(prov_en) mlabcolor(black) mlabposition(1) legend(off) xsize(6) ysize(6) title(B. 1854-64 (In-war) vs. 1865-99 (Post-war), size(medium)) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) saving(Results\ProvChief2_HXConn.gph, replace)
28
+
29
+
30
+
31
+ **********************************************************
32
+
33
+ twoway lfitci Yangtze RatioWar5464 if provinceid!=6 , ciplot(rline) lp(solid) lcolor(black) || scatter Yangtze RatioWar5464 , ms(Oh) mc(blue) mlwidth(medthick) legend(off) xtitle("From Hunan*connected counties, 1854-64", size(medium) margin(right)) ylabel(0(1)2, tposition(inside)) ytitle("Disobeying the imperial edict", size(medium)) xsize(6) ysize(6) title(C. Prob. of disobeying the state, size(medium)) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white)) saving(Results\ProvChief3_HXConn.gph, replace)
34
+
35
+
36
+
37
+ graph combine Results\ProvChief1_HXConn.gph Results\ProvChief2_HXConn.gph Results\ProvChief3_HXConn.gph, row(1) xsize(18) ysize(6) graphregion(color(white) ifcolor(white) ilcolor(white) fcolor(white))
38
+
39
+ graph export Results\Figure_8.png, replace width(3600) height(1200)
104/replication_package/Replication/Programs/Table_1.do ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ***************************************************************************************
3
+ ************************** Table 1: Summary Statistics
4
+ ****************************************************************************************
5
+
6
+ ************************** PanelA: Hunan
7
+
8
+ use Data\HunanCntyYr.dta,clear
9
+
10
+ ********************************************************************************
11
+
12
+
13
+ sum martyr martyrs_tot_hn Zeng_all0_invdist Zeng_all0_invdist_pc lnarea lnpop lnrice lnwheat mainriv dist2canal lnurbanpop capital lnjinshi lnquotas dist_nanjing route1
14
+
15
+
16
+ ********************************************************************************
17
+ ********************************************************************************
18
+
19
+ ************************** PanelB: All counties
20
+
21
+ use Data\NationalCntyYr.dta,clear
22
+
23
+
24
+ ********************************************************************************
25
+
26
+ sum martyrs_tot_post Zeng_all0_invdist alloff lncntyarea lncntypop lnrice lnwheat mainriv dist2canal lnurbanpop prefcap lnjinshi lncntyquota0 dist_nanjing Taiping_route1
27
+
28
+
29
+
30
+
104/replication_package/Replication/Programs/Table_2.do ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ***************************************************************************************
3
+ ************************** Table 2: The Impact of Elite Connections on Soldier Deaths: DD Estimates
4
+ ************************** Sample: Hunan counties, 1850--1864
5
+ ****************************************************************************************
6
+
7
+ use Data\HunanCntyYr.dta,clear
8
+
9
+ ********************************************************************************
10
+ ********************** gen Zeng Guofan period dummies
11
+
12
+ gen Post=0 if year<1854
13
+ replace Post=1 if year>=1854&year<=1864
14
+
15
+
16
+ foreach y of varlist Zeng_all0_invdist_pc Zeng_all0_pc Zenghu_all Zenghu_all_invdist Zeng_all0 Zeng_all0_invdist Zeng_exam0_invdist Zeng_BMF_invdist Zeng_Juren_invdist lnarea capital lnurbanpop lnpop dist_nanjing lnjinshi lnquotas mainriv route1 dist2canal lnwheat lnrice {
17
+ gen `y'_Post=`y'*Post
18
+
19
+ }
20
+
21
+
22
+ ********************************************************************************
23
+ ********************** regression
24
+
25
+
26
+ xi: reghdfe lnmartyr1 Zeng_all0_invdist_Post , absorb(year cntyid ) cluster( cntyid)
27
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons replace
28
+
29
+
30
+ xi: reghdfe lnmartyr1 lnurbanpop_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post , absorb(year cntyid) cluster( cntyid)
31
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
32
+
33
+
34
+
35
+ xi: reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post , absorb(year cntyid) cluster( cntyid)
36
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
37
+
38
+
39
+ xi: reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post , absorb(year cntyid) cluster( cntyid)
40
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
41
+
42
+
43
+
44
+ *** *** *** *** *** ***
45
+ *** *** *** *** *** ***
46
+
47
+ xi: reghdfe lnmartyr1 Zeng_all0_invdist_pc_Post , absorb(year cntyid) cluster( cntyid)
48
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_invdist_pc_Post ) se bdec(3) rdec(3) nocons append
49
+
50
+ xi: reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_pc_Post , absorb(year cntyid ) cluster( cntyid)
51
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_invdist_pc_Post ) se bdec(3) rdec(3) nocons append
52
+
53
+
54
+
55
+ *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
56
+ *** *** ***
57
+ xi: reghdfe lnmartyr1 Zeng_all0_Post , absorb(year cntyid) cluster( cntyid)
58
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_Post) se bdec(3) rdec(3) nocons append
59
+
60
+ **** *** ***
61
+ xi: reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_Post , absorb(year cntyid ) cluster( cntyid)
62
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_Post) se bdec(3) rdec(3) nocons append
63
+
64
+
65
+ *** *** ***
66
+ xi: reghdfe lnmartyr1 Zeng_all0_pc_Post , absorb(year cntyid) cluster( cntyid)
67
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_pc_Post ) se bdec(3) rdec(3) nocons append
68
+
69
+
70
+ xi: reghdfe lnmartyr1 capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_pc_Post , absorb(year cntyid ) cluster( cntyid)
71
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_pc_Post ) se bdec(3) rdec(3) nocons append
72
+
73
+
74
+
75
+
76
+
77
+ /*
78
+ ********** The same results using xtreg
79
+
80
+
81
+ xtreg lnmartyr1 i.year Zeng_all0_invdist_Post , fe cluster( cntyid)
82
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons replace
83
+
84
+
85
+ xtreg lnmartyr1 i.year lnurbanpop_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post , fe cluster( cntyid)
86
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
87
+
88
+
89
+
90
+ xtreg lnmartyr1 i.year capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post , fe cluster( cntyid)
91
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
92
+
93
+
94
+ xtreg lnmartyr1 i.year capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_Post , fe cluster( cntyid)
95
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
96
+
97
+
98
+
99
+ *** *** *** *** *** ***
100
+ *** *** *** *** *** ***
101
+
102
+ xtreg lnmartyr1 i.year Zeng_all0_invdist_pc_Post , fe cluster( cntyid)
103
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_invdist_pc_Post ) se bdec(3) rdec(3) nocons append
104
+
105
+ xtreg lnmartyr1 i.year capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_invdist_pc_Post , fe cluster( cntyid)
106
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_invdist_pc_Post ) se bdec(3) rdec(3) nocons append
107
+
108
+
109
+
110
+ *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
111
+ *** *** ***
112
+ xtreg lnmartyr1 i.year Zeng_all0_Post , fe cluster( cntyid)
113
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_Post) se bdec(3) rdec(3) nocons append
114
+
115
+ **** *** ***
116
+ xtreg lnmartyr1 i.year capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_Post , fe cluster( cntyid)
117
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_Post) se bdec(3) rdec(3) nocons append
118
+
119
+
120
+ *** *** ***
121
+ xtreg lnmartyr1 i.year Zeng_all0_pc_Post , fe cluster( cntyid)
122
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_pc_Post ) se bdec(3) rdec(3) nocons append
123
+
124
+
125
+ xtreg lnmartyr1 i.year capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post Zeng_all0_pc_Post , fe cluster( cntyid)
126
+ outreg2 using Results\Table_2.doc, keep(Zeng_all0_pc_Post ) se bdec(3) rdec(3) nocons append
127
+
128
+ */
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
104/replication_package/Replication/Programs/Table_3.do ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ********************************************************************************
3
+ ***** Table 3: The Impact of Elite Connections on Soldier Deaths: Types of Links
4
+ ***** Sample: Hunan counties, 1850–1864
5
+ ********************************************************************************
6
+
7
+
8
+ **This part produces Table 3 column (1)-(4)
9
+
10
+
11
+ use Data\HunanCntyYr.dta,clear
12
+
13
+
14
+ ********************************************************************************
15
+ ********************** gen Zeng Guofan period dummies
16
+
17
+ gen Post=0 if year<1854
18
+ replace Post=1 if year>=1854&year<=1864
19
+
20
+
21
+
22
+ foreach y of varlist Zeng_all0_invdist_pc Zeng_all0_pc Zenghu_all Zenghu_all_invdist Zeng_all0 Zeng_all0_invdist Zeng_exam0_invdist Zeng_BMF_invdist Zeng_Juren_invdist lnarea capital lnurbanpop lnpop dist_nanjing lnjinshi lnquotas mainriv route1 dist2canal lnwheat lnrice {
23
+ gen `y'_Post=`y'*Post
24
+
25
+ }
26
+
27
+ **************************
28
+
29
+ egen prefidXyear=group(prefid year)
30
+
31
+
32
+
33
+ ********************************************* Types of networks with Pref X Year FE
34
+
35
+
36
+ reghdfe lnmartyr1 Zenghu_all_invdist_Post capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post , absorb(year cntyid prefidXyear) cluster(cntyid)
37
+ outreg2 using Results\Table_3.doc, keep(Zenghu_all_invdist_Post Zeng_BMF_invdist_Post Zeng_Juren_invdist_Post Zeng_exam0_invdist_Post) se bdec(3) rdec(3) nocons replace
38
+
39
+
40
+ ********
41
+ reghdfe lnmartyr1 Zeng_BMF_invdist_Post capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
42
+ outreg2 using Results\Table_3.doc, keep( Zenghu_all_invdist_Post Zeng_BMF_invdist_Post Zeng_Juren_invdist_Post Zeng_exam0_invdist_Post) se bdec(3) rdec(3) nocons append
43
+
44
+
45
+ ********
46
+ reghdfe lnmartyr1 Zeng_Juren_invdist_Post capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
47
+ outreg2 using Results\Table_3.doc, keep( Zenghu_all_invdist_Post Zeng_BMF_invdist_Post Zeng_Juren_invdist_Post Zeng_exam0_invdist_Post) se bdec(3) rdec(3) nocons append
48
+
49
+
50
+ ********
51
+ reghdfe lnmartyr1 Zeng_exam0_invdist_Post capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post , absorb(year cntyid prefidXyear) cluster( cntyid)
52
+ outreg2 using Results\Table_3.doc, keep( Zenghu_all_invdist_Post Zeng_BMF_invdist_Post Zeng_Juren_invdist_Post Zeng_exam0_invdist_Post) se bdec(3) rdec(3) nocons append
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+ ********************************************************************************
62
+ ********************************************************************************
63
+ ********************************************************************************
64
+ ******************************* This part produces Table 3 column (5)-(7)
65
+
66
+
67
+ use Data\HunanSurname.dta,clear
68
+
69
+
70
+
71
+ ********************** ********************** ********************** **********
72
+ ********************** gen Zeng Guofan period dummies
73
+
74
+ gen Post=0 if year<1854
75
+ replace Post=1 if year>=1854&year<=1864
76
+
77
+ **
78
+ foreach y of varlist sur_invdis_zeng_all0 capital lnurbanpop lnjinshi lnquotas route1 dist_nanjing mainriv dist2canal lnwheat lnrice lnarea lnhh {
79
+ gen `y'_Post=`y'*Post
80
+ }
81
+
82
+
83
+
84
+ ***************************************** gen FE effect
85
+
86
+
87
+ *****
88
+
89
+ egen prefXyear=group(prefid year)
90
+
91
+ gen cntyXyear=cntyid*100+(year-1850)
92
+ gen surXyear=surname_id*100+(year-1850)
93
+ gen cntyXsur=cntyid*1000+surname_id
94
+
95
+
96
+ **************************************** gen subsample when either connected surname or martyr surname does not equal to 0
97
+
98
+ sort cntyXsur
99
+ by cntyXsur: egen mean_sur_invdis_zeng_all0=mean(sur_invdis_zeng_all0)
100
+ by cntyXsur: egen mean_martyr_surname=mean(martyr_surname)
101
+
102
+ gen subsample=(mean_sur_invdis_zeng_all0!=0|mean_martyr_surname!=0)
103
+ gen subsample_network=(mean_sur_invdis_zeng_all0!=0)
104
+ gen subsample_martyr=(mean_martyr_surname!=0)
105
+
106
+
107
+
108
+ *************************************** gen diff.-Surname baseline connections
109
+ sort cntyid year
110
+ by cntyid year: egen sum_sur_invdis_zeng_all0=sum(sur_invdis_zeng_all0)
111
+ gen oth_sur_invdis_zeng_all0=sum_sur_invdis_zeng_all0-sur_invdis_zeng_all0
112
+
113
+ gen oth_sur_invdis_zeng_all0_Post=oth_sur_invdis_zeng_all0*Post
114
+
115
+
116
+ *****************************************
117
+ ***************************************** Regressions
118
+
119
+
120
+ reghdfe lnmartyr_surname1 sur_invdis_zeng_all0_Post ///
121
+ lnjinshi_Post lnquotas_Post capital_Post lnurbanpop_Post route1_Post dist_nanjing_Post mainriv_Post lnhh_Post lnarea_Post lnwheat_Post lnrice_Post dist2canal_Post if subsample==1, ///
122
+ absorb(prefXyear surXyear cntyXsur cntyid year ) cluster(cntyid surname_id)
123
+ outreg2 using Results\Table_3.doc, keep(sur_invdis_zeng_all0_Post) se bdec(3) rdec(3) nocons append
124
+
125
+
126
+ reghdfe lnmartyr_surname1 sur_invdis_zeng_all0_Post oth_sur_invdis_zeng_all0_Post ///
127
+ lnjinshi_Post lnquotas_Post capital_Post lnurbanpop_Post route1_Post dist_nanjing_Post mainriv_Post lnhh_Post lnarea_Post lnwheat_Post lnrice_Post dist2canal_Post if subsample==1, ///
128
+ absorb(prefXyear surXyear cntyXsur cntyid year ) cluster(cntyid surname_id)
129
+ outreg2 using Results\Table_3.doc, keep(sur_invdis_zeng_all0_Post oth_sur_invdis_zeng_all0_Post) se bdec(3) rdec(3) nocons append
130
+
131
+
132
+ reghdfe lnmartyr_surname1 sur_invdis_zeng_all0_Post if subsample==1, ///
133
+ absorb(cntyXyear surXyear cntyXsur cntyid year) cluster(cntyid surname_id)
134
+ outreg2 using Results\Table_3.doc, keep(sur_invdis_zeng_all0_Post) se bdec(3) rdec(3) nocons append
135
+
136
+
137
+
138
+
104/replication_package/Replication/Programs/Table_4.do ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ ************************************************************************************************
4
+ ******************************** Table 4: Placebo tests: change the year of exam_column(1)-(6)
5
+ ************************************************************************************************
6
+
7
+ use Data\HunanCntyYr.dta,clear
8
+
9
+
10
+ ********************************************************************************
11
+ ********************** gen Zeng Guofan period dummies
12
+
13
+ gen Post=0 if year<1854
14
+ replace Post=1 if year>=1854&year<=1864
15
+
16
+
17
+
18
+ foreach y of varlist Zeng_all0_invdist_pc Zeng_all0_pc Zenghu_all Zenghu_all_invdist Zeng_all0 Zeng_all0_invdist Zeng_exam0_invdist Zeng_BMF_invdist Zeng_Juren_invdist invdist0_L1 invdist0_F1 lnarea capital lnurbanpop lnpop dist_nanjing lnjinshi lnquotas mainriv route1 dist2canal lnwheat lnrice {
19
+ gen `y'_Post=`y'*Post
20
+
21
+ }
22
+
23
+ **************************
24
+
25
+ egen prefidXyear=group(prefid year)
26
+
27
+
28
+ ************************************* Change the year of exam
29
+
30
+ reghdfe lnmartyr1 Zeng_exam0_invdist_Post invdist0_L1_Post capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post if cntyid!=25 , absorb(year cntyid prefidXyear) cluster(cntyid)
31
+ outreg2 using Results\Table_4.doc, keep(Zeng_all0_invdist_Post Zeng_exam0_invdist_Post invdist0_L1_Post invdist0_F1_Post) se bdec(3) rdec(3) nocons replace
32
+
33
+
34
+ reghdfe lnmartyr1 Zeng_exam0_invdist_Post invdist0_F1_Post capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post if cntyid!=25 , absorb(year cntyid prefidXyear) cluster( cntyid)
35
+ outreg2 using Results\Table_4.doc, keep(Zeng_all0_invdist_Post Zeng_exam0_invdist_Post invdist0_L1_Post invdist0_F1_Post) se bdec(3) rdec(3) nocons append
36
+
37
+
38
+ reghdfe lnmartyr1 Zeng_exam0_invdist_Post invdist0_L1_Post invdist0_F1_Post capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post if cntyid!=25 , absorb(year cntyid prefidXyear) cluster( cntyid)
39
+ outreg2 using Results\Table_4.doc, keep(Zeng_all0_invdist_Post Zeng_exam0_invdist_Post invdist0_L1_Post invdist0_F1_Post) se bdec(3) rdec(3) nocons append
40
+
41
+
42
+
43
+
44
+ ************************************* IV estimates
45
+
46
+
47
+
48
+ ivreghdfe lnmartyr1 (Zeng_all0_invdist_Post=Zeng_exam0_invdist_Post) invdist0_L1_Post capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post if cntyid!=25 , absorb(year cntyid prefidXyear) cluster( cntyid)
49
+ outreg2 using Results\Table_4.doc, keep(Zeng_all0_invdist_Post Zeng_exam0_invdist_Post invdist0_L1_Post invdist0_F1_Post) se bdec(3) rdec(3) nocons append
50
+
51
+
52
+ ivreghdfe lnmartyr1 (Zeng_all0_invdist_Post=Zeng_exam0_invdist_Post) invdist0_F1_Post capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post if cntyid!=25 , absorb(year cntyid prefidXyear) cluster( cntyid)
53
+ outreg2 using Results\Table_4.doc, keep(Zeng_all0_invdist_Post Zeng_exam0_invdist_Post invdist0_L1_Post invdist0_F1_Post) se bdec(3) rdec(3) nocons append
54
+
55
+
56
+ ivreghdfe lnmartyr1 (Zeng_all0_invdist_Post=Zeng_exam0_invdist_Post) invdist0_L1_Post invdist0_F1_Post capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnwheat_Post lnrice_Post lnpop_Post lnarea_Post if cntyid!=25 , absorb(year cntyid prefidXyear) cluster(cntyid)
57
+ outreg2 using Results\Table_4.doc, keep(Zeng_all0_invdist_Post Zeng_exam0_invdist_Post invdist0_L1_Post invdist0_F1_Post) se bdec(3) rdec(3) nocons append
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+ ************************************************************************************************
67
+ ************************************************************************************************
68
+ ******************************** Table 4: Placebo tests: change the year of exam_column(7)-(11)
69
+ ************************************************************************************************
70
+ ************************************************************************************************
71
+
72
+
73
+ use Data\HuaiYr.dta,clear
74
+
75
+
76
+
77
+ ****************************
78
+
79
+
80
+ gen Post=0 if year<1854
81
+ replace Post=1 if year>=1854&year<=1864
82
+
83
+
84
+ *********
85
+ foreach y of varlist Zeng_all0_invdist Zeng_exam0_invdist invdist0_L1 invdist0_F1 lncntyarea lncntypop lnrice lnwheat mainriv dist2canal prefcap lnurbanpop lnjinshi lncntyquota0 dist_nanjing Taiping_route1 {
86
+ gen `y'_Post=`y'*Post
87
+ }
88
+
89
+
90
+
91
+ ********************* Table 4, columns (7)-(11)
92
+
93
+ xi: reghdfe lnmartyr_yr prefcap_Post lnurbanpop_Post lnjinshi_Post lncntyquota0_Post Taiping_route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnrice_Post lnwheat_Post lncntypop_Post lncntyarea_Post Zeng_all0_invdist_Post , absorb(year samcntyid prefidXyear) cluster( samcntyid)
94
+ outreg2 using Results\Table_4.doc, keep(Zeng_all0_invdist_Post) se bdec(3) rdec(3) nocons append
95
+
96
+
97
+ xi: reghdfe lnmartyr_yr prefcap_Post lnurbanpop_Post lnjinshi_Post lncntyquota0_Post Taiping_route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnrice_Post lnwheat_Post lncntypop_Post lncntyarea_Post Zeng_exam0_invdist_Post , absorb(year samcntyid prefidXyear) cluster( samcntyid)
98
+ outreg2 using Results\Table_4.doc, keep(Zeng_exam0_invdist_Post) se bdec(3) rdec(3) nocons append
99
+
100
+
101
+ xi: reghdfe lnmartyr_yr prefcap_Post lnurbanpop_Post lnjinshi_Post lncntyquota0_Post Taiping_route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnrice_Post lnwheat_Post lncntypop_Post lncntyarea_Post Zeng_exam0_invdist_Post invdist0_L1_Post, absorb(year samcntyid prefidXyear) cluster( samcntyid)
102
+ outreg2 using Results\Table_4.doc, keep(Zeng_all0_invdist_Post Zeng_exam0_invdist_Post invdist0_L1_Post ) se bdec(3) rdec(3) nocons append
103
+
104
+
105
+ xi: reghdfe lnmartyr_yr prefcap_Post lnurbanpop_Post lnjinshi_Post lncntyquota0_Post Taiping_route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnrice_Post lnwheat_Post lncntypop_Post lncntyarea_Post Zeng_exam0_invdist_Post invdist0_F1_Post , absorb(year samcntyid prefidXyear) cluster( samcntyid)
106
+ outreg2 using Results\Table_4.doc, keep(Zeng_all0_invdist_Post Zeng_exam0_invdist_Post invdist0_F1_Post) se bdec(3) rdec(3) nocons append
107
+
108
+
109
+ xi: reghdfe lnmartyr_yr prefcap_Post lnurbanpop_Post lnjinshi_Post lncntyquota0_Post Taiping_route1_Post dist_nanjing_Post mainriv_Post dist2canal_Post lnrice_Post lnwheat_Post lncntypop_Post lncntyarea_Post Zeng_exam0_invdist_Post invdist0_L1_Post invdist0_F1_Post , absorb(year samcntyid prefidXyear) cluster( samcntyid)
110
+ outreg2 using Results\Table_4.doc, keep(Zeng_exam0_invdist_Post Zeng_exam0_invdist_Post invdist0_L1_Post invdist0_F1_Post) se bdec(3) rdec(3) nocons append
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
104/replication_package/Replication/Programs/Table_5.do ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ *********************************************************************************************************
3
+ ********** Table 5: The Impact of Elite Connections on National Offices: DDD Estimates
4
+ *********************************************************************************************************
5
+
6
+ use Data\NationalCntyYr.dta,clear
7
+
8
+
9
+ ********************************************************************************
10
+ ********** gen interactions
11
+
12
+ keep if year>=1820
13
+
14
+ gen nhXZenghu_all_invdist=nonhunan*Zenghu_all_invdist
15
+ gen hXZenghu_all_invdist=hunan*Zenghu_all_invdist
16
+
17
+ gen nhXZeng_all0_invdist=nonhunan*Zeng_all0_invdist
18
+ gen hXZeng_all0_invdist=hunan*Zeng_all0_invdist
19
+
20
+
21
+
22
+ foreach x of varlist hunan Zenghu_all_invdist Zeng_all0_invdist Zeng_all0_invdist_pc invdist0_L1 invdist0_F1 Zeng_exam0_invdist Zeng_Extraexam_invdist Zeng_BMF_invdist Zeng_juren0_invdist nhXZenghu_all_invdist nhXZeng_all0_invdist hXZenghu_all_invdist hXZeng_all0_invdist{
23
+ gen `x'Xperiod=`x'*period
24
+
25
+ }
26
+
27
+
28
+
29
+ foreach x of varlist lnurbanpop prefcap lnjinshi lncntyquota0 lncntypop lncntyarea mainriv dist2canal lnrice lnwheat dist_nanjing Taiping_route1 {
30
+ gen `x'Xperiod=`x'*period
31
+
32
+ }
33
+
34
+
35
+ foreach x of varlist lnurbanpop prefcap lnjinshi lncntyquota0 lncntypop lncntyarea mainriv dist2canal lnrice lnwheat dist_nanjing Taiping_route1 {
36
+ gen h`x'Xperiod=hunan*`x'*period
37
+ }
38
+
39
+
40
+
41
+ ********************************************************************************
42
+
43
+
44
+ ***************
45
+ reghdfe alloff Zeng_all0_invdistXperiod if hunan==1, absorb(year samcntyid) cluster(prefid )
46
+ outreg2 using Results\Table_5.doc, keep( hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod) se bdec(3) rdec(3) nocons replace
47
+
48
+
49
+ reghdfe alloff lnurbanpopXperiod-Taiping_route1Xperiod Zeng_all0_invdistXperiod if hunan==1, absorb(year samcntyid) cluster(prefid )
50
+ outreg2 using Results\Table_5.doc, keep( hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod) se bdec(3) rdec(3) nocons append
51
+
52
+
53
+ ***************
54
+ reghdfe alloff Zeng_all0_invdistXperiod if hunan==0, absorb(year samcntyid) cluster(prefid )
55
+ outreg2 using Results\Table_5.doc, keep( hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod) se bdec(3) rdec(3) nocons append
56
+
57
+ reghdfe alloff lnurbanpopXperiod-Taiping_route1Xperiod Zeng_all0_invdistXperiod if hunan==0, absorb(year samcntyid) cluster(prefid )
58
+ outreg2 using Results\Table_5.doc, keep( hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod) se bdec(3) rdec(3) nocons append
59
+
60
+ ***************
61
+ reghdfe alloff hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod, absorb(year samcntyid ) cluster(prefid )
62
+ outreg2 using Results\Table_5.doc, keep( hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod) se bdec(3) rdec(3) nocons append
63
+
64
+ reghdfe alloff lnurbanpopXperiod-Taiping_route1Xperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod, absorb(year samcntyid ) cluster(prefid )
65
+ outreg2 using Results\Table_5.doc, keep( hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod) se bdec(3) rdec(3) nocons append
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
104/replication_package/Replication/Programs/Table_6.do ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ *********************************************************************************
3
+ *************************** Table 6. The Power Effect: the Role of Soldier Deaths
4
+ *********************************************************************************
5
+
6
+
7
+ use Data\NationalCntyYr.dta,clear
8
+
9
+
10
+
11
+ ********************************************************************************
12
+ ********** gen interactions
13
+
14
+
15
+ gen hXZeng_all0_invdist=hunan*Zeng_all0_invdist
16
+ gen hXZeng_exam0_invdist=hunan*Zeng_exam0_invdist
17
+ gen hXZeng_Extraexam_invdist=hunan*Zeng_Extraexam_invdist
18
+
19
+
20
+ foreach x of varlist hunan Zeng_all0_invdist Zenghu_all_invdist Zeng_exam0_invdist Zeng_Extraexam_invdist hXZeng_all0_invdist hXZeng_exam0_invdist hXZeng_Extraexam_invdist martyrs_tot_post{
21
+ gen `x'Xperiod=`x'*period
22
+
23
+ }
24
+
25
+ foreach x of varlist lnurbanpop prefcap lnjinshi lncntyquota0 lncntypop lncntyarea mainriv dist2canal lnrice lnwheat dist_nanjing Taiping_route1 {
26
+ gen `x'Xperiod=`x'*period
27
+
28
+ }
29
+
30
+
31
+ ********************************************************************************
32
+
33
+ keep if year > =1820
34
+
35
+
36
+
37
+ *******
38
+
39
+ *************** *************** *************** ***************
40
+ *************** *************** *************** *************** DDD Estimates, IV estimates, and Overid
41
+ *************** *************** *************** ***************
42
+
43
+ *********
44
+ reghdfe alloff lnurbanpopXperiod-Taiping_route1Xperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod, absorb(year samcntyid ) cluster(prefid )
45
+
46
+ outreg2 using Results\Table_6.doc, keep( hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod) se bdec(3) rdec(3) nocons replace
47
+
48
+
49
+ *********
50
+ reghdfe alloff lnurbanpopXperiod-Taiping_route1Xperiod martyrs_tot_postXperiod Zeng_all0_invdistXperiod hunanXperiod, absorb(year samcntyid ) cluster(prefid )
51
+
52
+ outreg2 using Results\Table_6.doc, keep( hXZeng_all0_invdistXperiod martyrs_tot_postXperiod Zeng_all0_invdistXperiod hunanXperiod) se bdec(3) rdec(3) nocons append
53
+
54
+
55
+ *********
56
+ reghdfe alloff lnurbanpopXperiod-Taiping_route1Xperiod martyrs_tot_postXperiod hXZeng_all0_invdistXperiod Zeng_all0_invdistXperiod hunanXperiod, absorb(year samcntyid ) cluster(prefid )
57
+
58
+ outreg2 using Results\Table_6.doc, keep( hXZeng_all0_invdistXperiod martyrs_tot_postXperiod Zeng_all0_invdistXperiod hunanXperiod) se bdec(3) rdec(3) nocons append
59
+
60
+
61
+ *********
62
+
63
+ ivreghdfe alloff (martyrs_tot_postXperiod = hXZeng_Extraexam_invdistXperiod hXZeng_exam0_invdistXperiod) Zeng_exam0_invdistXperiod Zeng_Extraexam_invdistXperiod lnurbanpopXperiod-Taiping_route1Xperiod hunanXperiod , absorb(year samcntyid ) cluster(prefid )
64
+
65
+ outreg2 using Results\Table_6.doc, keep(martyrs_tot_postXperiod hXZeng_exam0_invdistXperiod hXZeng_Extraexam_invdistXperiod Zenghu_all_invdistXperiod Zenghu_all_invdistXperiod Zeng_exam0_invdistXperiod Zeng_Extraexam_invdistXperiod hunanXperiod ) se bdec(3) rdec(3) nocons append
66
+
67
+ *********
68
+ ivreghdfe alloff (martyrs_tot_postXperiod = hXZeng_Extraexam_invdistXperiod ) hXZeng_exam0_invdistXperiod Zeng_exam0_invdistXperiod Zeng_Extraexam_invdistXperiod lnurbanpopXperiod-Taiping_route1Xperiod hunanXperiod , absorb(year samcntyid) cluster(prefid)
69
+
70
+ outreg2 using Results\Table_6.doc, keep(martyrs_tot_postXperiod hXZeng_exam0_invdistXperiod hXZeng_Extraexam_invdistXperiod Zenghu_all_invdistXperiod Zenghu_all_invdistXperiod Zeng_exam0_invdistXperiod Zeng_Extraexam_invdistXperiod hunanXperiod) se bdec(3) rdec(3) nocons append
71
+
72
+ *********
73
+ ivreghdfe alloff (martyrs_tot_postXperiod = hXZeng_exam0_invdistXperiod) hXZeng_Extraexam_invdistXperiod Zeng_exam0_invdistXperiod Zeng_Extraexam_invdistXperiod hunanXperiod lnurbanpopXperiod-Taiping_route1Xperiod , absorb(year samcntyid ) cluster(prefid )
74
+
75
+ outreg2 using Results\Table_6.doc, keep(martyrs_tot_postXperiod hXZeng_exam0_invdistXperiod hXZeng_Extraexam_invdistXperiod Zenghu_all_invdistXperiod Zenghu_all_invdistXperiod Zeng_exam0_invdistXperiod Zeng_Extraexam_invdistXperiod hunanXperiod) se bdec(3) rdec(3) nocons append
76
+
77
+
78
+
104/replication_package/Replication/Results/AllCnty_hXconn_All0_ctrl_0.gph ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c88c9a3b8760a4c41e09911960261913b50b8540ce08f28db4d96d2e21154608
3
+ size 13988
104/replication_package/Replication/Results/AllCnty_hXconn_all0_yearly_A_0.gph ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3839bb94c16694bf6c610d942da2aa46759257d5c2ae056c53123e72d6d6063
3
+ size 13921
104/replication_package/Replication/Results/AllCnty_hXconn_all0_yearly_Entry_0.gph ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69c338aa000e01bdab87891e4ea2663b05c5d8429d69f6b4b8255dbacc420dd0
3
+ size 13928
104/replication_package/Replication/Results/AllCnty_hXconn_all0_yearly_Rentry_0.gph ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:051de3144103de41e8582a397e345b316f66962cd32187511d91a5f834c1d256
3
+ size 13957
104/replication_package/Replication/Results/AllCnty_hunan_conn_All0_ctrl_0.gph ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:789df34e04f292c573e85472fcf4e1966e532fb6775b8f3864065b2ff59675cd
3
+ size 13889
104/replication_package/Replication/Results/AllCnty_nhunan_conn_All0_ctrl_0.gph ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d85455c75f7f1a810f9085d8666ff099747a09ec0da127a214c152f117bbba7
3
+ size 13910