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 × t
2 · 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
CommandMethodFixed effects absorbedInferenceFile
csdid
csdid spending [iw=projection_factor], ivar(hhid) time(pperiod) gvar(gvar) notyet agg(event) wboot
did default Alt_estimators.do
eventstudyinteract
eventstudyinteract spending L*event F*event [aw=projection_factor], vce(cluster hhid) absorb(hhid pperiod) cohort(Ei_mi) control_cohort(lastcohort)
didhhid, pperiod cluster by hhid Alt_estimators.do
reghdfe
reghdfe o_lirebate`j' pirebate1 lirebate* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) resid(w_c1_m`j')
panel fehhid, pperiod cluster by hhid Figure3.do
reghdfe
reghdfe o_lirebate`j' pirebate1 lirebate* [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) resid(w_c4_m`j')
panel fehhid, pperiod#qn8 cluster by hhid Figure3.do
reghdfe
reghdfe spending o.pre_1 o.pre_2 pre_3-pre_29 post_* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod)
panel fehhid, pperiod cluster by hhid Figure5.do
reghdfe
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)
panel fehhid, pperiod#qn8 cluster by hhid Figure5.do
reghdfe
reghdfe D, a(i t) resid(w_notrim_OLS) keepsing verbose(-1)
panel fei, t default FigureA1.do
did_imputation
did_imputation spending hhid pperiod Ei if pperiod<830 [aw=projection_factor], horizons(0/11) saveweights minn(1) saveestimates(tau_individual) saveresid(resid)
did default MC_Analytical.do
reghdfe
reghdfe spending if D==0 [aw=projection_factor], a(unitfe=hhid pperiod)
panel feunitfe=hhid, pperiod default MC_Analytical.do
reghdfe
reghdfe current lirebate* [weight=projection_factor], cluster(hhid) a(hhid pperiod) resid(v_semi`h')
panel fehhid, pperiod cluster by hhid MC_Analytical.do
reghdfe
reghdfe current lirebate* pirebate* [weight=projection_factor], a(hhid pperiod) resid(v_fully`h')
panel fehhid, pperiod default MC_Analytical.do
did_imputation
did_imputation spending hhid pperiod Ei if pperiod<830 [aw=projection_factor], horizons(0/11) saveweights minn(1) saveestimates(tau_individual) saveresid(resid)
did default MC_coverage.do
reghdfe
reghdfe spending if D==0 [aw=projection_factor], a(unitfe=hhid pperiod)
panel feunitfe=hhid, pperiod default MC_coverage.do
did_imputation
did_imputation spending hhid pperiod Ei if pperiod<830 [aw=projection_factor], horizons(0/11) saveweights minn(1) saveestimates(tau_individual) saveresid(resid)
did default MC_fewer_preperiods.do
reghdfe
reghdfe spending pirebate1 lirebate* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod)
panel fehhid, pperiod cluster by hhid Run_OLS_BJS.do
did_imputation
did_imputation spending hhid pperiod Ei [aw=projection_factor] if sample2 & sample, autosample horizons(0/12) pretrend(8)
did default Run_OLS_BJS.do
reghdfe
reghdfe spending pirebate1 lirebate* [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8)
panel fehhid, pperiod#qn8 cluster by hhid Run_OLS_BJS.do
did_imputation
did_imputation spending hhid pperiod Ei [aw=projection_factor] if sample2 & sample, autosample horizons(0/11) fe(hhid pperiod) saveweights saveresid(bjs_c1_eps)
did default TableA1.do
reghdfe
reghdfe spending `t4c1_rhs' [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) resid(t4c1_eps)
panel fehhid, pperiod cluster by hhid TableA1.do
reghdfe
reghdfe spending `t4c4_rhs' [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8) resid(t4c4_eps)
panel fehhid, pperiod#qn8 cluster by hhid TableA1.do
reg
reg totrepspend amount ;
ols default ESP2008Prog1c_replication.do
reghdfe
eststo : reghdfe spending pirebate* irebate lirebate* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod)
panel fehhid, pperiod cluster by hhid replicate_bp_t3.do
reghdfe
eststo : reghdfe spending pirebate* irebate lirebate* [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8)
panel fehhid, pperiod#qn8 cluster by hhid replicate_bp_t3.do
reghdfe
eststo : reghdfe spending4 pirebate* irebate lirebate* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod)
panel fehhid, pperiod cluster by hhid replicate_bp_t4.do
reghdfe
eststo : reghdfe spending4 pirebate* irebate lirebate* [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8)
panel fehhid, 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.tif
How 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.dta Stata
    convert_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", clear
  • data/tax rebates/online_wave_2_part_1&2.dta Stata
    convert_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", clear
  • data/tax rebates/online_wave_2_part_2.dta Stata
    convert_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", clear
  • data/tax rebates/online_wave_3_part_1&2 Stata
    convert_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", clear
  • data/tax rebates/online_wave_3_part_2 Stata
    convert_ESP_files.do:103
    ReplicationPackage/Code/bp_data_construction/convert_ESP_files.do, line 103 use "data/tax rebates/online_wave_3_part_2", clear
  • data/tax rebates/paper_wave_1_part_1&2 Stata
    convert_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", clear
  • data/tax rebates/paper_wave_2_part_1 Stata
    convert_ESP_files.do:175
    ReplicationPackage/Code/bp_data_construction/convert_ESP_files.do, line 175 use "data/tax rebates/paper_wave_2_part_1", clear
  • data/tax rebates/paper_wave_2_part_1&2 Stata
    convert_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.tsv TSV
    kiltsload1a.do:12
    ReplicationPackage/Code/bp_data_construction/kiltsload1a.do, line 12 insheet using Rawdata/NCP/panelists_2008.tsv, tab clear
  • Rawdata/NCP/panelists_2009.tsv TSV
    kiltsload1a.do:17
    ReplicationPackage/Code/bp_data_construction/kiltsload1a.do, line 17 insheet using Rawdata/NCP/panelists_2009.tsv, tab clear
  • Rawdata/NCP/panelists_2010.tsv TSV
    kiltsload1a.do:22
    ReplicationPackage/Code/bp_data_construction/kiltsload1a.do, line 22 insheet using Rawdata/NCP/panelists_2010.tsv, tab clear
  • Rawdata/NCP/products.tsv TSV
    kiltsload1a.do:45
    ReplicationPackage/Code/bp_data_construction/kiltsload1a.do, line 45 insheet using Rawdata/NCP/products.tsv, tab clear
  • Rawdata/NCP/products_extra_2008.tsv TSV
    kiltsload1a.do:37
    ReplicationPackage/Code/bp_data_construction/kiltsload1a.do, line 37 insheet using Rawdata/NCP/products_extra_2008.tsv, tab clear
  • Rawdata/NCP/purchases_2008.tsv TSV
    kiltsload1a.do:33
    ReplicationPackage/Code/bp_data_construction/kiltsload1a.do, line 33 insheet using Rawdata/NCP/purchases_2008.tsv, tab clear
  • Rawdata/NCP/retailers.tsv TSV
    kiltsload1a.do:41
    ReplicationPackage/Code/bp_data_construction/kiltsload1a.do, line 41 insheet using Rawdata/NCP/retailers.tsv, tab clear
  • Rawdata/NCP/trips_2008.tsv TSV
    kiltsload1a.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).

