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. 1.Expected Foreign Military Intervention and Demand/jde_103897.do 1 merge · 29 estimations

3 · Merges — 1 joins, 0 followed by a check of the merge result

JoinsHowOn keysCheck that followsWhere
$afb5 ← $afb5maligeocoded merge 1:1 RESPNO none
jde_103897.do:53
Expected 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 == 11
    jde_103897.do:57
    Expected Foreign Military Intervention and Demand/jde_103897.do, line 57 keep if COUNTRY == 11
  • keep if REGION != 505
    jde_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

VariableUsed in models asBuilt by
taxmorale outcome in 8
taxmorale = Q48C (gen)
jde_103897.do:93
Expected Foreign Military Intervention and Demand/jde_103897.do, line 93 gen taxmorale = Q48C
taxmorale = . (replace)
jde_103897.do:94
Expected 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:148
Expected 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:100
Expected Foreign Military Intervention and Demand/jde_103897.do, line 100 gen changeevasion = 0
changeevasion = 1 (replace)
jde_103897.do:101
Expected Foreign Military Intervention and Demand/jde_103897.do, line 101 replace changeevasion = 1 if Q26C == 1
changeevasion = . (replace)
jde_103897.do:102
Expected 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:116
Expected Foreign Military Intervention and Demand/jde_103897.do, line 116 gen corruptjudges = Q60G
corruptjudges = . (replace)
jde_103897.do:117
Expected 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:110
Expected Foreign Military Intervention and Demand/jde_103897.do, line 110 gen corruptoff = Q60C
corruptoff = . (replace)
jde_103897.do:111
Expected 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:113
Expected Foreign Military Intervention and Demand/jde_103897.do, line 113 gen corruptpolice = Q60E
corruptpolice = . (replace)
jde_103897.do:114
Expected 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:107
Expected Foreign Military Intervention and Demand/jde_103897.do, line 107 gen corrupttaxoff = Q60F
corrupttaxoff = . (replace)
jde_103897.do:108
Expected 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:156
Expected Foreign Military Intervention and Demand/jde_103897.do, line 156 gen demalwaysgood = (highleveldem == 1 & highleveldemfut == 1)
demalwaysgood = . (replace)
jde_103897.do:157
Expected 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:150
Expected Foreign Military Intervention and Demand/jde_103897.do, line 150 gen demoptimistic = (highleveldem == 0 & highleveldemfut == 1)
demoptimistic = . (replace)
jde_103897.do:151
Expected 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:153
Expected Foreign Military Intervention and Demand/jde_103897.do, line 153 gen dempessimistic = (highleveldem == 0 & highleveldemfut == 0)
dempessimistic = . (replace)
jde_103897.do:154
Expected 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:147
Expected 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:119
Expected Foreign Military Intervention and Demand/jde_103897.do, line 119 gen national_id = 0
national_id = 1 (replace)
jde_103897.do:120
Expected 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:121
Expected 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:96
Expected Foreign Military Intervention and Demand/jde_103897.do, line 96 gen neverevasion = 0
neverevasion = 1 (replace)
jde_103897.do:97
Expected Foreign Military Intervention and Demand/jde_103897.do, line 97 replace neverevasion = 1 if Q26C == 0
neverevasion = . (replace)
jde_103897.do:98
Expected 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:163
Expected Foreign Military Intervention and Demand/jde_103897.do, line 163 ren Q85C patriotism
perceivedfc outcome in 1
perceivedfc = Q75C (gen)
jde_103897.do:142
Expected Foreign Military Intervention and Demand/jde_103897.do, line 142 gen perceivedfc = Q75C
perceivedfc = . (replace)
jde_103897.do:143
Expected Foreign Military Intervention and Demand/jde_103897.do, line 143 replace perceivedfc = . if (Q75C == 7 | Q75C == 9)

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
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reg
ols
highleveldemfut i.date age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +3 more — cluster: geoname_id
jde_103897.do:245
Expected 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)
reg
ols
taxmorale i.date age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +3 more — cluster: geoname_id
jde_103897.do:254
Expected 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)
reghdfe
panel fe
taxmorale post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:265
Expected 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)
reg
ols
`j' post — cluster: geoname_id
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)
run 13× in a loop (j=age; j=age2; j=male…)
reg
ols
`j' post — robust
jde_103897.do:297
Expected Foreign Military Intervention and Demand/jde_103897.do, line 297 eststo: reg `j' post, vce(r)
run 1× in a loop (j=EA_ROAD)
reghdfe
panel fe
verysatisfdem post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:313
Expected 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)
reghdfe
panel fe
highleveldem post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:314
Expected 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)
reghdfe
panel fe
highleveldemfut post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:315
Expected 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)
reghdfe
panel fe
demoptimistic post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:316
Expected 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)
reghdfe
panel fe
dempessimistic post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:317
Expected 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)
reghdfe
panel fe
demalwaysgood post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:318
Expected 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)
reghdfe
panel fe
taxmorale post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:322
Expected 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)
reghdfe
panel fe
neverevasion post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:323
Expected 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)
reghdfe
panel fe
changeevasion post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:324
Expected 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)
reghdfe
panel fe
punish post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:325
Expected 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)
reghdfe
panel fe
taxmorale post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:330
Expected 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)
reghdfe
panel fe
taxmorale post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:340
Expected 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)
reghdfe
panel 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:341
Expected 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)
reghdfe
panel 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:342
Expected 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)
reghdfe
panel 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:343
Expected 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)
reghdfe
panel fe
corrupttaxoff post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:348
Expected 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)
reghdfe
panel fe
corruptpolice post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:349
Expected 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)
reghdfe
panel fe
corruptjudges post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:350
Expected 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)
reghdfe
panel fe
corruptoff post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:351
Expected 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)
reghdfe
panel fe
perceivedfc post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:352
Expected 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)
reghdfe
panel fe
stateactorscrime post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:353
Expected 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)
reghdfe
panel fe
patriotism post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:357
Expected 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)
reghdfe
panel fe
national_id post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:358
Expected 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)
reghdfe
panel fe
`y' post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang +2 more clid cluster: geoname_id
jde_103897.do:370
Expected 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
commandlayersvariables optionssaved aswhere
twoway
event-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:238
Expected 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 …
–240
coefplot
event-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:250
Expected 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 …
coefplot
event-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:259
Expected 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)", …