Replication package 158602 · mendeley · 2026
· open the deposit
How the code gets from data to results
Expected Foreign Military Intervention and Demand for State-Building: Evidence from Mali
Code for: Expected foreign military intervention and demand for state-building: Evidence from Mali Journal of Development Economics 2027
1
scripts
0
input files
0
file hand-offs
1
merges
2
sample steps
29
estimations
1 · Data in — files the code reads and no script of the package writes
No input files read by name.
Plus 2 reads whose file name is built at run time (a macro or loop variable) and cannot be named.
2 · The file pipeline — which script writes which file that a later script reads
1 scripts, in file names (the package states no order and no script reads another's output); 0 hand-offs through 0 intermediate files.
-
1.
Expected Foreign Military Intervention and Demand/jde_103897.do1 merge · 29 estimations
3 · Merges — 1 joins, 0 followed by a check of the merge result
| Joins | How | On keys | Check that follows | Where |
|---|---|---|---|---|
$afb5 ← $afb5maligeocoded |
merge 1:1 | RESPNO |
none | jde_103897.do:53Expected Foreign Military Intervention and Demand/jde_103897.do, line 53
merge 1:1 RESPNO using $Afb5MaliGeocoded |
4 · The sample — 2 keep/drop steps, 0 variables winsorized or trimmed
Filters, by kind
geography ×2
- keep if
COUNTRY == 11jde_103897.do:57
Expected Foreign Military Intervention and Demand/jde_103897.do, line 57 keep if COUNTRY == 11 - keep if
REGION != 505jde_103897.do:234
Expected Foreign Military Intervention and Demand/jde_103897.do, line 234 keep if REGION != 505
Outliers
No winsorizing or trimming recorded.
Missing values
common sample across variables (listwise) ×1
jde_103897.do:268
Expected Foreign Military Intervention and Demand/jde_103897.do, line 268 eststo: reg `j' post if e(sample), cluster(geoname_id)
5 · Key variables — what enters the models, and where the code builds it
| Variable | Used in models as | Built by |
|---|---|---|
taxmorale |
outcome in 8 | taxmorale = Q48C (gen) jde_103897.do:93Expected Foreign Military Intervention and Demand/jde_103897.do, line 93
gen taxmorale = Q48C taxmorale = . (replace) jde_103897.do:94Expected Foreign Military Intervention and Demand/jde_103897.do, line 94
replace taxmorale = . if Q48C == 9 |
highleveldemfut |
outcome in 2 | highleveldemfut = (Q46D == 10) (gen) jde_103897.do:148Expected Foreign Military Intervention and Demand/jde_103897.do, line 148
gen highleveldemfut = (Q46D == 10) if Q46D < 99 |
changeevasion |
outcome in 1 | changeevasion = 0 (gen) jde_103897.do:100Expected Foreign Military Intervention and Demand/jde_103897.do, line 100
gen changeevasion = 0 changeevasion = 1 (replace) jde_103897.do:101Expected Foreign Military Intervention and Demand/jde_103897.do, line 101
replace changeevasion = 1 if Q26C == 1 changeevasion = . (replace) jde_103897.do:102Expected Foreign Military Intervention and Demand/jde_103897.do, line 102
replace changeevasion = . if Q26C == 9 |
corruptjudges |
outcome in 1 | corruptjudges = Q60G (gen) jde_103897.do:116Expected Foreign Military Intervention and Demand/jde_103897.do, line 116
gen corruptjudges = Q60G corruptjudges = . (replace) jde_103897.do:117Expected Foreign Military Intervention and Demand/jde_103897.do, line 117
replace corruptjudges = . if Q60G == 9 |
corruptoff |
outcome in 1 | corruptoff = Q60C (gen) jde_103897.do:110Expected Foreign Military Intervention and Demand/jde_103897.do, line 110
gen corruptoff = Q60C corruptoff = . (replace) jde_103897.do:111Expected Foreign Military Intervention and Demand/jde_103897.do, line 111
replace corruptoff = . if Q60C == 9 |
corruptpolice |
outcome in 1 | corruptpolice = Q60E (gen) jde_103897.do:113Expected Foreign Military Intervention and Demand/jde_103897.do, line 113
gen corruptpolice = Q60E corruptpolice = . (replace) jde_103897.do:114Expected Foreign Military Intervention and Demand/jde_103897.do, line 114
replace corruptpolice = . if Q60E == 9 |
corrupttaxoff |
outcome in 1 | corrupttaxoff = Q60F (gen) jde_103897.do:107Expected Foreign Military Intervention and Demand/jde_103897.do, line 107
gen corrupttaxoff = Q60F corrupttaxoff = . (replace) jde_103897.do:108Expected Foreign Military Intervention and Demand/jde_103897.do, line 108
replace corrupttaxoff = . if Q60F == 9 |
demalwaysgood |
outcome in 1 | demalwaysgood = (highleveldem == 1 & highleveldemfut == 1) (gen) jde_103897.do:156Expected Foreign Military Intervention and Demand/jde_103897.do, line 156
gen demalwaysgood = (highleveldem == 1 & highleveldemfut == 1) demalwaysgood = . (replace) jde_103897.do:157Expected Foreign Military Intervention and Demand/jde_103897.do, line 157
replace demalwaysgood = . if (highleveldem == . | highleveldemfut == .) |
demoptimistic |
outcome in 1 | demoptimistic = (highleveldem == 0 & highleveldemfut == 1) (gen) jde_103897.do:150Expected Foreign Military Intervention and Demand/jde_103897.do, line 150
gen demoptimistic = (highleveldem == 0 & highleveldemfut == 1) demoptimistic = . (replace) jde_103897.do:151Expected Foreign Military Intervention and Demand/jde_103897.do, line 151
replace demoptimistic = . if (highleveldem == . | highleveldemfut == .) |
dempessimistic |
outcome in 1 | dempessimistic = (highleveldem == 0 & highleveldemfut == 0) (gen) jde_103897.do:153Expected Foreign Military Intervention and Demand/jde_103897.do, line 153
gen dempessimistic = (highleveldem == 0 & highleveldemfut == 0) dempessimistic = . (replace) jde_103897.do:154Expected Foreign Military Intervention and Demand/jde_103897.do, line 154
replace dempessimistic = . if (highleveldem == . | highleveldemfut == .) |
highleveldem |
outcome in 1 | highleveldem = (Q46A == 10) (gen) jde_103897.do:147Expected Foreign Military Intervention and Demand/jde_103897.do, line 147
gen highleveldem = (Q46A == 10) if Q46A < 99 |
national_id |
outcome in 1 | national_id = 0 (gen) jde_103897.do:119Expected Foreign Military Intervention and Demand/jde_103897.do, line 119
gen national_id = 0 national_id = 1 (replace) jde_103897.do:120Expected Foreign Military Intervention and Demand/jde_103897.do, line 120
replace national_id = 1 if Q85B == 4 | Q85B == 5 national_id = . (replace) jde_103897.do:121Expected Foreign Military Intervention and Demand/jde_103897.do, line 121
replace national_id = . if Q85B == -1 | Q85B == 9 |
neverevasion |
outcome in 1 | neverevasion = 0 (gen) jde_103897.do:96Expected Foreign Military Intervention and Demand/jde_103897.do, line 96
gen neverevasion = 0 neverevasion = 1 (replace) jde_103897.do:97Expected Foreign Military Intervention and Demand/jde_103897.do, line 97
replace neverevasion = 1 if Q26C == 0 neverevasion = . (replace) jde_103897.do:98Expected Foreign Military Intervention and Demand/jde_103897.do, line 98
replace neverevasion = . if Q26C == 9 |
patriotism |
outcome in 1 | patriotism = Q85C (rename) jde_103897.do:163Expected Foreign Military Intervention and Demand/jde_103897.do, line 163
ren Q85C patriotism |
perceivedfc |
outcome in 1 | perceivedfc = Q75C (gen) jde_103897.do:142Expected Foreign Military Intervention and Demand/jde_103897.do, line 142
gen perceivedfc = Q75C perceivedfc = . (replace) jde_103897.do:143Expected Foreign Military Intervention and Demand/jde_103897.do, line 143
replace perceivedfc = . if (Q75C == 7 | Q75C == 9) |
punish |
outcome in 1 | punish = (Q76B == 3) (gen) jde_103897.do:104Expected Foreign Military Intervention and Demand/jde_103897.do, line 104
gen punish = (Q76B == 3) punish = . (replace) jde_103897.do:105Expected Foreign Military Intervention and Demand/jde_103897.do, line 105
replace punish = . if Q76B == 9 |
stateactorscrime |
outcome in 1 | stateactorscrime = . (gen) jde_103897.do:138Expected Foreign Military Intervention and Demand/jde_103897.do, line 138
gen stateactorscrime = . stateactorscrime = 0 (replace) jde_103897.do:139Expected Foreign Military Intervention and Demand/jde_103897.do, line 139
replace stateactorscrime = 0 if Q12 <= 13 stateactorscrime = 1 (replace) jde_103897.do:140Expected Foreign Military Intervention and Demand/jde_103897.do, line 140
replace stateactorscrime = 1 if (Q12 == 1 | Q12 == 10) |
verysatisfdem |
outcome in 1 | verysatisfdem = (Q43 == 4) (gen) jde_103897.do:145Expected Foreign Military Intervention and Demand/jde_103897.do, line 145
gen verysatisfdem = (Q43 == 4) if Q43 < 9 |
age |
regressor in 27 | age = Q1 (gen) jde_103897.do:71Expected Foreign Military Intervention and Demand/jde_103897.do, line 71
gen age = Q1 age = . (replace) jde_103897.do:72Expected Foreign Military Intervention and Demand/jde_103897.do, line 72
replace age = . if Q1 == 999 |
age2 |
regressor in 27 | age2 = age^2 (gen) jde_103897.do:73Expected Foreign Military Intervention and Demand/jde_103897.do, line 73
gen age2 = age^2 |
education |
regressor in 27 | education = Q97 (rename) jde_103897.do:159Expected Foreign Military Intervention and Demand/jde_103897.do, line 159
ren Q97 education |
educinterw |
regressor in 27 | educinterw = Q117 (rename) jde_103897.do:162Expected Foreign Military Intervention and Demand/jde_103897.do, line 162
ren Q117 educinterw |
influenceother |
regressor in 27 | influenceother = Q107B (rename) jde_103897.do:161Expected Foreign Military Intervention and Demand/jde_103897.do, line 161
ren Q107B influenceother |
majorgroup |
regressor in 27 | majorgroup = 0 (gen) jde_103897.do:78Expected Foreign Military Intervention and Demand/jde_103897.do, line 78
gen majorgroup = 0 majorgroup = 1 (replace) jde_103897.do:79Expected Foreign Military Intervention and Demand/jde_103897.do, line 79
replace majorgroup = 1 if Q2 == 9 majorgroup = . (replace) jde_103897.do:80Expected Foreign Military Intervention and Demand/jde_103897.do, line 80
replace majorgroup = . if Q2 == 9995 |
male |
regressor in 27 | male = (Q101 == 1) (gen) jde_103897.do:84Expected Foreign Military Intervention and Demand/jde_103897.do, line 84
gen male = (Q101 == 1) |
pg |
regressor in 27 | pg = rowtotal(EA_SVC_A-EA_FAC_E EA_ROAD) (egen rowtotal) jde_103897.do:82Expected Foreign Military Intervention and Demand/jde_103897.do, line 82
egen pg = rowtotal(EA_SVC_A-EA_FAC_E EA_ROAD) |
post |
regressor in 27 | post = 0 (gen) jde_103897.do:64Expected Foreign Military Intervention and Demand/jde_103897.do, line 64
gen post = 0 post = 1 (replace) jde_103897.do:65Expected Foreign Military Intervention and Demand/jde_103897.do, line 65
replace post = 1 if date_ > 0 |
relmember |
regressor in 27 | relmember = Q25A (rename) jde_103897.do:160Expected Foreign Military Intervention and Demand/jde_103897.do, line 160
ren Q25A relmember |
rispmale |
regressor in 27 | rispmale = (Q114 == 1) (gen) jde_103897.do:85Expected Foreign Military Intervention and Demand/jde_103897.do, line 85
gen rispmale = (Q114 == 1) |
rural |
regressor in 27 | rural = URBRUR - 1 (gen) jde_103897.do:69Expected Foreign Military Intervention and Demand/jde_103897.do, line 69
gen rural = URBRUR - 1 |
samelang |
regressor in 27 | samelang = (Q2s_ == Q116s_) (gen) jde_103897.do:89Expected Foreign Military Intervention and Demand/jde_103897.do, line 89
gen samelang = (Q2s_ == Q116s_) |
unemployed |
regressor in 27 | unemployed = 0 (gen) jde_103897.do:75Expected Foreign Military Intervention and Demand/jde_103897.do, line 75
gen unemployed = 0 unemployed = 1 (replace) jde_103897.do:76Expected Foreign Military Intervention and Demand/jde_103897.do, line 76
replace unemployed = 1 if Q96 < 2 |
clid |
regressor in 2 | clid = group(Q2 REGION) (egen group) jde_103897.do:91Expected Foreign Military Intervention and Demand/jde_103897.do, line 91
egen clid = group(Q2 REGION) |
date |
regressor in 2 | date = destring(dd) (destring) jde_103897.do:61Expected Foreign Military Intervention and Demand/jde_103897.do, line 61
destring dd, gen(date) |
ethunfairbar |
regressor in 1 | ethunfairbar = ethunfair - `ethunfairm' (gen) jde_103897.do:336Expected Foreign Military Intervention and Demand/jde_103897.do, line 336
gen ethunfairbar = ethunfair - `ethunfairm' |
hbar |
regressor in 1 | hbar = h - `hm' (gen) jde_103897.do:339Expected Foreign Military Intervention and Demand/jde_103897.do, line 339
gen hbar = h - `hm' |
pgbar |
regressor in 1 | pgbar = pg - `pgm' (gen) jde_103897.do:333Expected Foreign Military Intervention and Demand/jde_103897.do, line 333
gen pgbar = pg - `pgm' |
6 · Models, by the table or figure they feed — 29 estimations, 0 traced into 0 exhibits
Estimations not traced to a table or figure · 29
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
regols |
highleveldemfut |
i.date age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +3 more
|
— | cluster: geoname_id | jde_103897.do:245Expected Foreign Military Intervention and Demand/jde_103897.do, line 245
reg highleveldemfut i.date $controls $controlsint i.clid $oursample, cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reg highleveldemfut i.date age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw i.clid if REGION != 505 & date_ <= 6, cluster(geoname_id) |
regols |
taxmorale |
i.date age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +3 more
|
— | cluster: geoname_id | jde_103897.do:254Expected Foreign Military Intervention and Demand/jde_103897.do, line 254
reg taxmorale i.date $controls $controlsint i.clid $oursample, cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reg taxmorale i.date age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw i.clid if REGION != 505 & date_ <= 6, cluster(geoname_id) |
reghdfepanel fe |
taxmorale |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:265Expected Foreign Military Intervention and Demand/jde_103897.do, line 265
reghdfe taxmorale post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe taxmorale post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
regols |
`j' |
post
|
— | cluster: geoname_id | jde_103897.do:268Expected Foreign Military Intervention and Demand/jde_103897.do, line 268
eststo: reg `j' post if e(sample), cluster(geoname_id) run 13× in a loop (j=age; j=age2; j=male…)
|
regols |
`j' |
post
|
— | robust | jde_103897.do:297Expected Foreign Military Intervention and Demand/jde_103897.do, line 297
eststo: reg `j' post, vce(r) run 1× in a loop (j=EA_ROAD)
|
reghdfepanel fe |
verysatisfdem |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:313Expected Foreign Military Intervention and Demand/jde_103897.do, line 313
reghdfe verysatisfdem post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe verysatisfdem post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
highleveldem |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:314Expected Foreign Military Intervention and Demand/jde_103897.do, line 314
reghdfe highleveldem post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe highleveldem post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
highleveldemfut |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:315Expected Foreign Military Intervention and Demand/jde_103897.do, line 315
reghdfe highleveldemfut post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe highleveldemfut post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
demoptimistic |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:316Expected Foreign Military Intervention and Demand/jde_103897.do, line 316
reghdfe demoptimistic post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe demoptimistic post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
dempessimistic |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:317Expected Foreign Military Intervention and Demand/jde_103897.do, line 317
reghdfe dempessimistic post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe dempessimistic post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
demalwaysgood |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:318Expected Foreign Military Intervention and Demand/jde_103897.do, line 318
reghdfe demalwaysgood post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe demalwaysgood post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
taxmorale |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:322Expected Foreign Military Intervention and Demand/jde_103897.do, line 322
reghdfe taxmorale post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe taxmorale post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
neverevasion |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:323Expected Foreign Military Intervention and Demand/jde_103897.do, line 323
reghdfe neverevasion post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe neverevasion post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
changeevasion |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:324Expected Foreign Military Intervention and Demand/jde_103897.do, line 324
reghdfe changeevasion post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe changeevasion post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
punish |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:325Expected Foreign Military Intervention and Demand/jde_103897.do, line 325
reghdfe punish post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe punish post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
taxmorale |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:330Expected Foreign Military Intervention and Demand/jde_103897.do, line 330
reghdfe taxmorale post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe taxmorale post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
taxmorale |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:340Expected Foreign Military Intervention and Demand/jde_103897.do, line 340
reghdfe taxmorale post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe taxmorale post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
taxmorale |
c.post##c.pgbar age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:341Expected Foreign Military Intervention and Demand/jde_103897.do, line 341
reghdfe taxmorale c.post##c.pgbar $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe taxmorale c.post##c.pgbar age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
taxmorale |
c.post##c.ethunfairbar age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:342Expected Foreign Military Intervention and Demand/jde_103897.do, line 342
reghdfe taxmorale c.post##c.ethunfairbar $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe taxmorale c.post##c.ethunfairbar age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
taxmorale |
c.post##c.hbar age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:343Expected Foreign Military Intervention and Demand/jde_103897.do, line 343
reghdfe taxmorale c.post##c.hbar $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe taxmorale c.post##c.hbar age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
corrupttaxoff |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:348Expected Foreign Military Intervention and Demand/jde_103897.do, line 348
reghdfe corrupttaxoff post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe corrupttaxoff post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
corruptpolice |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:349Expected Foreign Military Intervention and Demand/jde_103897.do, line 349
reghdfe corruptpolice post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe corruptpolice post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
corruptjudges |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:350Expected Foreign Military Intervention and Demand/jde_103897.do, line 350
reghdfe corruptjudges post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe corruptjudges post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
corruptoff |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:351Expected Foreign Military Intervention and Demand/jde_103897.do, line 351
reghdfe corruptoff post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe corruptoff post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
perceivedfc |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:352Expected Foreign Military Intervention and Demand/jde_103897.do, line 352
reghdfe perceivedfc post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe perceivedfc post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
stateactorscrime |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:353Expected Foreign Military Intervention and Demand/jde_103897.do, line 353
reghdfe stateactorscrime post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe stateactorscrime post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
patriotism |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:357Expected Foreign Military Intervention and Demand/jde_103897.do, line 357
reghdfe patriotism post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe patriotism post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
national_id |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:358Expected Foreign Military Intervention and Demand/jde_103897.do, line 358
reghdfe national_id post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe national_id post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) |
reghdfepanel fe |
`y' |
post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more
|
clid | cluster: geoname_id | jde_103897.do:370Expected Foreign Military Intervention and Demand/jde_103897.do, line 370
reghdfe `y' `treat' `controls' $oursample, abs(clid) cluster(geoname_id)
as we read it (macros filled in / loop expanded):
reghdfe `y' post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id) run 15× in a loop (y=taxmorale; y=neverevasion; y=changeevasion…)
|
7 · Figures: how each is drawn — 3 figures in the code (command, layers, options, the file it is saved to)
event-study plot 3
| command | layers | variables | options | saved as | where |
|---|---|---|---|---|---|
twowayevent-study plot
|
connected + connected |
y count
x date_
|
xtitle Distance from the event (in days) · ytitle Number of interviewees per day · xline 0.5, 6.5 · legend off |
not saved | jde_103897.do:238Expected Foreign Military Intervention and Demand/jde_103897.do, line 238
tw (connected count date_, lp(dash) mc(blue) ms(Oh) msize(medium) lc(blue)) ///
(connected count date_ if date_ < 12, lp(solid) mc(blue) ms(Oh) msize(medium) lc(blue)) ///
, xline(0.5, lcolor(red)) xline(6.5, lco … |
coefplotevent-study plot
|
coefplot + scatteri + scatteri |
estimates model_coef1
|
xtitle Days of December 2012 · ytitle Democratic level in the future will be high (residuals) · xline 5.5 · ci coefplot default · vertical yes |
not saved | jde_103897.do:250Expected Foreign Military Intervention and Demand/jde_103897.do, line 250
coefplot model_coef1, color(red) msym(circle) keep(*.date) vertical xsize(6) ysize(4) omitted baselevels xline(5.5, lc(red*.3)) xtitle("Days of December 2012", size(medium)) ytitle("Democratic level in the future will be … |
coefplotevent-study plot
|
coefplot + scatteri + scatteri |
estimates model_coef2
|
xtitle Days of December 2012 · ytitle Willingness to pay taxes (residuals) · xline 5.5 · ci coefplot default · vertical yes |
not saved | jde_103897.do:259Expected Foreign Military Intervention and Demand/jde_103897.do, line 259
coefplot model_coef2, color(red) msym(circle) keep(*.date) vertical xsize(6) ysize(4) omitted baselevels xline(5.5, lc(red*.3)) xtitle("Days of December 2012", size(medium)) ytitle("Willingness to pay taxes (residuals)", … |