ReplicationPackage/Code/bp_data_construction/convert_ESP_files.do → ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do: n280532_taxrebate_may08_wv1_fnldat.csv, n280534_taxrebate_may08_wv1_fnldat.csv, n280556_taxrebate_may08_wv1_part1&2_fnldat.csv, n280560_taxrebate_may08_wv2_part2_fnldat.csv, n280599_taxrebate_may08_wv1_fnldat.csv, n280683_taxrebate_may08_wv2_part1&2_fnldat.csv, n280756_taxrebate_may08_wv3_fnldat.csv, n280757_taxrebate_may08_wv3_fnldat.csvReplicationPackage/Code/bp_data_construction/kiltsload1a.do → ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do: panel08, panel09, panel10, retailers, trips08ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do → ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do: ESP2008Prog1cReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do → ReplicationPackage/Code/bp_data_construction/HHFTables1b_replication.do: ESP2008Prog3dbigReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do → ReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do: ESP2008Prog3dReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do → ReplicationPackage/Code/bp_data_construction/replicate_bp_t3.do: regs1cReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do → ReplicationPackage/Code/bp_data_construction/replicate_bp_t4.do: regs1cReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do → ReplicationPackage/Code/Alt_estimators.do: regs1cReplicationPackage/Code/Run_OLS_BJS.do → ReplicationPackage/Code/Figure2.do: t3_t4_bjs_estimatesReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do → ReplicationPackage/Code/Figure3.do: regs1cReplicationPackage/Code/Run_OLS_BJS.do → ReplicationPackage/Code/Figure3.do: t3_t4_bjs_estimatesReplicationPackage/Code/Run_OLS_BJS.do → ReplicationPackage/Code/Figure4.do: t3_t4_bjs_estimatesReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do → ReplicationPackage/Code/Figure5.do: regs1cReplicationPackage/Code/Run_OLS_BJS.do → ReplicationPackage/Code/Figure6.do: t3_t4_bjs_estimatesReplicationPackage/Code/Alt_estimators.do → ReplicationPackage/Code/Figure6.do: estimates_cs, estimates_saReplicationPackage/Code/MC_Analytical.do → ReplicationPackage/Code/FigureA2.do: mc_mainReplicationPackage/Code/MC_fewer_preperiods.do → ReplicationPackage/Code/FigureA2.do: mc_fewer_preperiodsReplicationPackage/Code/MC_coverage.do → ReplicationPackage/Code/FigureA2.do: mc_coverage_bjs_`dgp'.dtaReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do → ReplicationPackage/Code/MC_Analytical.do: regs1cReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do → ReplicationPackage/Code/MC_coverage.do: Regs1cReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do → ReplicationPackage/Code/MC_fewer_preperiods.do: regs1cReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do → ReplicationPackage/Code/Run_OLS_BJS.do: regs1cReplicationPackage/Code/Run_OLS_BJS.do → ReplicationPackage/Code/Table2.do: t3_t4_bjs_estimatesReplicationPackage/Code/Run_OLS_BJS.do → ReplicationPackage/Code/Table3.do: t3_t4_bjs_estimatesReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do → ReplicationPackage/Code/Table3.do: regs1cReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do → ReplicationPackage/Code/TableA1.do: regs1cReplicationPackage/Code/Run_OLS_BJS.do → ReplicationPackage/Code/TableA1.do: t3_t4_bjs_estimates ReplicationPackage/Code/Master.do 1. Master.do ReplicationPackage/Code/bp_data_construction/import_ESP.do 2. import_ESP.do ReplicationPackage/Code/bp_data_construction/convert_ESP_files.do · reads 8 input files 3. convert_ESP_files.do ReplicationPackage/Code/bp_data_construction/kiltsload1a.do · reads 8 input files 4. kiltsload1a.do ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do · 1 estimation 5. ESP2008Prog1c_replication.do 1 est.ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do 6. ESP2008Prog3d_replication.do ReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do 7. Regs1c_preparedata.do ReplicationPackage/Code/bp_data_construction/HHFTables1b_replication.do 8. HHFTables1b_replication.do ReplicationPackage/Code/bp_data_construction/replicate_bp_t3.do · 6 estimations 9. replicate_bp_t3.do 6 est.ReplicationPackage/Code/bp_data_construction/replicate_bp_t4.do · 6 estimations 10. replicate_bp_t4.do 6 est.ReplicationPackage/Code/Run_OLS_BJS.do · 8 estimations 11. Run_OLS_BJS.do 8 est.ReplicationPackage/Code/Alt_estimators.do · 2 estimations 12. Alt_estimators.do 2 est.ReplicationPackage/Code/MC_Analytical.do · 5 estimations 13. MC_Analytical.do 5 est.ReplicationPackage/Code/MC_fewer_preperiods.do · 1 estimation 14. MC_fewer_preperiods.do 1 est.ReplicationPackage/Code/MC_coverage.do · 3 estimations 15. MC_coverage.do 3 est.ReplicationPackage/Code/Figure1.do 16. Figure1.do ReplicationPackage/Code/Figure2.do 17. Figure2.do ReplicationPackage/Code/Figure3.do · 2 estimations 18. Figure3.do 2 est.ReplicationPackage/Code/Figure4.do 19. Figure4.do ReplicationPackage/Code/Figure5.do · 4 estimations 20. Figure5.do 4 est.ReplicationPackage/Code/Figure6.do 21. Figure6.do ReplicationPackage/Code/FigureA1.do · 4 estimations 22. FigureA1.do 4 est.ReplicationPackage/Code/FigureA2.do 23. FigureA2.do ReplicationPackage/Code/Table2.do 24. Table2.do ReplicationPackage/Code/Table3.do 25. Table3.do ReplicationPackage/Code/TableA1.do · 10 estimations 26. TableA1.do 10 est.
  1. 1.ReplicationPackage/Code/Master.do master script
  2. 2.ReplicationPackage/Code/bp_data_construction/import_ESP.do run by ReplicationPackage/Code/Master.do line 29
  3. 3.ReplicationPackage/Code/bp_data_construction/convert_ESP_files.do run by ReplicationPackage/Code/Master.do line 31 reads 8 input files ·
    writes n280532_taxrebate_may08_wv1_fnldat.csv → read by ESP2008Prog1c_replication.do
    writes n280534_taxrebate_may08_wv1_fnldat.csv → read by ESP2008Prog1c_replication.do
    writes n280556_taxrebate_may08_wv1_part1&2_fnldat.csv → read by ESP2008Prog1c_replication.do
    writes n280560_taxrebate_may08_wv2_part2_fnldat.csv → read by ESP2008Prog1c_replication.do
    writes n280599_taxrebate_may08_wv1_fnldat.csv → read by ESP2008Prog1c_replication.do
    writes n280683_taxrebate_may08_wv2_part1&2_fnldat.csv → read by ESP2008Prog1c_replication.do
    writes n280756_taxrebate_may08_wv3_fnldat.csv → read by ESP2008Prog1c_replication.do
    writes n280757_taxrebate_may08_wv3_fnldat.csv → read by ESP2008Prog1c_replication.do
  4. 4.ReplicationPackage/Code/bp_data_construction/kiltsload1a.do run by ReplicationPackage/Code/Master.do line 33 reads 8 input files ·
    writes panel08 → read by ESP2008Prog3d_replication.do
    writes panel09 → read by ESP2008Prog3d_replication.do
    writes panel10 → read by ESP2008Prog3d_replication.do
    writes retailers → read by ESP2008Prog3d_replication.do
    writes trips08 → read by ESP2008Prog3d_replication.do
    writes (not read again): products, products08, purchases08
  5. 5.ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do run by ReplicationPackage/Code/Master.do line 35 9 merges · 1 estimation
    reads what convert_ESP_files.do wrote
    writes ESP2008Prog1c → read by ESP2008Prog3d_replication.do
    writes (not read again): valid_response_households1c.csv
  6. 6.ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do run by ReplicationPackage/Code/Master.do line 37 6 merges ·
    reads what kiltsload1a.do, ESP2008Prog1c_replication.do wrote
    writes ESP2008Prog3d → read by Regs1c_preparedata.do
    writes ESP2008Prog3dbig → read by HHFTables1b_replication.do
    writes (not read again): temppanel, temptrips
  7. 7.ReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do run by ReplicationPackage/Code/Master.do line 39
    reads what ESP2008Prog3d_replication.do wrote
    writes Regs1c → read by MC_coverage.do
    writes regs1c → read by replicate_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. 8.ReplicationPackage/Code/bp_data_construction/HHFTables1b_replication.do run by ReplicationPackage/Code/Master.do line 41
    reads what ESP2008Prog3d_replication.do wrote
  9. 9.ReplicationPackage/Code/bp_data_construction/replicate_bp_t3.do run by ReplicationPackage/Code/Master.do line 45 6 estimations
    reads what Regs1c_preparedata.do wrote
  10. 10.ReplicationPackage/Code/bp_data_construction/replicate_bp_t4.do run by ReplicationPackage/Code/Master.do line 47 6 estimations
    reads what Regs1c_preparedata.do wrote
  11. 11.ReplicationPackage/Code/Run_OLS_BJS.do run by ReplicationPackage/Code/Master.do line 65 8 estimations
    reads what Regs1c_preparedata.do wrote
    writes t3_t4_bjs_estimates → read by Figure2.do, Figure3.do, Figure4.do, Figure6.do, Table2.do, Table3.do, TableA1.do
  12. 12.ReplicationPackage/Code/Alt_estimators.do run by ReplicationPackage/Code/Master.do line 67 2 estimations
    reads what Regs1c_preparedata.do wrote
    writes estimates_cs → read by Figure6.do
    writes estimates_sa → read by Figure6.do
  13. 13.ReplicationPackage/Code/MC_Analytical.do run by ReplicationPackage/Code/Master.do line 69 5 estimations
    reads what Regs1c_preparedata.do wrote
    writes mc_main → read by FigureA2.do
  14. 14.ReplicationPackage/Code/MC_fewer_preperiods.do run by ReplicationPackage/Code/Master.do line 71 1 estimation
    reads what Regs1c_preparedata.do wrote
    writes mc_fewer_preperiods → read by FigureA2.do
  15. 15.ReplicationPackage/Code/MC_coverage.do run by ReplicationPackage/Code/Master.do line 76 3 estimations
    reads what Regs1c_preparedata.do wrote
    writes mc_coverage_bjs_`dgp'.dta → read by FigureA2.do
  16. 16.ReplicationPackage/Code/Figure1.do run by ReplicationPackage/Code/Master.do line 87
  17. 17.ReplicationPackage/Code/Figure2.do run by ReplicationPackage/Code/Master.do line 89
    reads what Run_OLS_BJS.do wrote
  18. 18.ReplicationPackage/Code/Figure3.do run by ReplicationPackage/Code/Master.do line 91 1 merge · 2 estimations
    reads what Regs1c_preparedata.do, Run_OLS_BJS.do wrote
    writes (not read again): Misc_results.xlsx
  19. 19.ReplicationPackage/Code/Figure4.do run by ReplicationPackage/Code/Master.do line 93
    reads what Run_OLS_BJS.do wrote
  20. 20.ReplicationPackage/Code/Figure5.do run by ReplicationPackage/Code/Master.do line 95 4 estimations
    reads what Regs1c_preparedata.do wrote
  21. 21.ReplicationPackage/Code/Figure6.do run by ReplicationPackage/Code/Master.do line 97 2 merges ·
    reads what Run_OLS_BJS.do, Alt_estimators.do wrote
  22. 22.ReplicationPackage/Code/FigureA1.do run by ReplicationPackage/Code/Master.do line 99 4 estimations
  23. 23.ReplicationPackage/Code/FigureA2.do run by ReplicationPackage/Code/Master.do line 101 3 merges ·
    reads what MC_Analytical.do, MC_fewer_preperiods.do, MC_coverage.do wrote
    writes (not read again): `t`dgp'', mc_report_long.xls
  24. 24.ReplicationPackage/Code/Table2.do run by ReplicationPackage/Code/Master.do line 105
    reads what Run_OLS_BJS.do wrote
    writes (not read again): Table2.xlsx
  25. 25.ReplicationPackage/Code/Table3.do run by ReplicationPackage/Code/Master.do line 107
    reads what Regs1c_preparedata.do, Run_OLS_BJS.do wrote
    writes (not read again): T3_calculation_BJS.xlsx, Table3.xlsx
