Review of Economic Studies · 2024 · 10.1093/restud/rdae007
Revisiting Event-Study Designs: Robust and Efficient Estimation
Kirill Borusyak; Xavier Jaravel; Jann Spiess
Review history
Received Apr 2022 → accepted 21.0 months later; online 0.7 months after acceptance.
Received: Apr 2022Editorial decision: Aug 2023Accepted: Jan 2024First online: 6 Feb 2024
Received → accepted. Review of Economic Studies, papers printed 2023–2026: median 30.0 months (middle half 21.0–41.0), 250 papers measured. This paper: 21.0 months, shorter than the median.
Acceptance → first online. Review of Economic Studies, papers printed 2023–2026: median 0.4 months (middle half 0.1–1.1), 399 papers with an online date. This paper: 0.7 months, longer than the median.
Dates as printed on the paper's first page; read from the paper's text, not from publisher metadata. Some dates are printed to the month only, so each duration is good to about a month. Journal medians leave out: under 14 days, out of order, special issue / invited, implausible year — the same papers /review-times leaves out.
The research recipe, read from the replication code
zenodo · package
· stata
—
sample period in the code
25
keep/drop statements
0
winsorizations
24
missing-data rules
0
de-duplications
25
distinct estimations
These tiles count distinct estimations (one per command, method, inference, fixed effects and file) and keep/drop statements.
"How the code gets from data to results" below counts every estimating statement (52)
and keep/drop statements plus winsorized variables (25).
1 · Data and structure
Databases read: none detected
Panel declared as:
hhid × pperiod; hhid × temp; i × t2 · How the sample is built
- keep other ×7
- drop indicator subset ×4
- drop missing data ×4
- keep value range ×3
- drop category value ×1
- drop value range ×1
Reshaping:
reshape long/wide ×3; collapse to a coarser unit ×3
3 · Design and validation
Identification: difference in differences, event study
DiD checks: heterogeneity robust estimator, pretrend test
4 · What it estimates
| Command | Method | Fixed effects absorbed | Inference | File |
|---|---|---|---|---|
|
did | default | Alt_estimators.do | |
|
did | hhid, pperiod | cluster by hhid | Alt_estimators.do |
|
panel fe | hhid, pperiod | cluster by hhid | Figure3.do |
|
panel fe | hhid, pperiod#qn8 | cluster by hhid | Figure3.do |
|
panel fe | hhid, pperiod | cluster by hhid | Figure5.do |
|
panel fe | hhid, pperiod#qn8 | cluster by hhid | Figure5.do |
|
panel fe | i, t | default | FigureA1.do |
|
did | default | MC_Analytical.do | |
|
panel fe | unitfe=hhid, pperiod | default | MC_Analytical.do |
|
panel fe | hhid, pperiod | cluster by hhid | MC_Analytical.do |
|
panel fe | hhid, pperiod | default | MC_Analytical.do |
|
did | default | MC_coverage.do | |
|
panel fe | unitfe=hhid, pperiod | default | MC_coverage.do |
|
did | default | MC_fewer_preperiods.do | |
|
panel fe | hhid, pperiod | cluster by hhid | Run_OLS_BJS.do |
|
did | default | Run_OLS_BJS.do | |
|
panel fe | hhid, pperiod#qn8 | cluster by hhid | Run_OLS_BJS.do |
|
did | default | TableA1.do | |
|
panel fe | hhid, pperiod | cluster by hhid | TableA1.do |
|
panel fe | hhid, pperiod#qn8 | cluster by hhid | TableA1.do |
|
ols | default | ESP2008Prog1c_replication.do | |
|
panel fe | hhid, pperiod | cluster by hhid | replicate_bp_t3.do |
|
panel fe | hhid, pperiod#qn8 | cluster by hhid | replicate_bp_t3.do |
|
panel fe | hhid, pperiod | cluster by hhid | replicate_bp_t4.do |
|
panel fe | hhid, pperiod#qn8 | cluster by hhid | replicate_bp_t4.do |
5 · What it tests beyond the coefficient (12 post-estimation tests:
lincom 10, testparm 2)
- a linear combination of coefficients
lincom lirebate`=4*`m'' + lirebate`=4*`m'+1' + lirebate`=4*`m'+2' + lirebate`=4*`m'+3' - coefficients are jointly zero
testparm pirebate*
6 · What it produces
9 table files and 20 figure files
(eps 13, tif 6, xlsx 5, ? 3, xls 2);
12 estimates traced from the model that produced them into the exhibit that reports them.
Misc_results.xlsxT3_calculation_BJS.xlsxTable2.xlsxTable3.xlsxTableA1.xlsxreplicate_bp_t3.xlsreplicate_bp_t4.xls`1Figure1.epsFigure2_A.tifFigure2_B.tifFigure3.epsFigure4_A.epsFigure4_B.epsFigure4_C.epsFigure5_A.tifHow the code gets from data to results own page
26
scripts
16
input files
27
file hand-offs
22
merges
25
sample steps
52
estimations
1 · Data in — files the code reads and no script of the package writes
Datasets this package uses (item detector / README):
Nielsen Consumer Panel
Other input files
16 files
data/tax rebates/online_wave_1_part_1&2.dtaStataconvert_ESP_files.do:7
ReplicationPackage/Code/bp_data_construction/convert_ESP_files.do, line 7 use "data/tax rebates/online_wave_1_part_1&2.dta", cleardata/tax rebates/online_wave_2_part_1&2.dtaStataconvert_ESP_files.do:31
ReplicationPackage/Code/bp_data_construction/convert_ESP_files.do, line 31 use "data/tax rebates/online_wave_2_part_1&2.dta", cleardata/tax rebates/online_wave_2_part_2.dtaStataconvert_ESP_files.do:55
ReplicationPackage/Code/bp_data_construction/convert_ESP_files.do, line 55 use "data/tax rebates/online_wave_2_part_2.dta", cleardata/tax rebates/online_wave_3_part_1&2Stataconvert_ESP_files.do:79
ReplicationPackage/Code/bp_data_construction/convert_ESP_files.do, line 79 use "data/tax rebates/online_wave_3_part_1&2", cleardata/tax rebates/online_wave_3_part_2Stataconvert_ESP_files.do:103
ReplicationPackage/Code/bp_data_construction/convert_ESP_files.do, line 103 use "data/tax rebates/online_wave_3_part_2", cleardata/tax rebates/paper_wave_1_part_1&2Stataconvert_ESP_files.do:127
ReplicationPackage/Code/bp_data_construction/convert_ESP_files.do, line 127 use "data/tax rebates/paper_wave_1_part_1&2", cleardata/tax rebates/paper_wave_2_part_1Stataconvert_ESP_files.do:175
ReplicationPackage/Code/bp_data_construction/convert_ESP_files.do, line 175 use "data/tax rebates/paper_wave_2_part_1", cleardata/tax rebates/paper_wave_2_part_1&2Stataconvert_ESP_files.do:151
ReplicationPackage/Code/bp_data_construction/convert_ESP_files.do, line 151 use "data/tax rebates/paper_wave_2_part_1&2", clear
8 more
Rawdata/NCP/panelists_2008.tsvTSVkiltsload1a.do:12
ReplicationPackage/Code/bp_data_construction/kiltsload1a.do, line 12 insheet using Rawdata/NCP/panelists_2008.tsv, tab clearRawdata/NCP/panelists_2009.tsvTSVkiltsload1a.do:17
ReplicationPackage/Code/bp_data_construction/kiltsload1a.do, line 17 insheet using Rawdata/NCP/panelists_2009.tsv, tab clearRawdata/NCP/panelists_2010.tsvTSVkiltsload1a.do:22
ReplicationPackage/Code/bp_data_construction/kiltsload1a.do, line 22 insheet using Rawdata/NCP/panelists_2010.tsv, tab clearRawdata/NCP/products.tsvTSVkiltsload1a.do:45
ReplicationPackage/Code/bp_data_construction/kiltsload1a.do, line 45 insheet using Rawdata/NCP/products.tsv, tab clearRawdata/NCP/products_extra_2008.tsvTSVkiltsload1a.do:37
ReplicationPackage/Code/bp_data_construction/kiltsload1a.do, line 37 insheet using Rawdata/NCP/products_extra_2008.tsv, tab clearRawdata/NCP/purchases_2008.tsvTSVkiltsload1a.do:33
ReplicationPackage/Code/bp_data_construction/kiltsload1a.do, line 33 insheet using Rawdata/NCP/purchases_2008.tsv, tab clearRawdata/NCP/retailers.tsvTSVkiltsload1a.do:41
ReplicationPackage/Code/bp_data_construction/kiltsload1a.do, line 41 insheet using Rawdata/NCP/retailers.tsv, tab clearRawdata/NCP/trips_2008.tsvTSVkiltsload1a.do:27
ReplicationPackage/Code/bp_data_construction/kiltsload1a.do, line 27 insheet using Rawdata/NCP/trips_2008.tsv, tab clear
Plus 6 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
26 scripts, in the order the master script runs them; 27 hand-offs through 24 intermediate files; 13 files written and never read back (outputs).
-
1.
ReplicationPackage/Code/Master.domaster script -
2.
ReplicationPackage/Code/bp_data_construction/import_ESP.dorun by ReplicationPackage/Code/Master.do line 29 -
3.
ReplicationPackage/Code/bp_data_construction/convert_ESP_files.dorun by ReplicationPackage/Code/Master.do line 31 reads 8 input files ·writesn280532_taxrebate_may08_wv1_fnldat.csv→ read byESP2008Prog1c_replication.dowritesn280534_taxrebate_may08_wv1_fnldat.csv→ read byESP2008Prog1c_replication.dowritesn280556_taxrebate_may08_wv1_part1&2_fnldat.csv→ read byESP2008Prog1c_replication.dowritesn280560_taxrebate_may08_wv2_part2_fnldat.csv→ read byESP2008Prog1c_replication.dowritesn280599_taxrebate_may08_wv1_fnldat.csv→ read byESP2008Prog1c_replication.dowritesn280683_taxrebate_may08_wv2_part1&2_fnldat.csv→ read byESP2008Prog1c_replication.dowritesn280756_taxrebate_may08_wv3_fnldat.csv→ read byESP2008Prog1c_replication.dowritesn280757_taxrebate_may08_wv3_fnldat.csv→ read byESP2008Prog1c_replication.do -
4.
ReplicationPackage/Code/bp_data_construction/kiltsload1a.dorun by ReplicationPackage/Code/Master.do line 33 reads 8 input files ·writespanel08→ read byESP2008Prog3d_replication.dowritespanel09→ read byESP2008Prog3d_replication.dowritespanel10→ read byESP2008Prog3d_replication.dowritesretailers→ read byESP2008Prog3d_replication.dowritestrips08→ read byESP2008Prog3d_replication.dowrites (not read again):products,products08,purchases08 -
5.
ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.dorun by ReplicationPackage/Code/Master.do line 35 9 merges · 1 estimationreads whatconvert_ESP_files.dowrotewritesESP2008Prog1c→ read byESP2008Prog3d_replication.dowrites (not read again):valid_response_households1c.csv -
6.
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.dorun by ReplicationPackage/Code/Master.do line 37 6 merges ·reads whatkiltsload1a.do,ESP2008Prog1c_replication.dowrotewritesESP2008Prog3d→ read byRegs1c_preparedata.dowritesESP2008Prog3dbig→ read byHHFTables1b_replication.dowrites (not read again):temppanel,temptrips -
7.
ReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.dorun by ReplicationPackage/Code/Master.do line 39reads whatESP2008Prog3d_replication.dowrotewritesRegs1c→ read byMC_coverage.dowritesregs1c→ read byreplicate_bp_t3.do,replicate_bp_t4.do,Run_OLS_BJS.do,Alt_estimators.do,MC_Analytical.do,MC_fewer_preperiods.do,Figure3.do,Figure5.do+2 more -
8.
ReplicationPackage/Code/bp_data_construction/HHFTables1b_replication.dorun by ReplicationPackage/Code/Master.do line 41reads whatESP2008Prog3d_replication.dowrote -
9.
ReplicationPackage/Code/bp_data_construction/replicate_bp_t3.dorun by ReplicationPackage/Code/Master.do line 45 6 estimationsreads whatRegs1c_preparedata.dowrote -
10.
ReplicationPackage/Code/bp_data_construction/replicate_bp_t4.dorun by ReplicationPackage/Code/Master.do line 47 6 estimationsreads whatRegs1c_preparedata.dowrote -
11.
ReplicationPackage/Code/Run_OLS_BJS.dorun by ReplicationPackage/Code/Master.do line 65 8 estimationsreads whatRegs1c_preparedata.dowrotewritest3_t4_bjs_estimates→ read byFigure2.do,Figure3.do,Figure4.do,Figure6.do,Table2.do,Table3.do,TableA1.do -
12.
ReplicationPackage/Code/Alt_estimators.dorun by ReplicationPackage/Code/Master.do line 67 2 estimationsreads whatRegs1c_preparedata.dowrotewritesestimates_cs→ read byFigure6.dowritesestimates_sa→ read byFigure6.do -
13.
ReplicationPackage/Code/MC_Analytical.dorun by ReplicationPackage/Code/Master.do line 69 5 estimationsreads whatRegs1c_preparedata.dowrotewritesmc_main→ read byFigureA2.do -
14.
ReplicationPackage/Code/MC_fewer_preperiods.dorun by ReplicationPackage/Code/Master.do line 71 1 estimationreads whatRegs1c_preparedata.dowrotewritesmc_fewer_preperiods→ read byFigureA2.do -
15.
ReplicationPackage/Code/MC_coverage.dorun by ReplicationPackage/Code/Master.do line 76 3 estimationsreads whatRegs1c_preparedata.dowrotewritesmc_coverage_bjs_`dgp'.dta→ read byFigureA2.do -
16.
ReplicationPackage/Code/Figure1.dorun by ReplicationPackage/Code/Master.do line 87 -
17.
ReplicationPackage/Code/Figure2.dorun by ReplicationPackage/Code/Master.do line 89reads whatRun_OLS_BJS.dowrote -
18.
ReplicationPackage/Code/Figure3.dorun by ReplicationPackage/Code/Master.do line 91 1 merge · 2 estimationsreads whatRegs1c_preparedata.do,Run_OLS_BJS.dowrotewrites (not read again):Misc_results.xlsx -
19.
ReplicationPackage/Code/Figure4.dorun by ReplicationPackage/Code/Master.do line 93reads whatRun_OLS_BJS.dowrote -
20.
ReplicationPackage/Code/Figure5.dorun by ReplicationPackage/Code/Master.do line 95 4 estimationsreads whatRegs1c_preparedata.dowrote -
21.
ReplicationPackage/Code/Figure6.dorun by ReplicationPackage/Code/Master.do line 97 2 merges ·reads whatRun_OLS_BJS.do,Alt_estimators.dowrote -
22.
ReplicationPackage/Code/FigureA1.dorun by ReplicationPackage/Code/Master.do line 99 4 estimations -
23.
ReplicationPackage/Code/FigureA2.dorun by ReplicationPackage/Code/Master.do line 101 3 merges ·reads whatMC_Analytical.do,MC_fewer_preperiods.do,MC_coverage.dowrotewrites (not read again):`t`dgp'',mc_report_long.xls -
24.
ReplicationPackage/Code/Table2.dorun by ReplicationPackage/Code/Master.do line 105reads whatRun_OLS_BJS.dowrotewrites (not read again):Table2.xlsx -
25.
ReplicationPackage/Code/Table3.dorun by ReplicationPackage/Code/Master.do line 107reads whatRegs1c_preparedata.do,Run_OLS_BJS.dowrotewrites (not read again):T3_calculation_BJS.xlsx,Table3.xlsx
1 more scripts
-
26.
ReplicationPackage/Code/TableA1.dorun by ReplicationPackage/Code/Master.do line 109 1 merge · 10 estimationsreads whatRegs1c_preparedata.do,Run_OLS_BJS.dowrotewrites (not read again):TableA1.xlsx
3 · Merges — 22 joins, 14 followed by a check of the merge result
| Joins | How | On keys | Check that follows | Where |
|---|---|---|---|---|
onlinew1p12 ← onlinew2p2 |
merge 1:1 | householdid |
tab _merge |
ESP2008Prog1c_replication.do:288ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do, line 288
merge householdid using Data/onlinew2p2, update unique |
onlinew1p12 ← onlinew2p12 |
merge 1:1 | householdid |
tab _merge |
ESP2008Prog1c_replication.do:300ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do, line 300
merge householdid using Data/onlinew2p12, update unique |
onlinew1p12 ← onlinew3p12 |
merge 1:1 | householdid |
tab _merge |
ESP2008Prog1c_replication.do:305ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do, line 305
merge householdid using Data/onlinew3p12, update unique |
onlinew1p12 ← onlinew3p2 |
merge 1:1 | householdid |
tab _merge |
ESP2008Prog1c_replication.do:315ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do, line 315
merge householdid using Data/onlinew3p2, update unique |
paperw1p12 ← paperw2p12 |
merge 1:1 | householdid |
tab _merge |
ESP2008Prog1c_replication.do:411ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do, line 411
merge householdid using Data/paperw2p12, unique |
paperw2p12 ← temp |
merge 1:1 | householdid |
tab _merge |
ESP2008Prog1c_replication.do:423ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do, line 423
merge householdid using Data/temp, unique |
paperw1p12 ← paperw2p12 |
merge 1:1 | householdid |
tab _merge |
ESP2008Prog1c_replication.do:457ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do, line 457
merge householdid using Data/paperw2p12, update replace unique |
paperw1p12 ← paperw2p2 |
merge 1:1 | householdid |
tab _merge |
ESP2008Prog1c_replication.do:467ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do, line 467
merge householdid using Data/paperw2p2, update replace unique |
paperw1p12 ← onlinetemp |
merge 1:1 | householdid |
tab _merge |
ESP2008Prog1c_replication.do:483ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do, line 483
merge householdid using Data/onlinetemp, update unique |
panel09 ← temp |
merge | hhid |
tab _merge ; |
ESP2008Prog3d_replication.do:37ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 37
merge hhid using Data/temp ; |
panel08 ← temp |
merge | hhid |
none | ESP2008Prog3d_replication.do:50ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 50
merge hhid using Data/temp ; |
trips08 ← retailers |
merge | retailer_code |
tab _merge ; |
ESP2008Prog3d_replication.do:73ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 73
merge retailer_code using Data/retailers ; |
trips08 ← esp2008prog1c |
merge | hhid |
tab _merge ; |
ESP2008Prog3d_replication.do:164ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 164
merge hhid using Data/ESP2008Prog1c ; |
temptrips ← esp2008prog1c |
merge | hhid |
tab _merge ; |
ESP2008Prog3d_replication.do:239ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 239
merge hhid using Data/ESP2008Prog1c ; |
temptrips ← ? |
merge | hhid |
tab _merge ; |
ESP2008Prog3d_replication.do:247ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 247
merge hhid using Data/temppanel; ; |
regs1c ← t3_t4_bjs_estimates |
merge 1:1 | hh |
none | Figure3.do:52ReplicationPackage/Code/Figure3.do, line 52
merge 1:1 hh using Data/t3_t4_bjs_estimates, keep(1 3) nogen keepusing(t3* t4* bjs*) |
t3_t4_bjs_estimates ← estimates_cs |
merge 1:1 | hh |
none | Figure6.do:5ReplicationPackage/Code/Figure6.do, line 5
merge 1:1 hh using data/estimates_cs, nogen |
t3_t4_bjs_estimates ← estimates_sa |
merge 1:1 | hh |
none | Figure6.do:6ReplicationPackage/Code/Figure6.do, line 6
merge 1:1 hh using data/estimates_sa, nogen |
`thomo' ← `thetero' |
merge 1:1 | h |
none | FigureA2.do:177ReplicationPackage/Code/FigureA2.do, line 177
merge 1:1 h using `thetero', nogen assert(3) |
`thomo' ← `tar1' |
merge 1:1 | h |
none | FigureA2.do:178ReplicationPackage/Code/FigureA2.do, line 178
merge 1:1 h using `tar1', nogen assert(3) |
`thomo' ← `twild' |
merge 1:1 | h |
none | FigureA2.do:179ReplicationPackage/Code/FigureA2.do, line 179
merge 1:1 h using `twild', nogen assert(3) |
regs1c ← t3_t4_bjs_estimates |
merge 1:1 | hh |
none | TableA1.do:21ReplicationPackage/Code/TableA1.do, line 21
merge 1:1 hh using Data/t3_t4_bjs_estimates, nogen assert(1 3) |
4 · The sample — 25 keep/drop steps, 0 variables winsorized or trimmed
Filters, by kind
value ranges ×4
- drop if
hhid==hhid[_n+1]HHFTables1b_replication.do:191
ReplicationPackage/Code/bp_data_construction/HHFTables1b_replication.do, line 191 drop if hhid==hhid[_n+1] ; - keep if
pperiod<830Alt_estimators.do:11
ReplicationPackage/Code/Alt_estimators.do, line 11 keep if pperiod<830 // 830 = max(Ei) - keep if
pperiod>=816MC_fewer_preperiods.do:10
ReplicationPackage/Code/MC_fewer_preperiods.do, line 10 keep if pperiod>=816 - keep if
K<=11MC_coverage.do:81
ReplicationPackage/Code/MC_coverage.do, line 81 keep if K<=11
category values ×1
- drop if
householdid==02101507ESP2008Prog1c_replication.do:393
ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do, line 393 drop if householdid==02101507
indicator subsets ×4
- drop if
flagmonthmissing==1 | flagdaymissing==1Regs1c_preparedata.do:115
ReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do, line 115 drop if flagmonthmissing==1 | flagdaymissing==1 ; - drop if
flagesp2aftersubmit==1 | flagp2esp2beforep1submit==1Regs1c_preparedata.do:117
ReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do, line 117 drop if flagesp2aftersubmit==1 | flagp2esp2beforep1submit==1 ; - drop if
flagmonthmissing==1 | flagdaymissing==1HHFTables1b_replication.do:48
ReplicationPackage/Code/bp_data_construction/HHFTables1b_replication.do, line 48 drop if flagmonthmissing==1 | flagdaymissing==1 ; - drop if
flagesp2aftersubmit==1 | flagp2esp2beforep1submit==1HHFTables1b_replication.do:50
ReplicationPackage/Code/bp_data_construction/HHFTables1b_replication.do, line 50 drop if flagesp2aftersubmit==1 | flagp2esp2beforep1submit==1 ;
missing values ×4
- drop if
intrips08==.ESP2008Prog3d_replication.do:171
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 171 drop if intrips08==. ; - drop if
insurvey== .ESP2008Prog3d_replication.do:175
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 175 drop if insurvey== . ; - drop if
total_spent==.ESP2008Prog3d_replication.do:210
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 210 drop if total_spent==. ; - drop if
hhid==. | pperiod==.ESP2008Prog3d_replication.do:230
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 230 drop if hhid==. | pperiod==. ; /*just checking*/
other conditions ×7
- keep if
sample2 & sampleAlt_estimators.do:10
ReplicationPackage/Code/Alt_estimators.do, line 10 keep if sample2 & sample - keep if
inrange(hh,-8,35)Alt_estimators.do:58
ReplicationPackage/Code/Alt_estimators.do, line 58 keep if inrange(hh,-8,35) - keep if
sample2 & sampleMC_Analytical.do:8
ReplicationPackage/Code/MC_Analytical.do, line 8 keep if sample2 & sample - keep if
sample2 & sampleMC_fewer_preperiods.do:8
ReplicationPackage/Code/MC_fewer_preperiods.do, line 8 keep if sample2 & sample - keep if
sample2 & sampleMC_coverage.do:18
ReplicationPackage/Code/MC_coverage.do, line 18 keep if sample2 & sample - keep if
inrange(hh,0,12)Figure6.do:7
ReplicationPackage/Code/Figure6.do, line 7 keep if inrange(hh,0,12) - keep if
inrange(K,-4,3)FigureA1.do:51
ReplicationPackage/Code/FigureA1.do, line 51 keep if inrange(K,-4,3)
drops after a merge (_merge) ×5
- keep if
_merge==3ESP2008Prog1c_replication.do:414
ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do, line 414 keep if _merge==3 - drop if
_merge==2ESP2008Prog3d_replication.do:39
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 39 drop if _merge==2 ; - drop if
_merge==2ESP2008Prog3d_replication.do:55
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 55 drop if _merge==2 ; - drop if
_merge==2ESP2008Prog3d_replication.do:243
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 243 drop if _merge==2 ; /*drop if obs from using only */ - drop if
_merge==2ESP2008Prog3d_replication.do:252
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 252 drop if _merge==2 ; /*DROP HH with no ESP survey or no spending data KEEPING households with no family panel data*/
Outliers
No winsorizing or trimming recorded.
Missing values
common sample across variables (listwise) ×12
TableA1.do:46
ReplicationPackage/Code/TableA1.do, line 46 replace t4c1_weight`m' = . if !e(sample)TableA1.do:73
ReplicationPackage/Code/TableA1.do, line 73 replace t3c1_weight`h' = . if !e(sample)TableA1.do:166
ReplicationPackage/Code/TableA1.do, line 166 replace t4c4_weight`m' = . if !e(sample)TableA1.do:193
ReplicationPackage/Code/TableA1.do, line 193 replace t3c4_weight`h' = . if !e(sample)Run_OLS_BJS.do:27
ReplicationPackage/Code/Run_OLS_BJS.do, line 27 distinct hhid if e(sample)Run_OLS_BJS.do:70
ReplicationPackage/Code/Run_OLS_BJS.do, line 70 distinct hhid if e(sample)
filled with a value ×6
spbot1pct→spbot1pct[_n-1]Regs1c_preparedata.do:138
ReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do, line 138 replace spbot1pct = spbot1pct[_n-1] if spbot1pct==. ;spbot1pct→spbot1pct[_n-1]Regs1c_preparedata.do:141
ReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do, line 141 replace spbot1pct = spbot1pct[_n-1] if spbot1pct==. ;topp1→topp1[_n-1]Regs1c_preparedata.do:175
ReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do, line 175 replace topp1 = topp1[_n-1] if topp1==. ;topp1→topp1[_n-1]Regs1c_preparedata.do:177
ReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do, line 177 replace topp1 = topp1[_n-1] if topp1==. ;spbot1pct→spbot1pct[_n-1]HHFTables1b_replication.do:71
ReplicationPackage/Code/bp_data_construction/HHFTables1b_replication.do, line 71 replace spbot1pct = spbot1pct[_n-1] if spbot1pct==. ;spbot1pct→spbot1pct[_n-1]HHFTables1b_replication.do:74
ReplicationPackage/Code/bp_data_construction/HHFTables1b_replication.do, line 74 replace spbot1pct = spbot1pct[_n-1] if spbot1pct==. ;
dropped ×4
ESP2008Prog3d_replication.do:171
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 171 drop if intrips08==. ;ESP2008Prog3d_replication.do:175
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 175 drop if insurvey== . ;ESP2008Prog3d_replication.do:210
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 210 drop if total_spent==. ;ESP2008Prog3d_replication.do:230
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 230 drop if hhid==. | pperiod==. ; /*just checking*/
set to zero ×2
total_spent→0ESP2008Prog3d_replication.do:199
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 199 replace total_spent = 0 if total_spent==. ;channelnum→0ESP2008Prog3d_replication.do:215
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 215 replace channelnum=0 if channelnum==. ;
5 · Key variables — what enters the models, and where the code builds it
| Variable | Used in models as | Built by |
|---|---|---|
spending |
outcome in 27 | spending = sum(total_spent) (egen sum) ESP2008Prog3d_replication.do:203ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 203
egen spending = sum(total_spent), by(hhid pperiod) ; |
pctspend100 |
outcome in 4 | pctspend100 = 100*pctspend (gen) replicate_bp_t3.do:4ReplicationPackage/Code/bp_data_construction/replicate_bp_t3.do, line 4
gen pctspend100 = 100*pctspend pctspend100 = 100*pctspend (gen) replicate_bp_t4.do:5ReplicationPackage/Code/bp_data_construction/replicate_bp_t4.do, line 5
gen pctspend100 = 100*pctspend |
current |
outcome in 3 | current = lirebate`h' (rename) MC_Analytical.do:139ReplicationPackage/Code/MC_Analytical.do, line 139
rename lirebate`h' current current = lirebate`h' (rename) MC_Analytical.do:150ReplicationPackage/Code/MC_Analytical.do, line 150
rename lirebate`h' current current = m_lirebate`m' (rename) MC_Analytical.do:166ReplicationPackage/Code/MC_Analytical.do, line 166
rename m_lirebate`m' current |
D |
outcome in 2 | D = K>=0 (gen) Run_OLS_BJS.do:4ReplicationPackage/Code/Run_OLS_BJS.do, line 4
gen D = K>=0 D = pperiod>=Ei (gen) Alt_estimators.do:8ReplicationPackage/Code/Alt_estimators.do, line 8
gen D = pperiod>=Ei D = pperiod>=Ei (gen) MC_Analytical.do:6ReplicationPackage/Code/MC_Analytical.do, line 6
gen D = pperiod>=Ei +5 more statements set it |
spending100 |
outcome in 2 | spending100 = 100*spending (gen) replicate_bp_t3.do:3ReplicationPackage/Code/bp_data_construction/replicate_bp_t3.do, line 3
gen spending100 = 100*spending |
spending4 |
outcome in 2 | spending4 = 4*spending (gen) replicate_bp_t4.do:3ReplicationPackage/Code/bp_data_construction/replicate_bp_t4.do, line 3
gen spending4 = 4*spending // our response is per week; we are interested in per month (4 weeks) spending4 = 4*spending (gen) Figure3.do:2ReplicationPackage/Code/Figure3.do, line 2
gen spending4 = 4*spending // our response is per week; we are interested in per month (4 weeks) |
spending400 |
outcome in 2 | spending400 = 400*spending (gen) replicate_bp_t4.do:4ReplicationPackage/Code/bp_data_construction/replicate_bp_t4.do, line 4
gen spending400 = 400*spending |
eps |
outcome in 1 | eps = $sd_resid * rnormal() (gen) MC_coverage.do:68ReplicationPackage/Code/MC_coverage.do, line 68
gen eps = $sd_resid * rnormal() eps = resid * sign (gen) MC_coverage.do:74ReplicationPackage/Code/MC_coverage.do, line 74
gen eps = resid * sign eps = eps[_n-1] * $ar1_rho + eps * sqrt(1-$ar1_rho ^ 2) (replace) MC_coverage.do:69ReplicationPackage/Code/MC_coverage.do, line 69
replace eps = eps[_n-1] * $ar1_rho + eps * sqrt(1-$ar1_rho ^ 2) if pperiod!=801 |
totrepspend |
outcome in 1 | totrepspend = qn11_1+qn11_2+qn11_3+qn11_4+qn11_5 (gen) ESP2008Prog1c_replication.do:794ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do, line 794
gen totrepspend = qn11_1+qn11_2+qn11_3+qn11_4+qn11_5 ; |
lirebate |
regressor in 14 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
pirebate |
regressor in 11 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
irebate |
regressor in 8 | irebate = . (gen) ESP2008Prog3d_replication.do:293ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 293
gen irebate = . ; irebate = 0 (replace) ESP2008Prog3d_replication.do:294ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 294
replace irebate= 0 if flagdaymissing==0 & flagmonthmissing==0 ; irebate = 1 (replace) ESP2008Prog3d_replication.do:295ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 295
replace irebate= 1 if (800+rebweek==pperiod) & rebweek~=. ; +1 more statements set it |
list |
regressor in 4 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
lrebate |
regressor in 4 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
pirebate1 |
regressor in 4 | pirebate1 = . (gen) Regs1c_preparedata.do:194ReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do, line 194
gen byte pirebate`j' = . ; pirebate1 = . (gen) replicate_bp_t4.do:20ReplicationPackage/Code/bp_data_construction/replicate_bp_t4.do, line 20
gen byte pirebate`j' = . pirebate1 = o_pirebate1 (rename) MC_Analytical.do:157ReplicationPackage/Code/MC_Analytical.do, line 157
rename (o_pirebate1 o_pirebate5) (pirebate1 pirebate5) +5 more statements set it |
post_ |
regressor in 4 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
prebate |
regressor in 4 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
rebate |
regressor in 4 | rebate = irebate*amount (gen) ESP2008Prog3d_replication.do:299ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 299
gen rebate = irebate*amount ; rebate = 3000 (replace) Regs1c_preparedata.do:109ReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do, line 109
replace rebate=3000 if rebate>3000 & rebate~=. ; rebate = 3000.001 (replace) HHFTables1b_replication.do:37ReplicationPackage/Code/bp_data_construction/HHFTables1b_replication.do, line 37
replace rebate=3000.001 if rebate>3000 & rebate~=. ; +5 more statements set it |
thisvar |
regressor in 4 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
m_lirebate |
regressor in 3 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
m_pirebate1 |
regressor in 3 | m_pirebate1 = K4==-1 (gen) Run_OLS_BJS.do:11ReplicationPackage/Code/Run_OLS_BJS.do, line 11
gen m_pirebate1 = K4==-1 m_pirebate1 = K4==-1 (gen) MC_Analytical.do:161ReplicationPackage/Code/MC_Analytical.do, line 161
gen m_pirebate1 = K4==-1 m_pirebate1 = K4==-1 (gen) TableA1.do:13ReplicationPackage/Code/TableA1.do, line 13
gen m_pirebate1 = K4==-1 |
H |
regressor in 2 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
event |
regressor in 2 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
lirebate0 |
regressor in 2 | lirebate0 = irebate (rename) Run_OLS_BJS.do:7ReplicationPackage/Code/Run_OLS_BJS.do, line 7
rename irebate lirebate0 lirebate0 = irebate (rename) MC_Analytical.do:4ReplicationPackage/Code/MC_Analytical.do, line 4
rename irebate lirebate0 lirebate0 = irebate (rename) MC_fewer_preperiods.do:4ReplicationPackage/Code/MC_fewer_preperiods.do, line 4
rename irebate lirebate0 +2 more statements set it |
pre_1 |
regressor in 2 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
pre_2 |
regressor in 2 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
pre_3 |
regressor in 2 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
pre_4 |
regressor in 2 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
F |
regressor in 1 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
L |
regressor in 1 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
amount |
regressor in 1 | amount = qn8a (gen) ESP2008Prog1c_replication.do:715ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do, line 715
gen amount = qn8a ; amount = . (replace) ESP2008Prog1c_replication.do:716ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do, line 716
replace amount = . if qn8a==0 ; amount = 3000 (replace) Regs1c_preparedata.do:108ReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do, line 108
replace amount=3000 if amount>3000 & amount~=. ; +1 more statements set it |
t3c1_rhs |
regressor in 1 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
t3c4_rhs |
regressor in 1 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
t4c1_rhs |
regressor in 1 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
t4c4_rhs |
regressor in 1 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
6 · Models, by the table or figure they feed — 52 estimations, 12 traced into 2 exhibits
replicate_bp_t3.xls
· 6 estimations → replicate_bp_t3.xls
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
spending |
pirebate* irebate lirebate*
|
hhid, pperiod | cluster: hhid | replicate_bp_t3.do:32ReplicationPackage/Code/bp_data_construction/replicate_bp_t3.do, line 32
eststo : reghdfe spending pirebate* irebate lirebate* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) // T3 c1 written at replicate_bp_t3.do:51 |
reghdfepanel fe |
pctspend100 |
pirebate* irebate lirebate*
|
hhid, pperiod | cluster: hhid | replicate_bp_t3.do:34ReplicationPackage/Code/bp_data_construction/replicate_bp_t3.do, line 34
eststo : reghdfe pctspend100 pirebate* irebate lirebate* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) // T3 c2 written at replicate_bp_t3.do:51 |
reghdfepanel fe |
spending100 |
prebate* rebate lrebate*
|
hhid, pperiod | cluster: hhid | replicate_bp_t3.do:35ReplicationPackage/Code/bp_data_construction/replicate_bp_t3.do, line 35
eststo : reghdfe spending100 prebate* rebate lrebate* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) // T3 c3 written at replicate_bp_t3.do:51 |
reghdfepanel fe |
spending |
pirebate* irebate lirebate*
|
hhid, pperiod#qn8 | cluster: hhid | replicate_bp_t3.do:48ReplicationPackage/Code/bp_data_construction/replicate_bp_t3.do, line 48
eststo : reghdfe spending pirebate* irebate lirebate* [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) // T3 c4 written at replicate_bp_t3.do:51 |
reghdfepanel fe |
pctspend100 |
pirebate* irebate lirebate*
|
hhid, pperiod#qn8 | cluster: hhid | replicate_bp_t3.do:49ReplicationPackage/Code/bp_data_construction/replicate_bp_t3.do, line 49
eststo : reghdfe pctspend100 pirebate* irebate lirebate* [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) // T3 c5 written at replicate_bp_t3.do:51 |
reghdfepanel fe |
spending100 |
prebate* rebate lrebate*
|
hhid, pperiod#qn8 | cluster: hhid | replicate_bp_t3.do:50ReplicationPackage/Code/bp_data_construction/replicate_bp_t3.do, line 50
eststo : reghdfe spending100 prebate* rebate lrebate* [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) // T3 c6 written at replicate_bp_t3.do:51 |
replicate_bp_t4.xls
· 6 estimations → replicate_bp_t4.xls
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
spending4 |
pirebate* irebate lirebate*
|
hhid, pperiod | cluster: hhid | replicate_bp_t4.do:59ReplicationPackage/Code/bp_data_construction/replicate_bp_t4.do, line 59
eststo : reghdfe spending4 pirebate* irebate lirebate* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) // T4 c1 written at replicate_bp_t4.do:77 |
reghdfepanel fe |
pctspend100 |
pirebate* irebate lirebate*
|
hhid, pperiod | cluster: hhid | replicate_bp_t4.do:60ReplicationPackage/Code/bp_data_construction/replicate_bp_t4.do, line 60
eststo : reghdfe pctspend100 pirebate* irebate lirebate* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) // T4 c2 written at replicate_bp_t4.do:77 |
reghdfepanel fe |
spending400 |
prebate* rebate lrebate*
|
hhid, pperiod | cluster: hhid | replicate_bp_t4.do:61ReplicationPackage/Code/bp_data_construction/replicate_bp_t4.do, line 61
eststo : reghdfe spending400 prebate* rebate lrebate* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) // T4 c3 written at replicate_bp_t4.do:77 |
reghdfepanel fe |
spending4 |
pirebate* irebate lirebate*
|
hhid, pperiod#qn8 | cluster: hhid | replicate_bp_t4.do:74ReplicationPackage/Code/bp_data_construction/replicate_bp_t4.do, line 74
eststo : reghdfe spending4 pirebate* irebate lirebate* [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) // T4 c4 written at replicate_bp_t4.do:77 |
reghdfepanel fe |
pctspend100 |
pirebate* irebate lirebate*
|
hhid, pperiod#qn8 | cluster: hhid | replicate_bp_t4.do:75ReplicationPackage/Code/bp_data_construction/replicate_bp_t4.do, line 75
eststo : reghdfe pctspend100 pirebate* irebate lirebate* [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) // T4 c5 written at replicate_bp_t4.do:77 |
reghdfepanel fe |
spending400 |
prebate* rebate lrebate*
|
hhid, pperiod#qn8 | cluster: hhid | replicate_bp_t4.do:76ReplicationPackage/Code/bp_data_construction/replicate_bp_t4.do, line 76
eststo : reghdfe spending400 prebate* rebate lrebate* [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) // T4 c6 written at replicate_bp_t4.do:77 |
Estimations not traced to a table or figure · 40
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
regols |
totrepspend |
amount ;
|
— | default | ESP2008Prog1c_replication.do:806ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do, line 806
reg totrepspend amount ; |
reghdfepanel fe |
spending |
pirebate1 lirebate*
|
hhid, pperiod | cluster: hhid | Run_OLS_BJS.do:25ReplicationPackage/Code/Run_OLS_BJS.do, line 25
reghdfe spending pirebate1 lirebate* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) |
reghdfepanel fe |
spending |
m_pirebate1 m_lirebate*
|
hhid, pperiod | cluster: hhid | Run_OLS_BJS.do:68ReplicationPackage/Code/Run_OLS_BJS.do, line 68
reghdfe spending m_pirebate1 m_lirebate* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) |
reghdfepanel fe |
spending |
pirebate* lirebate0 lirebate1-lirebate7
|
hhid, pperiod | cluster: hhid | Run_OLS_BJS.do:107ReplicationPackage/Code/Run_OLS_BJS.do, line 107
reghdfe spending pirebate* lirebate0 lirebate1-lirebate7 [weight=projection_factor] if sample2 & sample & K<8, cluster(hhid) a(hhid pperiod) |
did_imputationdid |
spending |
— | default | Run_OLS_BJS.do:130ReplicationPackage/Code/Run_OLS_BJS.do, line 130
did_imputation spending hhid pperiod Ei [aw=projection_factor] if sample2 & sample, autosample horizons(0/12) pretrend(8) |
|
reghdfepanel fe |
spending |
pirebate1 lirebate*
|
hhid, pperiod#qn8 | cluster: hhid | Run_OLS_BJS.do:184ReplicationPackage/Code/Run_OLS_BJS.do, line 184
reghdfe spending pirebate1 lirebate* [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) |
reghdfepanel fe |
spending |
m_pirebate1 m_lirebate*
|
hhid, pperiod#qn8 | cluster: hhid | Run_OLS_BJS.do:227ReplicationPackage/Code/Run_OLS_BJS.do, line 227
reghdfe spending m_pirebate1 m_lirebate* [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) |
reghdfepanel fe |
spending |
pirebate* lirebate0 lirebate1-lirebate7
|
hhid, pperiod#qn8 | cluster: hhid | Run_OLS_BJS.do:266ReplicationPackage/Code/Run_OLS_BJS.do, line 266
reghdfe spending pirebate* lirebate0 lirebate1-lirebate7 [weight=projection_factor] if sample2 & sample & validmeans & K<8, cluster(hhid) a(hhid pperiod#qn8) |
did_imputationdid |
spending |
— | default | Run_OLS_BJS.do:289ReplicationPackage/Code/Run_OLS_BJS.do, line 289
did_imputation spending hhid pperiod Ei [aw=projection_factor] if sample2 & sample & validmeans, autosample horizons(0/11) fe(hhid pperiod#qn8) pretrend(8) |
|
csdiddid |
spending |
— | default | Alt_estimators.do:19ReplicationPackage/Code/Alt_estimators.do, line 19
csdid spending [iw=projection_factor], ivar(hhid) time(pperiod) gvar(gvar) notyet agg(event) wboot |
|
eventstudyinteractdid |
spending |
L*event F*event
|
hhid, pperiod | cluster: hhid | Alt_estimators.do:43ReplicationPackage/Code/Alt_estimators.do, line 43
eventstudyinteract spending L*event F*event [aw=projection_factor], vce(cluster hhid) absorb(hhid pperiod) cohort(Ei_mi) control_cohort(lastcohort) |
did_imputationdid |
spending |
— | default | MC_Analytical.do:18ReplicationPackage/Code/MC_Analytical.do, line 18
did_imputation spending hhid pperiod Ei if pperiod<830 [aw=projection_factor], horizons(0/11) saveweights ///
minn(1) saveestimates(tau_individual) saveresid(resid) |
|
reghdfepanel fe |
spending |
unitfe=hhid, pperiod | default | MC_Analytical.do:56ReplicationPackage/Code/MC_Analytical.do, line 56
reghdfe spending if D==0 [aw=projection_factor], a(unitfe=hhid pperiod) |
|
reghdfepanel fe |
current |
lirebate*
|
hhid, pperiod | cluster: hhid | MC_Analytical.do:140ReplicationPackage/Code/MC_Analytical.do, line 140
reghdfe current lirebate* [weight=projection_factor], cluster(hhid) a(hhid pperiod) resid(v_semi`h') run 12× in a loop (h=0; h=1; h=2…)
|
reghdfepanel fe |
current |
lirebate* pirebate*
|
hhid, pperiod | default | MC_Analytical.do:151ReplicationPackage/Code/MC_Analytical.do, line 151
reghdfe current lirebate* pirebate* [weight=projection_factor], a(hhid pperiod) resid(v_fully`h') run 12× in a loop (h=0; h=1; h=2…)
|
reghdfepanel fe |
current |
m_pirebate1 m_lirebate*
|
hhid, pperiod | cluster: hhid | MC_Analytical.do:167ReplicationPackage/Code/MC_Analytical.do, line 167
reghdfe current m_pirebate1 m_lirebate* [weight=projection_factor], cluster(hhid) a(hhid pperiod) resid(v_binned_m`m') run 3× in a loop (m=0; m=1; m=2)
|
did_imputationdid |
spending |
— | default | MC_fewer_preperiods.do:20ReplicationPackage/Code/MC_fewer_preperiods.do, line 20
did_imputation spending hhid pperiod Ei if pperiod<830 [aw=projection_factor], horizons(0/11) saveweights minn(1) ///
saveestimates(tau_individual) saveresid(resid) |
|
did_imputationdid |
spending |
— | default | MC_coverage.do:23ReplicationPackage/Code/MC_coverage.do, line 23
did_imputation spending hhid pperiod Ei if pperiod<830 [aw=projection_factor], horizons(0/11) saveweights minn(1) ///
saveestimates(tau_individual) saveresid(resid) |
|
reghdfepanel fe |
spending |
unitfe=hhid, pperiod | default | MC_coverage.do:46ReplicationPackage/Code/MC_coverage.do, line 46
reghdfe spending if D==0 [aw=projection_factor], a(unitfe=hhid pperiod) |
|
did_imputationdid |
eps |
— | default | MC_coverage.do:82ReplicationPackage/Code/MC_coverage.do, line 82
did_imputation eps hhid pperiod Ei [aw=projection_factor], autosample horizons(0/11) minn(1) loadweights(v_bjs*) |
|
reghdfepanel fe |
o_lirebate`j' |
pirebate1 lirebate*
|
hhid, pperiod | cluster: hhid | Figure3.do:16ReplicationPackage/Code/Figure3.do, line 16
reghdfe o_lirebate`j' pirebate1 lirebate* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) resid(w_c1_m`j') run 6× in a loop (j=0; j=1; j=2…)
|
reghdfepanel fe |
o_lirebate`j' |
pirebate1 lirebate*
|
hhid, pperiod#qn8 | cluster: hhid | Figure3.do:27ReplicationPackage/Code/Figure3.do, line 27
reghdfe o_lirebate`j' pirebate1 lirebate* [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) resid(w_c4_m`j') run 6× in a loop (j=0; j=1; j=2…)
|
reghdfepanel fe |
spending |
o.pre_1 o.pre_2 pre_3-pre_29 post_*
|
hhid, pperiod | cluster: hhid | Figure5.do:14ReplicationPackage/Code/Figure5.do, line 14
reghdfe spending o.pre_1 o.pre_2 pre_3-pre_29 post_* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) |
reghdfepanel fe |
spending |
pre_1-pre_2 o.pre_3 o.pre_4 pre_5-pre_29 post_*
|
hhid, pperiod | cluster: hhid | Figure5.do:16ReplicationPackage/Code/Figure5.do, line 16
reghdfe spending pre_1-pre_2 o.pre_3 o.pre_4 pre_5-pre_29 post_* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) |
reghdfepanel fe |
spending |
o.pre_1 o.pre_2 pre_3-pre_29 post_*
|
hhid, pperiod#qn8 | cluster: hhid | Figure5.do:27ReplicationPackage/Code/Figure5.do, line 27
reghdfe spending o.pre_1 o.pre_2 pre_3-pre_29 post_* [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) |
reghdfepanel fe |
spending |
pre_1-pre_2 o.pre_3 o.pre_4 pre_5-pre_29 post_*
|
hhid, pperiod#qn8 | cluster: hhid | Figure5.do:29ReplicationPackage/Code/Figure5.do, line 29
reghdfe spending pre_1-pre_2 o.pre_3 o.pre_4 pre_5-pre_29 post_* [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) |
reghdfepanel fe |
D |
i, t | default | FigureA1.do:23ReplicationPackage/Code/FigureA1.do, line 23
reghdfe D, a(i t) resid(w_notrim_OLS) keepsing verbose(-1) |
|
reghdfepanel fe |
oH`h' |
H*
|
i, t | default | FigureA1.do:39ReplicationPackage/Code/FigureA1.do, line 39
reghdfe oH`h' H*, a(i t) resid(w_notrim_semi`h') keepsing verbose(-1) run 4× in a loop (h=0; h=1; h=2…)
|
reghdfepanel fe |
D |
i, t | default | FigureA1.do:55ReplicationPackage/Code/FigureA1.do, line 55
reghdfe D, a(i t) resid(w_OLS) keepsing verbose(-1) |
|
reghdfepanel fe |
oH`h' |
H*
|
i, t | default | FigureA1.do:67ReplicationPackage/Code/FigureA1.do, line 67
reghdfe oH`h' H*, a(i t) resid(w_semi`h') keepsing verbose(-1) run 4× in a loop (h=0; h=1; h=2…)
|
did_imputationdid |
spending |
— | default | TableA1.do:24ReplicationPackage/Code/TableA1.do, line 24
did_imputation spending hhid pperiod Ei [aw=projection_factor] if sample2 & sample, autosample horizons(0/11) fe(hhid pperiod) saveweights saveresid(bjs_c1_eps) |
|
reghdfepanel fe |
spending |
`t4c1_rhs'
|
hhid, pperiod | cluster: hhid | TableA1.do:39ReplicationPackage/Code/TableA1.do, line 39
reghdfe spending `t4c1_rhs' [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) resid(t4c1_eps) |
reghdfepanel fe |
m_lirebate`m' |
: list t4c1_rhs - thisvar
|
hhid, pperiod | cluster: hhid | TableA1.do:45ReplicationPackage/Code/TableA1.do, line 45
reghdfe `thisvar' `othervars' [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) resid(t4c1_weight`m')
as we read it (macros filled in / loop expanded):
reghdfe m_lirebate`m' : list t4c1_rhs - thisvar [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) resid(t4c1_weight`m') |
reghdfepanel fe |
spending |
`t3c1_rhs'
|
hhid, pperiod | cluster: hhid | TableA1.do:66ReplicationPackage/Code/TableA1.do, line 66
reghdfe spending `t3c1_rhs' [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) resid(t3c1_eps) |
reghdfepanel fe |
lirebate`h' |
: list t3c1_rhs - thisvar
|
hhid, pperiod | cluster: hhid | TableA1.do:72ReplicationPackage/Code/TableA1.do, line 72
reghdfe `thisvar' `othervars' [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) resid(t3c1_weight`h')
as we read it (macros filled in / loop expanded):
reghdfe lirebate`h' : list t3c1_rhs - thisvar [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) resid(t3c1_weight`h') |
did_imputationdid |
spending |
— | default | TableA1.do:144ReplicationPackage/Code/TableA1.do, line 144
did_imputation spending hhid pperiod Ei [aw=projection_factor] if sample2 & sample & validmeans, autosample horizons(0/11) fe(hhid pperiod#qn8) saveweights saveresid(bjs_c4_eps) |
|
reghdfepanel fe |
spending |
`t4c4_rhs'
|
hhid, pperiod#qn8 | cluster: hhid | TableA1.do:159ReplicationPackage/Code/TableA1.do, line 159
reghdfe spending `t4c4_rhs' [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) resid(t4c4_eps) |
reghdfepanel fe |
m_lirebate`m' |
: list t4c4_rhs - thisvar
|
hhid, pperiod#qn8 | cluster: hhid | TableA1.do:165ReplicationPackage/Code/TableA1.do, line 165
reghdfe `thisvar' `othervars' [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) resid(t4c4_weight`m')
as we read it (macros filled in / loop expanded):
reghdfe m_lirebate`m' : list t4c4_rhs - thisvar [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) resid(t4c4_weight`m') |
reghdfepanel fe |
spending |
`t3c4_rhs'
|
hhid, pperiod#qn8 | cluster: hhid | TableA1.do:186ReplicationPackage/Code/TableA1.do, line 186
reghdfe spending `t3c4_rhs' [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) resid(t3c4_eps) |
reghdfepanel fe |
lirebate`h' |
: list t3c4_rhs - thisvar
|
hhid, pperiod#qn8 | cluster: hhid | TableA1.do:192ReplicationPackage/Code/TableA1.do, line 192
reghdfe `thisvar' `othervars' [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) resid(t3c4_weight`h')
as we read it (macros filled in / loop expanded):
reghdfe lirebate`h' : list t3c4_rhs - thisvar [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) resid(t3c4_weight`h') |
Tables and figures the code writes:
· · · · · Table 2 · Table 3 · Table A1 · Figure 1 · Figure 2 · Figure 2 · Figure 3 · Figure 4 · Figure 4 · Figure 4 · Figure 5 · Figure 5 · Figure 6 · Figure 6 · Figure A1 · Figure A1 · Figure A2 · Figure A2 · Figure A2 · Figure A2 · Figure A2 · Figure A2
`1 Regs1c_preparedata.do:216
ReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do, line 216
outreg2 prebate* reb* lrebate1-lrebate`3' using logfiles_Broda_Parker/`1', noaster nor2 nocons `2' ctitle(spendonESP)
Misc_results.xlsx Figure3.do:54
ReplicationPackage/Code/Figure3.do, line 54
putexcel set Results/Misc_results.xlsx, modify sheet(MiscResults)
replicate_bp_t3.xls replicate_bp_t3.do:51
ReplicationPackage/Code/bp_data_construction/replicate_bp_t3.do, line 51
estout using "Results/replicate_bp_t3.xls", replace cells(b se)
replicate_bp_t4.xls replicate_bp_t4.do:77
ReplicationPackage/Code/bp_data_construction/replicate_bp_t4.do, line 77
estout using "Results/replicate_bp_t4.xls", replace cells(b se)
T3_calculation_BJS.xlsx Table3.do:21
ReplicationPackage/Code/Table3.do, line 21
putexcel set Results/T3_calculation_BJS.xlsx, modify sheet("Table 5 Aggregate MPC")
Table2.xlsx Table2.do:41
ReplicationPackage/Code/Table2.do, line 41
putexcel set Results/Table2.xlsx, modify sheet(Table2)
Table3.xlsx Table3.do:29
ReplicationPackage/Code/Table3.do, line 29
putexcel set Results/Table3.xlsx, modify sheet(Computation)
TableA1.xlsx TableA1.do:320
ReplicationPackage/Code/TableA1.do, line 320
putexcel set Results/TableA1.xlsx, modify sheet(TableA1)
Figure1.eps Figure1.do:21
ReplicationPackage/Code/Figure1.do, line 21
graph export "Results/Figure1.eps", replace
Figure2_A.tif Figure2.do:8
ReplicationPackage/Code/Figure2.do, line 8
graph export "Results/Figure2_A.tif", replace
Figure2_B.tif Figure2.do:15
ReplicationPackage/Code/Figure2.do, line 15
graph export "Results/Figure2_B.tif", replace
Figure3.eps Figure3.do:48
ReplicationPackage/Code/Figure3.do, line 48
graph export "Results/Figure3.eps", replace
Figure4_A.eps Figure4.do:8
ReplicationPackage/Code/Figure4.do, line 8
graph export "Results/Figure4_A.eps", replace
Figure4_B.eps Figure4.do:15
ReplicationPackage/Code/Figure4.do, line 15
graph export "Results/Figure4_B.eps", replace
Figure4_C.eps Figure4.do:22
ReplicationPackage/Code/Figure4.do, line 22
graph export "Results/Figure4_C.eps", replace
Figure5_A.tif Figure5.do:24
ReplicationPackage/Code/Figure5.do, line 24
graph export "Results/Figure5_A.tif", replace
Figure5_B.tif Figure5.do:37
ReplicationPackage/Code/Figure5.do, line 37
graph export "Results/Figure5_B.tif", replace
Figure6_A.tif Figure6.do:21
ReplicationPackage/Code/Figure6.do, line 21
graph export "Results/Figure6_A.tif", replace
Figure6_B.tif Figure6.do:28
ReplicationPackage/Code/Figure6.do, line 28
graph export "Results/Figure6_B.tif", replace
FigureA1_B.eps FigureA1.do:48
ReplicationPackage/Code/FigureA1.do, line 48
graph export "Results/FigureA1_B.eps", replace
FigureA1_A.eps FigureA1.do:77
ReplicationPackage/Code/FigureA1.do, line 77
graph export "Results/FigureA1_A.eps", replace
FigureA2_1_`dgp'.eps FigureA2.do:138
ReplicationPackage/Code/FigureA2.do, line 138
graph export "Results/FigureA2_1_`dgp'.eps", replace
FigureA2_2_`dgp'.eps FigureA2.do:144
ReplicationPackage/Code/FigureA2.do, line 144
graph export "Results/FigureA2_2_`dgp'.eps", replace
FigureA2_3.eps FigureA2.do:149
ReplicationPackage/Code/FigureA2.do, line 149
graph export "Results/FigureA2_3.eps", replace
FigureA2_4.eps FigureA2.do:152
ReplicationPackage/Code/FigureA2.do, line 152
graph export "Results/FigureA2_4.eps", replace
FigureA2_5.eps FigureA2.do:157
ReplicationPackage/Code/FigureA2.do, line 157
graph export "Results/FigureA2_5.eps", replace
FigureA2_6.eps FigureA2.do:183
ReplicationPackage/Code/FigureA2.do, line 183
graph export "Results/FigureA2_6.eps", replace
7 · Figures: how each is drawn — 19 figures in the code (command, layers, options, the file it is saved to)
line 11 · event-study plot 8
| command | layers | variables | options | saved as | where |
|---|---|---|---|---|---|
twowayline
|
connected + connected |
y k
x t
|
xtitle Calendar time t · ytitle Outcome Y · xline 2, 4 · yline 0 · legend label(1 Treated at t=2) label(2 Treated at t=4) region(lstyle(none)) |
Figure 1Figure1.eps |
Figure1.do:15ReplicationPackage/Code/Figure1.do, line 15
twoway (scatter k t if Ei==2, connect(line) lwidth(thick) lpattern(solid) msymbol(O)) ///
(scatter k t if Ei==4, connect(line) lwidth(thick) lpattern(dash) msymbol(S)), ///
yline(0, lcolor(gs8) lwidth(medthin)) y … |
twowayevent-study plot
|
connected + rarea + connected + rarea |
y ols8wp_c1, bjs_c1
x hh
band ols8wp_c1_lo, ols8wp_c1_hi, bjs_c1_lo, bjs_c1_hi
|
xtitle Week since receipt · ytitle MPX, $ · xline 0 · yline 0 · ci rarea · legend order(1 Conventional 3 Imputation) rows(1) region(style(none)) |
Figure 2Figure2_A.tif |
Figure2.do:4ReplicationPackage/Code/Figure2.do, line 4
twoway (scatter ols8wp_c1 hh if !mi(ols8wp_c1), connect(l) color(maroon) msymbol(S)) (rarea ols8wp_c1_lo ols8wp_c1_hi hh if !mi(ols8wp_c1), color(maroon%30)) ///
(scatter bjs_c1 hh if !mi(bjs_c1) & hh<8, connect(l) c … |
twowayevent-study plot
|
connected + rarea + connected + rarea |
y ols8wp_c4, bjs_c4
x hh
band ols8wp_c4_lo, ols8wp_c4_hi, bjs_c4_lo, bjs_c4_hi
|
xtitle Week since receipt · ytitle MPX, $ · xline 0 · yline 0 · ci rarea · legend order(1 Conventional 3 Imputation) rows(1) region(style(none)) |
Figure 2Figure2_B.tif |
Figure2.do:11ReplicationPackage/Code/Figure2.do, line 11
twoway (scatter ols8wp_c4 hh if !mi(ols8wp_c4), connect(l) color(maroon) msymbol(S)) (rarea ols8wp_c4_lo ols8wp_c4_hi hh if !mi(ols8wp_c4), color(maroon%30)) ///
(scatter bjs_c4 hh if !mi(bjs_c4) & hh<8, connect(l) c … |
twowayline
|
connected |
y w_c1_q, w_c4_q, ideal_q
x K
|
xtitle Weeks since receipt · ytitle Weight of the binned OLS estimator · xline 3.5, 7.5 · yline 0 · legend order(- Disbursement method FEs: 1 No 2 Yes) rows(1) region(style(none)) |
Figure 3Figure3.eps |
Figure3.do:43ReplicationPackage/Code/Figure3.do, line 43
twoway connected w_c1_q w_c4_q ideal_q K if K<=11, color(forest_green dkorange black) yline(0, lcolor(gs10)) xtitle(Weeks since receipt) lpattern(solid solid dash) msymbol(O S i) ///
ytitle(Weight of the binned OLS e … |
twowayevent-study plot
|
connected + rcap + connected + rcap |
y t4c1_m, t4c4_m
x mm_left, mm_right
band t4c1_m_lo, t4c1_m_hi, t4c4_m_lo, t4c4_m_hi
|
xtitle Month since receipt · ytitle MPX, $ · yline 0 · ci rcap · legend order(- Disbursement method FEs: 1 No 3 Yes) rows(1) region(style(none)) |
Figure 4Figure4_A.eps |
Figure4.do:4ReplicationPackage/Code/Figure4.do, line 4
twoway (scatter t4c1_m mm_left if !mi(t4c1_m) & mm>=0, connect(l) color(forest_green)) (rcap t4c1_m_lo t4c1_m_hi mm_left if !mi(t4c1_m) & mm>=0, color(forest_green)) ///
(scatter t4c4_m mm_right if !mi(t4c4_m) & mm>= … |
twowayevent-study plot
|
connected + rcap + connected + rcap |
y t3c1, t3c4
x hh_left, hh_right
band t3c1_lo, t3c1_hi, t3c4_lo, t3c4_hi
|
xtitle Week since receipt · ytitle MPX, $ · yline 0 · ci rcap · legend order(- Disbursement method FEs: 1 No 3 Yes) rows(1) region(style(none)) |
Figure 4Figure4_B.eps |
Figure4.do:11ReplicationPackage/Code/Figure4.do, line 11
twoway (scatter t3c1 hh_left if !mi(t3c1) & hh>=0 & hh<=34, connect(l) color(forest_green)) (rcap t3c1_lo t3c1_hi hh_left if !mi(t3c1) & hh>=0 & hh<=34, color(forest_green)) ///
(scatter t3c4 hh_right if !mi(t3c4) & … |
twowayevent-study plot
|
connected + rcap + connected + rcap |
y bjs_c1, bjs_c4
x hh_left, hh_right
band bjs_c1_lo, bjs_c1_hi, bjs_c4_lo, bjs_c4_hi
|
xtitle Week since receipt · ytitle MPX, $ · yline 0 · ci rcap · legend order(- Disbursement method FEs: 1 No 3 Yes) rows(1) region(style(none)) |
Figure 4Figure4_C.eps |
Figure4.do:18ReplicationPackage/Code/Figure4.do, line 18
twoway (scatter bjs_c1 hh_left if !mi(bjs_c1) & hh>=0 & hh<=11, connect(l) color(forest_green)) (rcap bjs_c1_lo bjs_c1_hi hh_left if !mi(bjs_c1) & hh>=0 & hh<=11, color(forest_green)) ///
(scatter bjs_c4 hh_right if … |
event_plotevent-study plot
|
event_plot |
estimates drop12_col1, drop34_col1
|
xtitle Weeks since receipt · ytitle MPX, $ · ci event_plot default · legend order(1 Dropping leads -1 and -2 3 Dropping leads -3 and -4) region(style(none)) |
Figure 5Figure5_A.tif |
Figure5.do:20ReplicationPackage/Code/Figure5.do, line 20
event_plot drop12_col1 drop34_col1, stub_lag(post_#) stub_lead(pre_#) default_look together plottype(line) perturb(0) ///
lag_opt(lwidth(medthick)) lag_opt1(color(forest_green)) lag_opt2(color(dkorange) lpattern(dash … |
event_plotevent-study plot
|
event_plot |
estimates drop12_col4, drop34_col4
|
xtitle Weeks since receipt · ytitle MPX, $ · ci event_plot default · legend order(1 Dropping leads -1 and -2 3 Dropping leads -3 and -4) region(style(none)) |
Figure 5Figure5_B.tif |
Figure5.do:33ReplicationPackage/Code/Figure5.do, line 33
event_plot drop12_col4 drop34_col4, stub_lag(post_#) stub_lead(pre_#) default_look together plottype(line) perturb(0) ///
lag_opt(lwidth(medthick)) lag_opt1(color(forest_green)) lag_opt2(color(dkorange) lpattern(dash … |
twowayevent-study plot
|
connected + rarea + connected + rarea + connected + rarea |
y sa_b, cs_b, bjs_b
x hh
band sa_lo, sa_hi, cs_lo, cs_hi, +2 more
|
xtitle Week since receipt · ytitle MPX, $ · yline 0 · ci rarea · legend order(5 Imputation 3 dCDH 1 SA) rows(1) region(style(none)) |
Figure 6Figure6_A.tif |
Figure6.do:16ReplicationPackage/Code/Figure6.do, line 16
twoway (scatter sa_b hh if !mi(sa_b) & hh<12, connect(l) color(forest_green) msymbol(D)) (rarea sa_lo sa_hi hh if !mi(sa_b) & hh<12, color(forest_green%20)) ///
(scatter cs_b hh if !mi(cs_b) & hh<12, connect(l) color … |
twowayline
|
connected + connected |
y rel_sa_se, rel_cs_se
x hh
|
xtitle Week since receipt · ytitle SE, Relative to Imputation · legend order(2 dCDH 1 SA) rows(1) region(style(none)) |
Figure 6Figure6_B.tif |
Figure6.do:24ReplicationPackage/Code/Figure6.do, line 24
twoway (scatter rel_sa_se hh if !mi(rel_sa_se) & hh<12, connect(l) color(forest_green) msymbol(D)) ///
(scatter rel_cs_se hh if !mi(rel_cs_se) & hh<12, connect(l) color(maroon) msymbol(S)), ///
legend(order(2 "dC … |
twowayline
|
connected |
y w_notrim_semi_own*
x Ei
|
xtitle Cohort (Ei) · ytitle Weight on cohort · legend order(1 tau{subscript:0} 2 tau{subscript:1} 3 tau{subscript:2} 4 tau{subscript:3}) rows(1) region(style(none)) |
Figure A1FigureA1_B.eps |
FigureA1.do:45ReplicationPackage/Code/FigureA1.do, line 45
twoway connected w_notrim_semi_own* Ei if K==0, ytitle("Weight on cohort") xtitle("Cohort (Ei)") msymbol(O S Oh Sh) ///
legend(order(1 "tau{subscript:0}" 2 "tau{subscript:1}" 3 "tau{subscript:2}" 4 "tau{subscript:3}" … |
twowayline
|
connected |
y w_semi_own*
x Ei
|
xtitle Cohort (Ei) · ytitle Weight on cohort · legend order(1 tau{subscript:0} 2 tau{subscript:1} 3 tau{subscript:2} 4 tau{subscript:3}) rows(1) region(style(none)) |
Figure A1FigureA1_A.eps |
FigureA1.do:74ReplicationPackage/Code/FigureA1.do, line 74
twoway connected w_semi_own* Ei if K==0, ytitle("Weight on cohort") xtitle("Cohort (Ei)") msymbol(O S Oh Sh) ///
legend(order(1 "tau{subscript:0}" 2 "tau{subscript:1}" 3 "tau{subscript:2}" 4 "tau{subscript:3}") rows( … |
scatterline
|
connected |
y bjs, dcdh, sa, semi, fully
x h
|
ytitle Standard deviation, $ · legend cols(3) region(style(none)) |
Figure A2FigureA2_1_`dgp'.eps (set at run time) |
FigureA2.do:137ReplicationPackage/Code/FigureA2.do, line 137
scatter bjs dcdh sa semi fully h if stat=="`dgp'", connect(l l l l l) legend(cols(3) region(style(none))) graphregion(color(white)) bgcolor(white) `ylabel' msymbol(O S D Oh Sh) xlabel(0(4)8 11) |
scatterline
|
connected |
y bjs_rel, dcdh_rel, sa_rel, semi_rel, fully_rel
x h
|
ytitle Relative standard deviation · legend cols(3) region(style(none)) |
Figure A2FigureA2_2_`dgp'.eps (set at run time) |
FigureA2.do:142ReplicationPackage/Code/FigureA2.do, line 142
scatter bjs_rel dcdh_rel sa_rel semi_rel fully_rel h if stat=="`dgp'", connect(l l l l l) legend(cols(3) region(style(none))) ///
graphregion(color(white)) bgcolor(white) ylabel(0(1)5, gmin gmax) xlabel(0(4)8 11) msy … |
scatterline
|
connected |
y bjs, semi, fully
x h
|
ytitle Bias, $ · legend cols(3) region(style(none)) |
Figure A2FigureA2_3.eps |
FigureA2.do:147ReplicationPackage/Code/FigureA2.do, line 147
scatter bjs semi fully h if stat=="bias", connect(l l l) legend(cols(3) region(style(none))) graphregion(color(white)) bgcolor(white) ///
msymbol(O Oh Sh) color(navy dkorange teal) xlabel(0(4)8 11) ytitle("Bias, $") |
scatterline
|
connected |
y bjs, semi, fully
x h
|
ytitle RMSE, $ · legend cols(3) region(style(none)) |
Figure A2FigureA2_4.eps |
FigureA2.do:151ReplicationPackage/Code/FigureA2.do, line 151
scatter bjs semi fully h if stat=="rmse_homo", connect(l l l) legend(cols(3) region(style(none))) graphregion(color(white)) bgcolor(white) ylabel(, gmin gmax) msymbol(O Oh Sh) color(navy dkorange teal) xlabel(0(4)8 11) … |
scatterline
|
connected |
y bjs, dcdh, sa, semi, fully
x h
|
ytitle Sensitivity, $ · legend cols(3) region(style(none)) |
Figure A2FigureA2_5.eps |
FigureA2.do:156ReplicationPackage/Code/FigureA2.do, line 156
scatter bjs dcdh sa semi fully h if stat=="`stat'", connect(l l l l l) legend(cols(3) region(style(none))) graphregion(color(white)) bgcolor(white) `ylabel' msymbol(O S D Oh Sh) xlabel(0(4)8 11) |
scatterline
|
connected |
y rejrate_*
x h
|
xtitle Horizon · ytitle Rejection rate · yline 0.05 · legend order(1 Homoskedastic 2 Heteroskedastic 3 AR(1) 4 Wild clustered) region(style(none)) |
Figure A2FigureA2_6.eps |
FigureA2.do:180ReplicationPackage/Code/FigureA2.do, line 180
scatter rejrate_* h, connect(l l l l) yline(0.05, lcolor(gray)) graphregion(color(white)) bgcolor(white) ///
ytitle("Rejection rate") xtitle(Horizon) ylabel(0(0.025)0.075, gmin gmax) xlabel(0(4)8 11) msymbol(O S Oh S … |