1 more scripts
  1. 26.ReplicationPackage/Code/TableA1.do run by ReplicationPackage/Code/Master.do line 109 1 merge · 10 estimations
    reads what Regs1c_preparedata.do, Run_OLS_BJS.do wrote
    writes (not read again): TableA1.xlsx

3 · Merges — 22 joins, 14 followed by a check of the merge result

JoinsHowOn keysCheck that followsWhere
onlinew1p12 ← onlinew2p2 merge 1:1 householdid tab _merge
ESP2008Prog1c_replication.do:288
ReplicationPackage/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:300
ReplicationPackage/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:305
ReplicationPackage/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:315
ReplicationPackage/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:411
ReplicationPackage/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:423
ReplicationPackage/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:457
ReplicationPackage/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:467
ReplicationPackage/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:483
ReplicationPackage/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:37
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 37 merge hhid using Data/temp ;
panel08 ← temp merge hhid none
ESP2008Prog3d_replication.do:50
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 50 merge hhid using Data/temp ;
trips08 ← retailers merge retailer_code tab _merge ;
ESP2008Prog3d_replication.do:73
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 73 merge retailer_code using Data/retailers ;

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<830
    Alt_estimators.do:11
    ReplicationPackage/Code/Alt_estimators.do, line 11 keep if pperiod<830 // 830 = max(Ei)
  • keep if pperiod>=816
    MC_fewer_preperiods.do:10
    ReplicationPackage/Code/MC_fewer_preperiods.do, line 10 keep if pperiod>=816
  • keep if K<=11
    MC_coverage.do:81
    ReplicationPackage/Code/MC_coverage.do, line 81 keep if K<=11
category values ×1
  • drop if householdid==02101507
    ESP2008Prog1c_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==1
    Regs1c_preparedata.do:115
    ReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do, line 115 drop if flagmonthmissing==1 | flagdaymissing==1 ;
  • drop if flagesp2aftersubmit==1 | flagp2esp2beforep1submit==1
    Regs1c_preparedata.do:117
    ReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do, line 117 drop if flagesp2aftersubmit==1 | flagp2esp2beforep1submit==1 ;
  • drop if flagmonthmissing==1 | flagdaymissing==1
    HHFTables1b_replication.do:48
    ReplicationPackage/Code/bp_data_construction/HHFTables1b_replication.do, line 48 drop if flagmonthmissing==1 | flagdaymissing==1 ;
  • drop if flagesp2aftersubmit==1 | flagp2esp2beforep1submit==1
    HHFTables1b_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 & sample
    Alt_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 & sample
    MC_Analytical.do:8
    ReplicationPackage/Code/MC_Analytical.do, line 8 keep if sample2 & sample
  • keep if sample2 & sample
    MC_fewer_preperiods.do:8
    ReplicationPackage/Code/MC_fewer_preperiods.do, line 8 keep if sample2 & sample
  • keep if sample2 & sample
    MC_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==3
    ESP2008Prog1c_replication.do:414
    ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do, line 414 keep if _merge==3
  • drop if _merge==2
    ESP2008Prog3d_replication.do:39
    ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 39 drop if _merge==2 ;
  • drop if _merge==2
    ESP2008Prog3d_replication.do:55
    ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 55 drop if _merge==2 ;
  • drop if _merge==2
    ESP2008Prog3d_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==2
    ESP2008Prog3d_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 → 0
    ESP2008Prog3d_replication.do:199
    ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 199 replace total_spent = 0 if total_spent==. ;
  • channelnum → 0
    ESP2008Prog3d_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

VariableUsed in models asBuilt by
spending outcome in 27
spending = sum(total_spent) (egen sum)
ESP2008Prog3d_replication.do:203
ReplicationPackage/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:4
ReplicationPackage/Code/bp_data_construction/replicate_bp_t3.do, line 4 gen pctspend100 = 100*pctspend
pctspend100 = 100*pctspend (gen)
replicate_bp_t4.do:5
ReplicationPackage/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:139
ReplicationPackage/Code/MC_Analytical.do, line 139 rename lirebate`h' current
current = lirebate`h' (rename)
MC_Analytical.do:150
ReplicationPackage/Code/MC_Analytical.do, line 150 rename lirebate`h' current
current = m_lirebate`m' (rename)
MC_Analytical.do:166
ReplicationPackage/Code/MC_Analytical.do, line 166 rename m_lirebate`m' current
D outcome in 2
D = K>=0 (gen)
Run_OLS_BJS.do:4
ReplicationPackage/Code/Run_OLS_BJS.do, line 4 gen D = K>=0
D = pperiod>=Ei (gen)
Alt_estimators.do:8
ReplicationPackage/Code/Alt_estimators.do, line 8 gen D = pperiod>=Ei
D = pperiod>=Ei (gen)
MC_Analytical.do:6
ReplicationPackage/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:3
ReplicationPackage/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:3
ReplicationPackage/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:2
ReplicationPackage/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:4
ReplicationPackage/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:68
ReplicationPackage/Code/MC_coverage.do, line 68 gen eps = $sd_resid * rnormal()
eps = resid * sign (gen)
MC_coverage.do:74
ReplicationPackage/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:69
ReplicationPackage/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:794
ReplicationPackage/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:293
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 293 gen irebate = . ;
irebate = 0 (replace)
ESP2008Prog3d_replication.do:294
ReplicationPackage/Code/bp_data_construction/ESP2008Prog3d_replication.do, line 294 replace irebate= 0 if flagdaymissing==0 & flagmonthmissing==0 ;
irebate = 1 (replace)
ESP2008Prog3d_replication.do:295
ReplicationPackage/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:194
ReplicationPackage/Code/bp_data_construction/Regs1c_preparedata.do, line 194 gen byte pirebate`j' = . ;
pirebate1 = . (gen)
replicate_bp_t4.do:20
ReplicationPackage/Code/bp_data_construction/replicate_bp_t4.do, line 20 gen byte pirebate`j' = .
pirebate1 = o_pirebate1 (rename)
MC_Analytical.do:157
ReplicationPackage/Code/MC_Analytical.do, line 157 rename (o_pirebate1 o_pirebate5) (pirebate1 pirebate5)
+5 more statements set it

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
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
spending pirebate* irebate lirebate* hhid, pperiod cluster: hhid
replicate_bp_t3.do:32
ReplicationPackage/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
reghdfe
panel fe
pctspend100 pirebate* irebate lirebate* hhid, pperiod cluster: hhid
replicate_bp_t3.do:34
ReplicationPackage/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
reghdfe
panel fe
spending100 prebate* rebate lrebate* hhid, pperiod cluster: hhid
replicate_bp_t3.do:35
ReplicationPackage/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
reghdfe
panel fe
spending pirebate* irebate lirebate* hhid, pperiod#qn8 cluster: hhid
replicate_bp_t3.do:48
ReplicationPackage/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
reghdfe
panel fe
pctspend100 pirebate* irebate lirebate* hhid, pperiod#qn8 cluster: hhid
replicate_bp_t3.do:49
ReplicationPackage/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
reghdfe
panel fe
spending100 prebate* rebate lrebate* hhid, pperiod#qn8 cluster: hhid
replicate_bp_t3.do:50
ReplicationPackage/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
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
spending4 pirebate* irebate lirebate* hhid, pperiod cluster: hhid
replicate_bp_t4.do:59
ReplicationPackage/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
reghdfe
panel fe
pctspend100 pirebate* irebate lirebate* hhid, pperiod cluster: hhid
replicate_bp_t4.do:60
ReplicationPackage/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
reghdfe
panel fe
spending400 prebate* rebate lrebate* hhid, pperiod cluster: hhid
replicate_bp_t4.do:61
ReplicationPackage/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
reghdfe
panel fe
spending4 pirebate* irebate lirebate* hhid, pperiod#qn8 cluster: hhid
replicate_bp_t4.do:74
ReplicationPackage/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
reghdfe
panel fe
pctspend100 pirebate* irebate lirebate* hhid, pperiod#qn8 cluster: hhid
replicate_bp_t4.do:75
ReplicationPackage/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
reghdfe
panel fe
spending400 prebate* rebate lrebate* hhid, pperiod#qn8 cluster: hhid
replicate_bp_t4.do:76
ReplicationPackage/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
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reg
ols
totrepspend amount ; — default
ESP2008Prog1c_replication.do:806
ReplicationPackage/Code/bp_data_construction/ESP2008Prog1c_replication.do, line 806 reg totrepspend amount ;
reghdfe
panel fe
spending pirebate1 lirebate* hhid, pperiod cluster: hhid
Run_OLS_BJS.do:25
ReplicationPackage/Code/Run_OLS_BJS.do, line 25 reghdfe spending pirebate1 lirebate* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod)
reghdfe
panel fe
spending m_pirebate1 m_lirebate* hhid, pperiod cluster: hhid
Run_OLS_BJS.do:68
ReplicationPackage/Code/Run_OLS_BJS.do, line 68 reghdfe spending m_pirebate1 m_lirebate* [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod)
reghdfe
panel fe
spending pirebate* lirebate0 lirebate1-lirebate7 hhid, pperiod cluster: hhid
Run_OLS_BJS.do:107
ReplicationPackage/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_imputation
did
spending — default
Run_OLS_BJS.do:130
ReplicationPackage/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)
reghdfe
panel fe
spending pirebate1 lirebate* hhid, pperiod#qn8 cluster: hhid
Run_OLS_BJS.do:184
ReplicationPackage/Code/Run_OLS_BJS.do, line 184 reghdfe spending pirebate1 lirebate* [weight=projection_factor] if sample2 & sample & validmeans, cluster(hhid) a(hhid pperiod#qn8)
reghdfe
panel fe
spending m_pirebate1 m_lirebate* hhid, pperiod#qn8 cluster: hhid
Run_OLS_BJS.do:227
ReplicationPackage/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)
reghdfe
panel fe
spending pirebate* lirebate0 lirebate1-lirebate7 hhid, pperiod#qn8 cluster: hhid
Run_OLS_BJS.do:266
ReplicationPackage/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_imputation
did
spending — default
Run_OLS_BJS.do:289
ReplicationPackage/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)
csdid
did
spending — default
Alt_estimators.do:19
ReplicationPackage/Code/Alt_estimators.do, line 19 csdid spending [iw=projection_factor], ivar(hhid) time(pperiod) gvar(gvar) notyet agg(event) wboot
eventstudyinteract
did
spending L*event F*event hhid, pperiod cluster: hhid
Alt_estimators.do:43
ReplicationPackage/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_imputation
did
spending — default
MC_Analytical.do:18
ReplicationPackage/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)
reghdfe
panel fe
spending unitfe=hhid, pperiod default
MC_Analytical.do:56
ReplicationPackage/Code/MC_Analytical.do, line 56 reghdfe spending if D==0 [aw=projection_factor], a(unitfe=hhid pperiod)
reghdfe
panel fe
current lirebate* hhid, pperiod cluster: hhid
MC_Analytical.do:140
ReplicationPackage/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…)
reghdfe
panel fe
current lirebate* pirebate* hhid, pperiod default
MC_Analytical.do:151
ReplicationPackage/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…)
reghdfe
panel fe
current m_pirebate1 m_lirebate* hhid, pperiod cluster: hhid
MC_Analytical.do:167
ReplicationPackage/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_imputation
did
spending — default
MC_fewer_preperiods.do:20
ReplicationPackage/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_imputation
did
spending — default
MC_coverage.do:23
ReplicationPackage/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)
reghdfe
panel fe
spending unitfe=hhid, pperiod default
MC_coverage.do:46
ReplicationPackage/Code/MC_coverage.do, line 46 reghdfe spending if D==0 [aw=projection_factor], a(unitfe=hhid pperiod)
did_imputation
did
eps — default
MC_coverage.do:82
ReplicationPackage/Code/MC_coverage.do, line 82 did_imputation eps hhid pperiod Ei [aw=projection_factor], autosample horizons(0/11) minn(1) loadweights(v_bjs*)
reghdfe
panel fe
o_lirebate`j' pirebate1 lirebate* hhid, pperiod cluster: hhid
Figure3.do:16
ReplicationPackage/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…)
reghdfe
panel fe
o_lirebate`j' pirebate1 lirebate* hhid, pperiod#qn8 cluster: hhid
Figure3.do:27
ReplicationPackage/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…)
reghdfe
panel fe
spending o.pre_1 o.pre_2 pre_3-pre_29 post_* hhid, pperiod cluster: hhid
Figure5.do:14
ReplicationPackage/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)
reghdfe
panel fe
spending pre_1-pre_2 o.pre_3 o.pre_4 pre_5-pre_29 post_* hhid, pperiod cluster: hhid
Figure5.do:16
ReplicationPackage/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)
reghdfe
panel fe
spending o.pre_1 o.pre_2 pre_3-pre_29 post_* hhid, pperiod#qn8 cluster: hhid
Figure5.do:27
ReplicationPackage/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)
reghdfe
panel fe
spending pre_1-pre_2 o.pre_3 o.pre_4 pre_5-pre_29 post_* hhid, pperiod#qn8 cluster: hhid
Figure5.do:29
ReplicationPackage/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)
reghdfe
panel fe
D i, t default
FigureA1.do:23
ReplicationPackage/Code/FigureA1.do, line 23 reghdfe D, a(i t) resid(w_notrim_OLS) keepsing verbose(-1)
reghdfe
panel fe
oH`h' H* i, t default
FigureA1.do:39
ReplicationPackage/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…)
reghdfe
panel fe
D i, t default
FigureA1.do:55
ReplicationPackage/Code/FigureA1.do, line 55 reghdfe D, a(i t) resid(w_OLS) keepsing verbose(-1)
reghdfe
panel fe
oH`h' H* i, t default
FigureA1.do:67
ReplicationPackage/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_imputation
did
spending — default
TableA1.do:24
ReplicationPackage/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)
reghdfe
panel fe
spending `t4c1_rhs' hhid, pperiod cluster: hhid
TableA1.do:39
ReplicationPackage/Code/TableA1.do, line 39 reghdfe spending `t4c1_rhs' [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) resid(t4c1_eps)
reghdfe
panel fe
m_lirebate`m' : list t4c1_rhs - thisvar hhid, pperiod cluster: hhid
TableA1.do:45
ReplicationPackage/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')
reghdfe
panel fe
spending `t3c1_rhs' hhid, pperiod cluster: hhid
TableA1.do:66
ReplicationPackage/Code/TableA1.do, line 66 reghdfe spending `t3c1_rhs' [weight=projection_factor] if sample2 & sample, cluster(hhid) a(hhid pperiod) resid(t3c1_eps)
reghdfe
panel fe
lirebate`h' : list t3c1_rhs - thisvar hhid, pperiod cluster: hhid
TableA1.do:72
ReplicationPackage/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_imputation
did
spending — default
TableA1.do:144
ReplicationPackage/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)
reghdfe
panel fe
spending `t4c4_rhs' hhid, pperiod#qn8 cluster: hhid
TableA1.do:159
ReplicationPackage/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)
reghdfe
panel fe
m_lirebate`m' : list t4c4_rhs - thisvar hhid, pperiod#qn8 cluster: hhid
TableA1.do:165
ReplicationPackage/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')
reghdfe
panel fe
spending `t3c4_rhs' hhid, pperiod#qn8 cluster: hhid
TableA1.do:186
ReplicationPackage/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)
reghdfe
panel fe
lirebate`h' : list t3c4_rhs - thisvar hhid, pperiod#qn8 cluster: hhid
TableA1.do:192
ReplicationPackage/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: `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")
· Table 2 Table2.xlsx
Table2.do:41
ReplicationPackage/Code/Table2.do, line 41 putexcel set Results/Table2.xlsx, modify sheet(Table2)
· Table 3 Table3.xlsx
Table3.do:29
ReplicationPackage/Code/Table3.do, line 29 putexcel set Results/Table3.xlsx, modify sheet(Computation)
· Table A1 TableA1.xlsx
TableA1.do:320
ReplicationPackage/Code/TableA1.do, line 320 putexcel set Results/TableA1.xlsx, modify sheet(TableA1)
· Figure 1 Figure1.eps
Figure1.do:21
ReplicationPackage/Code/Figure1.do, line 21 graph export "Results/Figure1.eps", replace
· Figure 2 Figure2_A.tif
Figure2.do:8
ReplicationPackage/Code/Figure2.do, line 8 graph export "Results/Figure2_A.tif", replace
· Figure 2 Figure2_B.tif
Figure2.do:15
ReplicationPackage/Code/Figure2.do, line 15 graph export "Results/Figure2_B.tif", replace
· Figure 3 Figure3.eps
Figure3.do:48
ReplicationPackage/Code/Figure3.do, line 48 graph export "Results/Figure3.eps", replace
· Figure 4 Figure4_A.eps
Figure4.do:8
ReplicationPackage/Code/Figure4.do, line 8 graph export "Results/Figure4_A.eps", replace
· Figure 4 Figure4_B.eps
Figure4.do:15
ReplicationPackage/Code/Figure4.do, line 15 graph export "Results/Figure4_B.eps", replace
· Figure 4 Figure4_C.eps
Figure4.do:22
ReplicationPackage/Code/Figure4.do, line 22 graph export "Results/Figure4_C.eps", replace
· Figure 5 Figure5_A.tif
Figure5.do:24
ReplicationPackage/Code/Figure5.do, line 24 graph export "Results/Figure5_A.tif", replace
· Figure 5 Figure5_B.tif
Figure5.do:37
ReplicationPackage/Code/Figure5.do, line 37 graph export "Results/Figure5_B.tif", replace
· Figure 6 Figure6_A.tif
Figure6.do:21
ReplicationPackage/Code/Figure6.do, line 21 graph export "Results/Figure6_A.tif", replace
· Figure 6 Figure6_B.tif
Figure6.do:28
ReplicationPackage/Code/Figure6.do, line 28 graph export "Results/Figure6_B.tif", replace
· Figure A1 FigureA1_B.eps
FigureA1.do:48
ReplicationPackage/Code/FigureA1.do, line 48 graph export "Results/FigureA1_B.eps", replace
· Figure A1 FigureA1_A.eps
FigureA1.do:77
ReplicationPackage/Code/FigureA1.do, line 77 graph export "Results/FigureA1_A.eps", replace
· Figure A2 FigureA2_1_`dgp'.eps
FigureA2.do:138
ReplicationPackage/Code/FigureA2.do, line 138 graph export "Results/FigureA2_1_`dgp'.eps", replace
· Figure A2 FigureA2_2_`dgp'.eps
FigureA2.do:144
ReplicationPackage/Code/FigureA2.do, line 144 graph export "Results/FigureA2_2_`dgp'.eps", replace
· Figure A2 FigureA2_3.eps
FigureA2.do:149
ReplicationPackage/Code/FigureA2.do, line 149 graph export "Results/FigureA2_3.eps", replace
· Figure A2 FigureA2_4.eps
FigureA2.do:152
ReplicationPackage/Code/FigureA2.do, line 152 graph export "Results/FigureA2_4.eps", replace
· Figure A2 FigureA2_5.eps
FigureA2.do:157
ReplicationPackage/Code/FigureA2.do, line 157 graph export "Results/FigureA2_5.eps", replace
· Figure A2 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
commandlayersvariables optionssaved aswhere
twoway
line
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 1
Figure1.eps
Figure1.do:15
ReplicationPackage/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 …
–20
twoway
event-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 2
Figure2_A.tif
Figure2.do:4
ReplicationPackage/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 …
–7
twoway
event-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 2
Figure2_B.tif
Figure2.do:11
ReplicationPackage/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 …
–14
twoway
line
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 3
Figure3.eps
Figure3.do:43
ReplicationPackage/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 …
–47
twoway
event-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 4
Figure4_A.eps
Figure4.do:4
ReplicationPackage/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>= …
–7
twoway
event-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 4
Figure4_B.eps
Figure4.do:11
ReplicationPackage/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) & …
–14
twoway
event-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 4
Figure4_C.eps
Figure4.do:18
ReplicationPackage/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 …
–21
event_plot
event-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 5
Figure5_A.tif
Figure5.do:20
ReplicationPackage/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 …
–23
event_plot
event-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 5
Figure5_B.tif
Figure5.do:33
ReplicationPackage/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 …
–36
twoway
event-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 6
Figure6_A.tif
Figure6.do:16
ReplicationPackage/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 …
–20
twoway
line
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 6
Figure6_B.tif
Figure6.do:24
ReplicationPackage/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 …
–27
twoway
line
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 A1
FigureA1_B.eps
FigureA1.do:45
ReplicationPackage/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}" …
–47
twoway
line
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 A1
FigureA1_A.eps
FigureA1.do:74
ReplicationPackage/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( …
–76
scatter
line
connected y bjs, dcdh, sa, semi, fully x h ytitle Standard deviation, $ · legend cols(3) region(style(none)) Figure A2
FigureA2_1_`dgp'.eps (set at run time)
FigureA2.do:137
ReplicationPackage/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)
scatter
line
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 A2
FigureA2_2_`dgp'.eps (set at run time)
FigureA2.do:142
ReplicationPackage/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 …
–143
scatter
line
connected y bjs, semi, fully x h ytitle Bias, $ · legend cols(3) region(style(none)) Figure A2
FigureA2_3.eps
FigureA2.do:147
ReplicationPackage/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, $")
–148
scatter
line
connected y bjs, semi, fully x h ytitle RMSE, $ · legend cols(3) region(style(none)) Figure A2
FigureA2_4.eps
FigureA2.do:151
ReplicationPackage/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) …
scatter
line
connected y bjs, dcdh, sa, semi, fully x h ytitle Sensitivity, $ · legend cols(3) region(style(none)) Figure A2
FigureA2_5.eps
FigureA2.do:156
ReplicationPackage/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)
scatter
line
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 A2
FigureA2_6.eps
FigureA2.do:180
ReplicationPackage/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 …
–182