Replication package 15206 · openicpsr · 2024 · open the deposit

How the code gets from data to results

Data and Code for: Later-life Mortality and the Repeal of Federal Prohibition

Code for: Later-life mortality and the repeal of federal prohibition Journal of Public Economics 2024

12
scripts
20
input files
7
file hand-offs
54
merges
41
sample steps
42
estimations

1 · Data in — files the code reads and no script of the package writes

  • $PROJ_PATH/analysis/processed/intermediate/ipums/usa_00083_extract_collapsed`suffix_`index''.dta Stata
    3_combine_data.do:53
    ICPSR_208062-V1.1/analysis/scripts/code/3_combine_data.do, line 53 use "$PROJ_PATH/analysis/processed/intermediate/ipums/usa_00083_extract_collapsed`suffix_`index''.dta", clear
Other input files 19 files
  • $PROJ_PATH/analysis/processed/data/data_for_analysis_nchs.dta Stata · read by 3 scripts
    3_combine_data.do:146
    ICPSR_208062-V1.1/analysis/scripts/code/3_combine_data.do, line 146 use "$PROJ_PATH/analysis/processed/data/data_for_analysis_nchs.dta" if year >= `start_year_deaths_main' & year <= `end_year_deaths_nchs', clear
  • $PROJ_PATH/analysis/raw/prohibition/prohibition_status_by_state_1933-1942.dta Stata · read by 2 scripts
    1_import_data.do:40
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 40 use "$PROJ_PATH/analysis/raw/prohibition/prohibition_status_by_state_1933-1942.dta", clear
  • $PROJ_PATH/analysis/processed/data/data_for_analysis_nchs_`suffix_`n''.dta Stata
    5_online_appendix.do:1846
    ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1846 use "$PROJ_PATH/analysis/processed/data/data_for_analysis_nchs_`suffix_`n''.dta" if year >= `start_year_deaths_nchs' & year <= `end_year_deaths_nchs', clear
  • $PROJ_PATH/analysis/processed/data/data_for_analysis_nchs_men_only.dta Stata
    4_tables_figures.do:792
    ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 792 use "$PROJ_PATH/analysis/processed/data/data_for_analysis_nchs_men_only.dta" if year >= `start_year_deaths_nchs' & year <= `end_year_deaths_nchs', clear
  • $PROJ_PATH/analysis/processed/data/data_for_analysis_nchs_non_white_only.dta Stata
    4_tables_figures.do:838
    ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 838 use "$PROJ_PATH/analysis/processed/data/data_for_analysis_nchs_non_white_only.dta" if year >= `start_year_deaths_nchs' & year <= `end_year_deaths_nchs', clear
  • $PROJ_PATH/analysis/processed/data/data_for_analysis_nchs_white_only.dta Stata
    4_tables_figures.do:884
    ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 884 use "$PROJ_PATH/analysis/processed/data/data_for_analysis_nchs_white_only.dta" if year >= `start_year_deaths_nchs' & year <= `end_year_deaths_nchs', clear
  • $PROJ_PATH/analysis/processed/data/data_for_analysis_nchs_women_only.dta Stata
    4_tables_figures.do:746
    ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 746 use "$PROJ_PATH/analysis/processed/data/data_for_analysis_nchs_women_only.dta" if year >= `start_year_deaths_nchs' & year <= `end_year_deaths_nchs', clear
  • $PROJ_PATH/analysis/processed/data/data_for_cumulative_analysis_nchs.dta Stata
    5_online_appendix.do:614
    ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 614 use "$PROJ_PATH/analysis/processed/data/data_for_cumulative_analysis_nchs.dta" if year >= `start_year_deaths_nchs' & year <= `end_year_deaths_nchs', clear
11 more
  • $PROJ_PATH/analysis/processed/intermediate/nchs/state_level_cumulative_deaths_from_nchs`suffix_`index''.dta Stata
    3_combine_data.do:422
    ICPSR_208062-V1.1/analysis/scripts/code/3_combine_data.do, line 422 merge 1:1 state birthyear year using "$PROJ_PATH/analysis/processed/intermediate/nchs/state_level_cumulative_deaths_from_nchs`suffix_`index''.dta", assert(2 3) nogen
  • $PROJ_PATH/analysis/processed/intermediate/nchs/state_level_deaths_by_age_from_nchs`suffix_`index''.dta Stata
    3_combine_data.do:56
    ICPSR_208062-V1.1/analysis/scripts/code/3_combine_data.do, line 56 merge 1:1 state birthyear year using "$PROJ_PATH/analysis/processed/intermediate/nchs/state_level_deaths_by_age_from_nchs`suffix_`index''.dta", assert(2 3) nogen
  • $PROJ_PATH/analysis/processed/temp/`filename_1940'.dat text
    1_import_data.do:382
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 382 quietly infix /// int year 1-4 /// long sample 5-10 /// double serial 11-18 /// double hhwt 19-28 /// byte gq 29-29 /// int pernum 30-33 /// …
  • $PROJ_PATH/analysis/processed/temp/`filename_1950'.dat text
    1_import_data.do:465
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 465 quietly infix /// int year 1-4 /// long sample 5-10 /// double serial 11-18 /// double hhwt 19-28 /// byte gq 29-29 /// int pernum 30-33 /// …
  • $PROJ_PATH/analysis/processed/temp/usa_00083.dat text
    1_import_data.do:218
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 218 quietly infix /// int year 1-4 /// long sample 5-10 /// double serial 11-18 /// double hhwt 19-28 /// double cluster 29-41 /// double strata 42-53 /// byte gq 54-54 /// …
  • $PROJ_PATH/analysis/raw/bls/stateabb.dta Stata
    1_import_data.do:123
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 123 use "$PROJ_PATH/analysis/raw/bls/stateabb.dta", clear
  • $PROJ_PATH/analysis/raw/great_depression/State-level personal income per capita, 1929-2018.xlsx Excel
    1_import_data.do:183
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 183 import excel using "$PROJ_PATH/analysis/raw/great_depression/State-level personal income per capita, 1929-2018.xlsx", firstrow clear
  • $PROJ_PATH/analysis/raw/nber/nchs2fips_county1990.dta Stata
    1_import_data.do:97
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 97 use nchs_state fipsst statename using "$PROJ_PATH/analysis/raw/nber/nchs2fips_county1990.dta", clear
  • $PROJ_PATH/analysis/raw/new_deal/reh3041.dta Stata
    1_import_data.do:135
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 135 use "$PROJ_PATH/analysis/raw/new_deal/reh3041.dta", clear
  • $PROJ_PATH/analysis/raw/prohibition/full19301942.dta Stata
    5_online_appendix.do:376
    ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 376 use year fips indth bir using "$PROJ_PATH/analysis/raw/prohibition/full19301942.dta", clear
  • usa_00083.dat text
    usa_00083.do:7
    ICPSR_208062-V1.1/analysis/raw/ipums/usa_00083.do, line 7 quietly infix /// int year 1-4 /// long sample 5-10 /// double serial 11-18 /// double hhwt 19-28 /// double cluster 29-41 /// double strata 42-53 /// byte gq 54-54 /// …

Plus 10 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

12 scripts, in run order for the master script 0_run_all.do and the 10 scripts it runs (directly or through each other); the other 1 are not run by a master script and follow in file-name order; 7 hand-offs through 13 intermediate files; 7 files written and never read back (outputs).

ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do → ICPSR_208062-V1.1/analysis/scripts/code/2_clean_data.do: mort`y'_extract.dta, usa_00083_extract.dtaICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do → ICPSR_208062-V1.1/analysis/scripts/code/3_combine_data.do: new_deal_grants_by_state_1930_1941.dta, prohibition_status_by_state_1933-1941_modified.dta, state_personal_income_per_capita_1930-1941.dtaICPSR_208062-V1.1/analysis/scripts/code/2_clean_data.do → ICPSR_208062-V1.1/analysis/scripts/code/3_combine_data.do: state_level_deaths_by_age_from_nchs.dta, state_level_deaths_by_age_from_nchs_`gender_`x''_only.dta, state_level_deaths_by_age_from_nchs_`race_`x''_only.dtaICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do → ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do: new_deal_grants_by_state_1930_1941.dta, prohibition_status_by_state_1933-1941_modified.dta, state_personal_income_per_capita_1930-1941.dta, usa_00089_extract_1950_100_pct_collapsed.dta, usa_00090_extract_1940_100_pct_collapsed.dtaICPSR_208062-V1.1/analysis/scripts/code/2_clean_data.do → ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do: state_level_deaths_by_age_from_nchs.dtaICPSR_208062-V1.1/analysis/scripts/code/3_combine_data.do → ICPSR_208062-V1.1/analysis/scripts/programs/create_county_map.R: county_map_input.dtaICPSR_208062-V1.1/analysis/scripts/code/3_combine_data.do → ICPSR_208062-V1.1/analysis/scripts/programs/create_maps.R: map_input.dta, map_input_continuous.dta ICPSR_208062-V1.1/0_run_all.do 1. 0_run_all.do ICPSR_208062-V1.1/renv/activate.R 2. activate.R ICPSR_208062-V1.1/analysis/scripts/programs/_install_R_packages.R 3. _install_R_packages.R ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do · reads 8 input files 4. 1_import_data.do ICPSR_208062-V1.1/analysis/scripts/programs/_ipums_labels.do 5. _ipums_labels.do ICPSR_208062-V1.1/analysis/scripts/code/2_clean_data.do 6. 2_clean_data.do ICPSR_208062-V1.1/analysis/scripts/code/3_combine_data.do · reads 5 input files 7. 3_combine_data.do ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do · reads 5 input files · 14 estimations 8. 4_tables_figures.do 14 est.ICPSR_208062-V1.1/analysis/scripts/programs/create_maps.R 9. create_maps.R ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do · reads 4 input files · 28 estimations 10. 5_online_appendix.do 28 est.ICPSR_208062-V1.1/analysis/scripts/programs/create_county_map.R 11. create_county_map.R ICPSR_208062-V1.1/analysis/raw/ipums/usa_00083.do · reads 1 input files 12. usa_00083.do
  1. 1.ICPSR_208062-V1.1/0_run_all.do master script
  2. 2.ICPSR_208062-V1.1/renv/activate.R run by ICPSR_208062-V1.1/0_run_all.do line 141
  3. 3.ICPSR_208062-V1.1/analysis/scripts/programs/_install_R_packages.R run by ICPSR_208062-V1.1/0_run_all.do line 144
  4. 4.ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do run by ICPSR_208062-V1.1/0_run_all.do line 180 reads 8 input files · 10 merges ·
    writes mort`y'_extract.dta → read by 2_clean_data.do
    writes new_deal_grants_by_state_1930_1941.dta → read by 3_combine_data.do, 5_online_appendix.do
    writes prohibition_status_by_state_1933-1941_modified.dta → read by 3_combine_data.do, 5_online_appendix.do
    writes state_personal_income_per_capita_1930-1941.dta → read by 3_combine_data.do, 5_online_appendix.do
    writes usa_00083_extract.dta → read by 2_clean_data.do
    writes usa_00089_extract_1950_100_pct_collapsed.dta → read by 5_online_appendix.do
    writes usa_00090_extract_1940_100_pct_collapsed.dta → read by 5_online_appendix.do
  5. 5.ICPSR_208062-V1.1/analysis/scripts/programs/_ipums_labels.do run by ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do line 246
  6. 6.ICPSR_208062-V1.1/analysis/scripts/code/2_clean_data.do run by ICPSR_208062-V1.1/0_run_all.do line 181 26 merges ·
    reads what 1_import_data.do wrote
    writes state_level_deaths_by_age_from_nchs.dta → read by 3_combine_data.do, 5_online_appendix.do
    writes state_level_deaths_by_age_from_nchs_`gender_`x''_only.dta → read by 3_combine_data.do
    writes state_level_deaths_by_age_from_nchs_`race_`x''_only.dta → read by 3_combine_data.do
    writes (not read again): ``var'', usa_00083_extract_collapsed.dta, usa_00083_extract_collapsed_`race_`x''.dta
  7. 7.ICPSR_208062-V1.1/analysis/scripts/code/3_combine_data.do run by ICPSR_208062-V1.1/0_run_all.do line 182 reads 5 input files · 8 merges ·
    reads what 1_import_data.do, 2_clean_data.do wrote
    writes county_map_input.dta → read by create_county_map.R
    writes map_input.dta → read by create_maps.R
    writes map_input_continuous.dta → read by create_maps.R
    writes (not read again): data_for_cumulative_analysis_nchs`suffix_`index''.dta, state_level_cumulative_deaths_from_nchs.dta, state_level_cumulative_deaths_from_nchs_`gender_`x''_only.dta, state_level_cumulative_deaths_from_nchs_`race_`x''_only.dta
  8. 8.ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do run by ICPSR_208062-V1.1/0_run_all.do line 196 reads 5 input files · 14 estimations
  9. 9.ICPSR_208062-V1.1/analysis/scripts/programs/create_maps.R run by ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do line 128 2 merges ·
    reads what 3_combine_data.do wrote
  10. 10.ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do run by ICPSR_208062-V1.1/0_run_all.do line 210 reads 4 input files · 13 merges · 28 estimations
    reads what 1_import_data.do, 2_clean_data.do wrote
  11. 11.ICPSR_208062-V1.1/analysis/scripts/programs/create_county_map.R run by ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do line 1512 1 merge ·
    reads what 3_combine_data.do wrote
  12. 12.ICPSR_208062-V1.1/analysis/raw/ipums/usa_00083.do reads 1 input file ·

3 · Merges — 54 joins, 1 followed by a check of the merge result; 6 appends

JoinsHowOn keysCheck that followsWhere
reh3041 ← nchs2fips_xwk merge m:1 statename none
1_import_data.do:160
ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 160 fmerge m:1 statename using "$PROJ_PATH/analysis/processed/intermediate/nber/nchs2fips_xwk.dta", assert(2 3) keep (3) nogen keepusing(state)
state-level personal income per capita, 1929-2018 ← nchs2fips_xwk merge m:1 statename none
1_import_data.do:188
ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 188 fmerge m:1 statename using "$PROJ_PATH/analysis/processed/intermediate/nber/nchs2fips_xwk.dta", assert(2 3) keep(3) nogen keepusing(state)
mort`y' ← nchs2fips_xwk merge m:1 nchs_state none
1_import_data.do:300
ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 300 fmerge m:1 nchs_state using "$PROJ_PATH/analysis/processed/intermediate/nber/nchs2fips_xwk.dta", assert(3) nogen
mort`y' ← st2fips_xwk merge m:1 stateabb none
1_import_data.do:310
ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 310 fmerge m:1 stateabb using "$PROJ_PATH/analysis/processed/intermediate/bls/st2fips_xwk.dta", assert(1 3) nogen
`yearlist' ← `birthyearlist' cross (cross) — none
1_import_data.do:438
ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 438 cross using `birthyearlist'
`yearlist' ← `statelist' cross (cross) — none
1_import_data.do:439
ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 439 cross using `statelist'
by_cohort ← crosslist merge 1:1 year state birthyear none
1_import_data.do:444
ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 444 fmerge 1:1 year state birthyear using `crosslist', assert(2 3) nogen
`yearlist' ← `birthyearlist' cross (cross) — none
1_import_data.do:521
ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 521 cross using `birthyearlist'
`yearlist' ← `statelist' cross (cross) — none
1_import_data.do:522
ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 522 cross using `statelist'
by_cohort ← crosslist merge 1:1 year state birthyear none
1_import_data.do:527
ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 527 fmerge 1:1 year state birthyear using `crosslist', assert(2 3) nogen
`yearlist' ← `birthyearlist' cross (cross) — none
2_clean_data.do:58
ICPSR_208062-V1.1/analysis/scripts/code/2_clean_data.do, line 58 cross using `birthyearlist'
`yearlist' ← `statelist' cross (cross) — none
2_clean_data.do:59
ICPSR_208062-V1.1/analysis/scripts/code/2_clean_data.do, line 59 cross using `statelist'

4 · The sample — 41 keep/drop steps, 0 variables winsorized or trimmed

Filters, by kind
time period ×21
  • keep if year >= 1930 & year <= 1941
    1_import_data.do:44
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 44 keep if year >= `start_year_births' & year <= `end_year_births' as we read it (macros filled in / loop expanded): keep if year >= 1930 & year <= 1941
  • keep if birthyear >= 1930 & birthyear <= 1941
    1_import_data.do:191
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 191 keep if birthyear >= `start_year_births' & birthyear <= `end_year_births' as we read it (macros filled in / loop expanded): keep if birthyear >= 1930 & birthyear <= 1941
  • keep if birthyear >= 1930 & birthyear <= 1941
    1_import_data.do:253
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 253 keep if birthyear >= `start_year_births' & birthyear <= `end_year_births' as we read it (macros filled in / loop expanded): keep if birthyear >= 1930 & birthyear <= 1941
  • keep if inrange(birthyear,1930,1941)
    1_import_data.do:333
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 333 keep if inrange(birthyear,`start_year_births',`end_year_births') as we read it (macros filled in / loop expanded): keep if inrange(birthyear,1930,1941)
  • keep if birthyear >= 1930 & birthyear <= 1941
    1_import_data.do:413
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 413 keep if birthyear >= `start_year_births' & birthyear <= `end_year_births' as we read it (macros filled in / loop expanded): keep if birthyear >= 1930 & birthyear <= 1941
  • keep if birthyear >= 1930 & birthyear <= 1941
    1_import_data.do:496
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 496 keep if birthyear >= `start_year_births' & birthyear <= `end_year_births' as we read it (macros filled in / loop expanded): keep if birthyear >= 1930 & birthyear <= 1941
  • keep if year >= 1930 & year <= 1941
    3_combine_data.do:182
    ICPSR_208062-V1.1/analysis/scripts/code/3_combine_data.do, line 182 keep if year >= `start_year_births' & year <= `end_year_births' as we read it (macros filled in / loop expanded): keep if year >= 1930 & year <= 1941
  • keep if birthyear >= 1938 & birthyear <= 1941
    3_combine_data.do:232
    ICPSR_208062-V1.1/analysis/scripts/code/3_combine_data.do, line 232 keep if birthyear >= 1938 & birthyear <= 1941
  • first 8 of 21
geography ×12
  • keep if state <= 56
    1_import_data.do:101
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 101 keep if state <= 56
  • keep if statefip <= 56
    1_import_data.do:124
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 124 keep if statefip <= 56
  • keep if state <= 56 & state != 2 & state != 11 & state != 15
    1_import_data.do:254
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 254 keep if `state_restrictions' as we read it (macros filled in / loop expanded): keep if state <= 56 & state != 2 & state != 11 & state != 15
  • keep if nchs_state <= 51
    1_import_data.do:299
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 299 keep if nchs_state <= 51
  • keep if state <= 56 & state != 2 & state != 11 & state != 15
    1_import_data.do:328
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 328 keep if `state_restrictions' as we read it (macros filled in / loop expanded): keep if state <= 56 & state != 2 & state != 11 & state != 15
  • keep if state <= 56 & state != 2 & state != 11 & state != 15
    1_import_data.do:414
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 414 keep if `state_restrictions' as we read it (macros filled in / loop expanded): keep if state <= 56 & state != 2 & state != 11 & state != 15
  • keep if state <= 56 & state != 2 & state != 11 & state != 15
    1_import_data.do:497
    ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 497 keep if `state_restrictions' as we read it (macros filled in / loop expanded): keep if state <= 56 & state != 2 & state != 11 & state != 15
  • keep if state != 2 & state != 15
    create_maps.R:52
    ICPSR_208062-V1.1/analysis/scripts/programs/create_maps.R, line 52 filter(state != 2 & state != 15)
  • first 8 of 12
demographics ×3
  • keep if sex == `x'
    2_clean_data.do:71
    ICPSR_208062-V1.1/analysis/scripts/code/2_clean_data.do, line 71 keep if sex == `x'
  • keep if race == `x'
    2_clean_data.do:130
    ICPSR_208062-V1.1/analysis/scripts/code/2_clean_data.do, line 130 keep if race == `x'
  • keep if race == `x'
    2_clean_data.do:521
    ICPSR_208062-V1.1/analysis/scripts/code/2_clean_data.do, line 521 keep if race == `x'
missing values ×3
  • drop if state_switcher == 0 & !missing(time_treated)
    4_tables_figures.do:458
    ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 458 drop if state_switcher == 0 & !missing(time_treated)
  • drop if state_switcher == 0 & !missing(time_treated)
    5_online_appendix.do:196
    ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 196 drop if state_switcher == 0 & !missing(time_treated)
  • drop if state_switcher == 0 & !missing(time_treated)
    5_online_appendix.do:237
    ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 237 drop if state_switcher == 0 & !missing(time_treated)
time windows set by a variable — a loop or a computed date, not fixed years (rolling estimation windows, not the sample period) ×2
  • drop if birthyear >= last_treated_year
    4_tables_figures.do:410
    ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 410 drop if birthyear >= last_treated_year
  • drop if birthyear >= last_treated_year
    5_online_appendix.do:155
    ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 155 drop if birthyear >= last_treated_year
Outliers

No winsorizing or trimming recorded.

Missing values
interpolated / carried forward ×4
  • 5_online_appendix.do:723
    ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 723 by state: ipolate population birthyear, gen(temp_pop) epolate
  • 5_online_appendix.do:799
    ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 799 by state: ipolate population birthyear, gen(temp_pop) epolate
  • 5_online_appendix.do:985
    ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 985 by state: ipolate population birthyear, gen(temp_pop) epolate
  • 5_online_appendix.do:1167
    ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1167 by state: ipolate population birthyear, gen(temp_pop) epolate
filled with a value ×4
  • population → temp_pop
    5_online_appendix.do:724
    ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 724 replace population = temp_pop if population == .
  • population → temp_pop
    5_online_appendix.do:800
    ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 800 replace population = temp_pop if population == .
  • population → temp_pop
    5_online_appendix.do:986
    ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 986 replace population = temp_pop if population == .
  • population → temp_pop
    5_online_appendix.do:1168
    ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1168 replace population = temp_pop if population == .
dropped ×3
  • 4_tables_figures.do:458
    ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 458 drop if state_switcher == 0 & !missing(time_treated)
  • 5_online_appendix.do:196
    ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 196 drop if state_switcher == 0 & !missing(time_treated)
  • 5_online_appendix.do:237
    ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 237 drop if state_switcher == 0 & !missing(time_treated)
common sample across variables (listwise) ×2
  • 4_tables_figures.do:27
    ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 27 local ybar_sample "!missing(time_treated) & birthyear <= 1933"
  • 5_online_appendix.do:36
    ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 36 local ybar_sample "!missing(time_treated) & birthyear <= 1933"

5 · Key variables — what enters the models, and where the code builds it

VariableUsed in models asBuilt by
y1_deaths outcome in 19 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
y1_deaths_40to79 outcome in 1
y1_deaths_40to79 = min(1000,1000*deaths_40to79/population) (gen)
5_online_appendix.do:1178
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1178 gen y1_deaths_40to79 = min(1000,1000*deaths_40to79/population)
y1_deaths_40to90 outcome in 1
y1_deaths_40to90 = min(1000,1000*deaths_40to90/population) (gen)
5_online_appendix.do:810
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 810 gen y1_deaths_40to90 = min(1000,1000*deaths_40to90/population)
y1_deaths_50to79 outcome in 1
y1_deaths_50to79 = min(1000,1000*deaths_50to79/population) (gen)
5_online_appendix.do:996
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 996 gen y1_deaths_50to79 = min(1000,1000*deaths_50to79/population)
y1_deaths_50to90 outcome in 1
y1_deaths_50to90 = min(1000,1000*deaths_50to90/population) (gen)
5_online_appendix.do:734
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 734 gen y1_deaths_50to90 = min(1000,1000*deaths_50to90/population)
y1_deaths_adjust_denom outcome in 1
y1_deaths_adjust_denom = min(1000,1000*deaths/(alive_jan01_plusinf)) (gen)
5_online_appendix.do:427
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 427 gen y1_deaths_adjust_denom = min(1000,1000*deaths/(alive_jan01_plusinf))
y1_deaths_plusinf outcome in 1
y1_deaths_plusinf = min(1000,1000*deaths_plusinf/(alive_jan01_plusinf)) (gen)
5_online_appendix.do:431
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 431 gen y1_deaths_plusinf = min(1000,1000*deaths_plusinf/(alive_jan01_plusinf))
event regressor in 76 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
F regressor in 38 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
L regressor in 38 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
log_grants regressor in 1
log_grants = ln(tot_grants_ex_transfers) (gen)
3_combine_data.do:70
ICPSR_208062-V1.1/analysis/scripts/code/3_combine_data.do, line 70 gen log_grants = ln(tot_grants_ex_transfers)
log_grants = ln(tot_grants_ex_transfers) (gen)
3_combine_data.do:436
ICPSR_208062-V1.1/analysis/scripts/code/3_combine_data.do, line 436 gen log_grants = ln(tot_grants_ex_transfers)
log_grants = ln(tot_grants_ex_transfers) (gen)
5_online_appendix.do:930
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 930 gen log_grants = ln(tot_grants_ex_transfers)
+1 more statements set it
log_stinc regressor in 1
log_stinc = ln(stincome) (gen)
3_combine_data.do:76
ICPSR_208062-V1.1/analysis/scripts/code/3_combine_data.do, line 76 gen log_stinc = ln(stincome)
log_stinc = ln(stincome) (gen)
3_combine_data.do:442
ICPSR_208062-V1.1/analysis/scripts/code/3_combine_data.do, line 442 gen log_stinc = ln(stincome)
log_stinc = ln(stincome) (gen)
5_online_appendix.do:936
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 936 gen log_stinc = ln(stincome)
+1 more statements set it
treated regressor in 1 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
wet regressor in 1
wet = (status == "wet") (gen)
1_import_data.do:52
ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 52 gen wet = (status == "wet")
wet = (status == "wet") (gen)
3_combine_data.do:190
ICPSR_208062-V1.1/analysis/scripts/code/3_combine_data.do, line 190 gen wet = (status == "wet")
wet = wet*stpop/total_pop (replace)
1_import_data.do:62
ICPSR_208062-V1.1/analysis/scripts/code/1_import_data.do, line 62 replace wet = wet*stpop/total_pop
+4 more statements set it

6 · Models, by the table or figure they feed — 42 estimations, 26 traced into 8 exhibits

Table 1 · 6 estimations → table_1_aggregate_event_study_regressions.tex
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:367
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 367 eststo p1_c1: eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') as we read it (macros filled in / loop expanded): eststo p1_c1: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear)
written at 4_tables_figures.do:630
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:383
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 383 eststo p1_c2: eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c2: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
written at 4_tables_figures.do:630
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:436
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 436 eststo p1_c3: eventstudyinteract `depvar' L*event F*event [aw = `weight'], vce(cluster `clustervar') absorb(`absvar') cohort(time_treated) control_cohort(last_treated) covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c3: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], vce(cluster state_birthyear) absorb(birthyear##year state##year) cohort(time_treated) control_cohort(last_treated) covariates(log_grants log_stinc)
written at 4_tables_figures.do:630
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:483
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 483 eststo p1_c4: eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c4: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
written at 4_tables_figures.do:630
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:527
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 527 eststo p1_c5: eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c5: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
written at 4_tables_figures.do:630
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state
4_tables_figures.do:571
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 571 eststo p1_c6: eventstudyinteract `depvar' L*event F*event [aw = `weight'], vce(cluster state) absorb(`absvar') cohort(time_treated) control_cohort(never_treated) covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c6: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], vce(cluster state) absorb(birthyear##year state##year) cohort(time_treated) control_cohort(never_treated) covariates(log_grants log_stinc)
written at 4_tables_figures.do:630
Table 2 · 7 estimations → table_2_cause_of_death.tex
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:367
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 367 eststo p1_c1: eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') as we read it (macros filled in / loop expanded): eststo p1_c1: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear)
written at 4_tables_figures.do:727
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:383
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 383 eststo p1_c2: eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c2: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
written at 4_tables_figures.do:727
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:436
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 436 eststo p1_c3: eventstudyinteract `depvar' L*event F*event [aw = `weight'], vce(cluster `clustervar') absorb(`absvar') cohort(time_treated) control_cohort(last_treated) covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c3: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], vce(cluster state_birthyear) absorb(birthyear##year state##year) cohort(time_treated) control_cohort(last_treated) covariates(log_grants log_stinc)
written at 4_tables_figures.do:727
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:483
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 483 eststo p1_c4: eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c4: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
written at 4_tables_figures.do:727
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:527
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 527 eststo p1_c5: eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c5: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
written at 4_tables_figures.do:727
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state
4_tables_figures.do:571
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 571 eststo p1_c6: eventstudyinteract `depvar' L*event F*event [aw = `weight'], vce(cluster state) absorb(`absvar') cohort(time_treated) control_cohort(never_treated) covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c6: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], vce(cluster state) absorb(birthyear##year state##year) cohort(time_treated) control_cohort(never_treated) covariates(log_grants log_stinc)
written at 4_tables_figures.do:727
eventstudyinteract
did
y1_``n'' L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:684
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 684 eststo p1_c`n': eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c`n': eventstudyinteract y1_``n'' L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
written at 4_tables_figures.do:727
Table 3 · 7 estimations → table_3_heterogeneity.tex
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:527
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 527 eststo p1_c5: eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c5: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
written at 4_tables_figures.do:963
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state
4_tables_figures.do:571
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 571 eststo p1_c6: eventstudyinteract `depvar' L*event F*event [aw = `weight'], vce(cluster state) absorb(`absvar') cohort(time_treated) control_cohort(never_treated) covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c6: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], vce(cluster state) absorb(birthyear##year state##year) cohort(time_treated) control_cohort(never_treated) covariates(log_grants log_stinc)
written at 4_tables_figures.do:963
eventstudyinteract
did
y1_``n'' L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:684
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 684 eststo p1_c`n': eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c`n': eventstudyinteract y1_``n'' L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
written at 4_tables_figures.do:963
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:775
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 775 eststo p1_c1: eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c1: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
written at 4_tables_figures.do:963
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:821
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 821 eststo p1_c2: eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c2: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
written at 4_tables_figures.do:963
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:867
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 867 eststo p1_c3: eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c3: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
written at 4_tables_figures.do:963
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:913
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 913 eststo p1_c4: eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c4: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
written at 4_tables_figures.do:963
Table A2 · 5 estimations → table_a2_bounding_infant_deaths_by_year_1990_start.tex
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
5_online_appendix.do:471
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 471 eststo p1_c1: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c1: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
written at 5_online_appendix.do:600
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
5_online_appendix.do:491
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 491 eststo p1_c2: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c2: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
written at 5_online_appendix.do:600
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
5_online_appendix.do:510
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 510 eststo p1_c3: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c3: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01_plusinf], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
written at 5_online_appendix.do:600
eventstudyinteract
did
y1_deaths_adjust_denom L*event F*event birthyear##year, state##year cluster: state_birthyear
5_online_appendix.do:529
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 529 eststo p1_c4: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c4: eventstudyinteract y1_deaths_adjust_denom L*event F*event [aw = alive_jan01_plusinf], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants lo …
written at 5_online_appendix.do:600
eventstudyinteract
did
y1_deaths_plusinf L*event F*event birthyear##year, state##year cluster: state_birthyear
5_online_appendix.do:547
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 547 eststo p1_c5: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c5: eventstudyinteract y1_deaths_plusinf L*event F*event [aw = alive_jan01_plusinf], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_sti …
written at 5_online_appendix.do:600
Table A3 · 7 estimations → table_a3_life_cycle_mortality.tex
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
eventstudyinteract
did
y1_deaths L*event F*event state, birthyear cluster: state
5_online_appendix.do:652
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 652 eststo p1_c1: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c1: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1269
eventstudyinteract
did
y1_deaths L*event F*event state, birthyear cluster: state
5_online_appendix.do:670
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 670 eststo p1_c2: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight' if state != 53, cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c2: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01] if state != 53, cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1269
eventstudyinteract
did
y1_deaths L*event F*event state, birthyear cluster: state
5_online_appendix.do:690
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 690 eststo p1_c3: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c3: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1269
eventstudyinteract
did
y1_deaths_50to90 L*event F*event state, birthyear cluster: state
5_online_appendix.do:771
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 771 eststo p1_c4: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c4: eventstudyinteract y1_deaths_50to90 L*event F*event [aw = population], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1269
eventstudyinteract
did
y1_deaths_40to90 L*event F*event state, birthyear cluster: state
5_online_appendix.do:847
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 847 eststo p1_c5: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c5: eventstudyinteract y1_deaths_40to90 L*event F*event [aw = population], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1269
eventstudyinteract
did
y1_deaths_50to79 L*event F*event state, birthyear cluster: state
5_online_appendix.do:1033
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1033 eststo p1_c6: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c6: eventstudyinteract y1_deaths_50to79 L*event F*event [aw = population], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1269
eventstudyinteract
did
y1_deaths_40to79 L*event F*event state, birthyear cluster: state
5_online_appendix.do:1215
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1215 eststo p1_c7: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c7: eventstudyinteract y1_deaths_40to79 L*event F*event [aw = population], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1269
Table B1 · 8 estimations → table_b1_extended_panel.tex
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
eventstudyinteract
did
y1_deaths L*event F*event state, birthyear cluster: state
5_online_appendix.do:652
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 652 eststo p1_c1: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c1: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1501
eventstudyinteract
did
y1_deaths L*event F*event state, birthyear cluster: state
5_online_appendix.do:670
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 670 eststo p1_c2: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight' if state != 53, cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c2: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01] if state != 53, cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1501
eventstudyinteract
did
y1_deaths L*event F*event state, birthyear cluster: state
5_online_appendix.do:690
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 690 eststo p1_c3: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c3: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1501
eventstudyinteract
did
y1_deaths_50to90 L*event F*event state, birthyear cluster: state
5_online_appendix.do:771
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 771 eststo p1_c4: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c4: eventstudyinteract y1_deaths_50to90 L*event F*event [aw = population], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1501
eventstudyinteract
did
y1_deaths_40to90 L*event F*event state, birthyear cluster: state
5_online_appendix.do:847
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 847 eststo p1_c5: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c5: eventstudyinteract y1_deaths_40to90 L*event F*event [aw = population], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1501
eventstudyinteract
did
y1_deaths_50to79 L*event F*event state, birthyear cluster: state
5_online_appendix.do:1033
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1033 eststo p1_c6: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c6: eventstudyinteract y1_deaths_50to79 L*event F*event [aw = population], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1501
eventstudyinteract
did
y1_deaths_40to79 L*event F*event state, birthyear cluster: state
5_online_appendix.do:1215
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1215 eststo p1_c7: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c7: eventstudyinteract y1_deaths_40to79 L*event F*event [aw = population], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1501
eventstudyinteract
did
y1_``n'' L*event F*event birthyear##year, state##year cluster: state_birthyear
5_online_appendix.do:1462
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1462 eststo p1_c`n': eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c`n': eventstudyinteract y1_``n'' L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1501
Table C1 · 8 estimations → table_c1_continuous_treatment.tex
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
eventstudyinteract
did
y1_deaths L*event F*event state, birthyear cluster: state
5_online_appendix.do:652
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 652 eststo p1_c1: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c1: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1572
eventstudyinteract
did
y1_deaths L*event F*event state, birthyear cluster: state
5_online_appendix.do:670
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 670 eststo p1_c2: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight' if state != 53, cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c2: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01] if state != 53, cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1572
eventstudyinteract
did
y1_deaths L*event F*event state, birthyear cluster: state
5_online_appendix.do:690
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 690 eststo p1_c3: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c3: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1572
eventstudyinteract
did
y1_deaths_50to90 L*event F*event state, birthyear cluster: state
5_online_appendix.do:771
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 771 eststo p1_c4: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c4: eventstudyinteract y1_deaths_50to90 L*event F*event [aw = population], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1572
eventstudyinteract
did
y1_deaths_40to90 L*event F*event state, birthyear cluster: state
5_online_appendix.do:847
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 847 eststo p1_c5: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c5: eventstudyinteract y1_deaths_40to90 L*event F*event [aw = population], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1572
eventstudyinteract
did
y1_deaths_50to79 L*event F*event state, birthyear cluster: state
5_online_appendix.do:1033
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1033 eststo p1_c6: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c6: eventstudyinteract y1_deaths_50to79 L*event F*event [aw = population], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1572
eventstudyinteract
did
y1_deaths_40to79 L*event F*event state, birthyear cluster: state
5_online_appendix.do:1215
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1215 eststo p1_c7: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c7: eventstudyinteract y1_deaths_40to79 L*event F*event [aw = population], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1572
reghdfe
panel fe
y1_``n'' wet log_grants log_stinc birthyear##year, state##year cluster: state_birthyear
5_online_appendix.do:1536
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1536 eststo p1_c`n': reghdfe `depvar' wet `controls' [aw = `weight'], absorb(`absvar') vce(cluster `clustervar') as we read it (macros filled in / loop expanded): eststo p1_c`n': reghdfe y1_``n'' wet log_grants log_stinc [aw = alive_jan01], absorb(birthyear##year state##year) vce(cluster state_birthyear)
written at 5_online_appendix.do:1572
Table D1 · 8 estimations → table_d1_cumulative.tex
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
eventstudyinteract
did
y1_deaths L*event F*event state, birthyear cluster: state
5_online_appendix.do:652
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 652 eststo p1_c1: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c1: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1816
eventstudyinteract
did
y1_deaths L*event F*event state, birthyear cluster: state
5_online_appendix.do:670
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 670 eststo p1_c2: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight' if state != 53, cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c2: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01] if state != 53, cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1816
eventstudyinteract
did
y1_deaths L*event F*event state, birthyear cluster: state
5_online_appendix.do:690
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 690 eststo p1_c3: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c3: eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1816
eventstudyinteract
did
y1_deaths_50to90 L*event F*event state, birthyear cluster: state
5_online_appendix.do:771
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 771 eststo p1_c4: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c4: eventstudyinteract y1_deaths_50to90 L*event F*event [aw = population], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1816
eventstudyinteract
did
y1_deaths_40to90 L*event F*event state, birthyear cluster: state
5_online_appendix.do:847
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 847 eststo p1_c5: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c5: eventstudyinteract y1_deaths_40to90 L*event F*event [aw = population], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1816
eventstudyinteract
did
y1_deaths_50to79 L*event F*event state, birthyear cluster: state
5_online_appendix.do:1033
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1033 eststo p1_c6: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c6: eventstudyinteract y1_deaths_50to79 L*event F*event [aw = population], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1816
eventstudyinteract
did
y1_deaths_40to79 L*event F*event state, birthyear cluster: state
5_online_appendix.do:1215
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1215 eststo p1_c7: eventstudyinteract `bounding_depvar' L*event F*event `bounding_weight', cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c7: eventstudyinteract y1_deaths_40to79 L*event F*event [aw = population], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1816
eventstudyinteract
did
y1_``n'' L*event F*event state, birthyear cluster: state
5_online_appendix.do:1778
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1778 eststo p1_c`n': eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`unit_id' `time_id') vce(cluster `unit_id') covariates(`controls') as we read it (macros filled in / loop expanded): eststo p1_c`n': eventstudyinteract y1_``n'' L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(state birthyear) vce(cluster state) covariates(log_grants log_stinc)
written at 5_online_appendix.do:1816
Estimations not traced to a table or figure · 16
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
y1_deaths age cluster: state_birthyear
4_tables_figures.do:147
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 147 reghdfe `depvar' [aw = `weight'], absorb(age) vce(cluster `clustervar') residuals(partial_`depvar') as we read it (macros filled in / loop expanded): reghdfe y1_deaths [aw = alive_jan01], absorb(age) vce(cluster state_birthyear) residuals(partial_y1_deaths)
reghdfe
panel fe
y1_``n'' F*event L*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:233
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 233 reghdfe `depvar' F*event L*event [aw = `weight'], absorb(`absvar') vce(cluster `clustervar') as we read it (macros filled in / loop expanded): reghdfe y1_``n'' F*event L*event [aw = alive_jan01], absorb(birthyear##year state##year) vce(cluster state_birthyear)
eventstudyinteract
did
y1_``n'' L*event F*event birthyear##year, state##year cluster: state_birthyear
4_tables_figures.do:256
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 256 eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') as we read it (macros filled in / loop expanded): eventstudyinteract y1_``n'' L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear)
eventstudyinteract
did
y1_``n'' L*event F*event birthyear##year, state##year cluster: state_birthyear
5_online_appendix.do:135
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 135 eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eventstudyinteract y1_``n'' L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
eventstudyinteract
did
y1_``n'' L*event F*event birthyear##year, state##year cluster: state_birthyear
5_online_appendix.do:181
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 181 eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(last_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eventstudyinteract y1_``n'' L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(last_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
eventstudyinteract
did
y1_``n'' L*event F*event birthyear##year, state##year cluster: state_birthyear
5_online_appendix.do:222
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 222 eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eventstudyinteract y1_``n'' L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
eventstudyinteract
did
y1_``n'' L*event F*event birthyear##year, state##year cluster: state_birthyear
5_online_appendix.do:263
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 263 eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') covariates(`controls') as we read it (macros filled in / loop expanded): eventstudyinteract y1_``n'' L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear) covariates(log_grants log_stinc)
eventstudyinteract
did
y1_``n'' L*event F*event birthyear##year, state##year cluster: state
5_online_appendix.do:301
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 301 eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster state) covariates(`controls') as we read it (macros filled in / loop expanded): eventstudyinteract y1_``n'' L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state) covariates(log_grants log_stinc)
reghdfe
panel fe
y1_``n'' F*event L*event birthyear##year, state##year cluster: state_birthyear
5_online_appendix.do:1337
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1337 reghdfe `depvar' F*event L*event [aw = `weight'], absorb(`absvar') vce(cluster `clustervar') as we read it (macros filled in / loop expanded): reghdfe y1_``n'' F*event L*event [aw = alive_jan01], absorb(birthyear##year state##year) vce(cluster state_birthyear)
eventstudyinteract
did
y1_``n'' L*event F*event birthyear##year, state##year cluster: state_birthyear
5_online_appendix.do:1360
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1360 eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') as we read it (macros filled in / loop expanded): eventstudyinteract y1_``n'' L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear)
did_multiplegt
did
y1_``n'' treated — cluster: state
5_online_appendix.do:1624
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1624 did_multiplegt `depvar' `unit_id' `time_id' treated, robust_dynamic dynamic(`t_max') placebo(4) longdiff_placebo breps(100) cluster(`unit_id') `wgt' as we read it (macros filled in / loop expanded): did_multiplegt y1_``n'' state birthyear treated, robust_dynamic dynamic(abs(r(max))) placebo(4) longdiff_placebo breps(100) cluster(state) `wgt'
csdid
did
y1_``n'' `iw' — default
5_online_appendix.do:1631
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1631 csdid `depvar' `iw', ivar(`unit_id') time(`time_id') gvar(gvar) agg(event) as we read it (macros filled in / loop expanded): csdid y1_``n'' `iw', ivar(state) time(birthyear) gvar(gvar) agg(event)
reghdfe
panel fe
y1_``n'' F*event L*event state, birthyear cluster: state
5_online_appendix.do:1653
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1653 reghdfe `depvar' F*event L*event [aw = `weight'], absorb(`unit_id' `time_id') vce(cluster `unit_id') as we read it (macros filled in / loop expanded): reghdfe y1_``n'' F*event L*event [aw = alive_jan01], absorb(state birthyear) vce(cluster state)
eventstudyinteract
did
y1_``n'' L*event F*event state, birthyear cluster: state
5_online_appendix.do:1675
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1675 eventstudyinteract `depvar' L*event F*event [aw = `weight'], vce(cluster `unit_id') absorb(`unit_id' `time_id') cohort(time_treated) control_cohort(never_treated) as we read it (macros filled in / loop expanded): eventstudyinteract y1_``n'' L*event F*event [aw = alive_jan01], vce(cluster state) absorb(state birthyear) cohort(time_treated) control_cohort(never_treated)
reghdfe
panel fe
y1_deaths F*event L*event birthyear##year, state##year cluster: state_birthyear
5_online_appendix.do:1886
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1886 reghdfe `depvar' F*event L*event [aw = `weight'], absorb(`absvar') vce(cluster `clustervar') as we read it (macros filled in / loop expanded): reghdfe y1_deaths F*event L*event [aw = alive_jan01], absorb(birthyear##year state##year) vce(cluster state_birthyear)
eventstudyinteract
did
y1_deaths L*event F*event birthyear##year, state##year cluster: state_birthyear
5_online_appendix.do:1910
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1910 eventstudyinteract `depvar' L*event F*event [aw = `weight'], cohort(time_treated) control_cohort(never_treated) absorb(`absvar') vce(cluster `clustervar') as we read it (macros filled in / loop expanded): eventstudyinteract y1_deaths L*event F*event [aw = alive_jan01], cohort(time_treated) control_cohort(never_treated) absorb(birthyear##year state##year) vce(cluster state_birthyear)
Tables and figures the code writes: Table A1 table_a1_icd_crosswalk.tex
5_online_appendix.do:359
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 359 file open myfile using "$PROJ_PATH/analysis/output/appendix/table_a1_icd_crosswalk.tex", write text replace

7 · Figures: how each is drawn — 11 figures in the code (command, layers, options, the file it is saved to)

event-study plot 5 · line 3 · map 3
commandlayersvariables optionssaved aswhere
twoway
line
connected + connected + pcarrow y ethanol, y1, y2 x year, x1, x2 xtitle Year · xline 1920, 1933 · legend off Figure 1A
figure_1a_ethanol_consumption.png
4_tables_figures.do:63
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 63 twoway /// || connected ethanol year if year <= 1919, lw(1.0) col("230 65 115") msymbol(none) lp(solid) /// connect estimates || connected ethanol year if year >= 1934, lw(1.0) col("230 65 115") msymbol(none) lp( …
–77
twoway
line
connected + pcarrow y wet_pop_shr, y1, y2 x birthyear, x1, x2 xtitle Year · xline 1934 · legend off Figure 1B
figure_1b_shr_pop_treated.png
4_tables_figures.do:109
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 109 twoway /// || connected wet_pop_shr birthyear if birthyear >= 1934, lw(1.0) col("230 65 115") msymbol(none) lp(solid) /// connect estimates || pcbarrow y1 x1 y2 x2, lw(1.0) col("230 65 115") mstyle(none) lp(solid …
–120
twoway
line
connected + connected y partial_state_dr x birthyear xtitle Birth Year · xline 1934 · legend off Figure 1D
figure_1d_resid_death_by_birthyear.png
4_tables_figures.do:157
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 157 twoway /// || connected `yvar' birthyear if ever_treated == 0, lw(.5) lcolor("black") lp(longdash) msymbol(none) /// || connected `yvar' birthyear if ever_treated == 1, lw(1) lcolor("230 65 115") lp(line) msymbol(none) …
–172
event_plot
event-study plot
event_plot estimates sa_b#sa_v, ols xtitle Years since state becomes wet · ytitle Average causal effect · xline -0.5 · yline 0 · ci rcap · legend order(1 Sun and Abraham (2021) 3 TWFE OLS) rows(1) position(6) size(6) region(style(none)) Figure A2
figure_`figpart'_event_study_``n''.png (set at run time)
4_tables_figures.do:305
ICPSR_208062-V1.1/analysis/scripts/code/4_tables_figures.do, line 305 event_plot sa_b#sa_v ols, /// stub_lag(L#event L#event) stub_lead(F#event F#event) /// plottype(scatter) ciplottype(rcap) /// together trimlead(4) trimlag(4) noautolegend /// graph_opt( /// subtit …
–322
event_plot
event-study plot
event_plot estimates sa_b#sa_v, sa_b_last#sa_v_last, sa_b_state#sa_v_state, sa_b_majority#sa_v_majority, sa_b_cluster#sa_v_cluster xtitle Years since state becomes wet · ytitle Average causal effect · xline -0.5 · yline 0 · ci rcap · legend order(1 Baseline + controls 3 Last treated as control 5 State transitions 7 Majority transitions 9 Cluster at state level) rows(2) position(6) size(6) Figure A3D
figure_a3`figpan'_es_robust_controls_``n''.png (set at run time)
5_online_appendix.do:330
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 330 event_plot sa_b#sa_v sa_b_last#sa_v_last sa_b_state#sa_v_state sa_b_majority#sa_v_majority sa_b_cluster#sa_v_cluster, /// stub_lag(L#event L#event L#event L#event L#event) stub_lead(F#event F#event F#event F#event F# …
–349
event_plot
event-study plot
event_plot estimates sa_b#sa_v, ols xtitle Years since state becomes wet · ytitle Average causal effect · xline -0.5 · yline 0 · ci rcap · legend order(1 Sun and Abraham (2021) 3 TWFE OLS) rows(1) position(6) size(6) region(style(none)) Figure B1D
figure_b1`figpan'_es_extended_panel_``n''.png (set at run time)
5_online_appendix.do:1398
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1398 event_plot sa_b#sa_v ols, /// stub_lag(L#event L#event) stub_lead(F#event F#event) /// plottype(scatter) ciplottype(rcap) /// together trimlead(4) trimlag(4) noautolegend /// graph_opt( /// subtit …
–1415
event_plot
event-study plot
event_plot estimates sa_b#sa_v, ols, dcdh_b#dcdh_v, cs_b#cs_v xtitle Years since state becomes wet · ytitle Average causal effect · xline -0.5 · yline 0 · ci rcap · legend order(1 Sun and Abraham (2021) 3 TWFE OLS 5 de Chaisemartin-D'Haultfoeuille (2020) 7 Callaway and Sant'Anna (2021)) size(5) rows(2) position(6) region(s Figure D1D
figure_d1`figpan'_es_cumulative_``n''.png (set at run time)
5_online_appendix.do:1709
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1709 event_plot sa_b#sa_v ols dcdh_b#dcdh_v cs_b#cs_v, /// stub_lag(L#event L#event Effect_# Tp#) stub_lead(F#event F#event Placebo_# Tm#) /// plottype(scatter) ciplottype(rcap) /// together perturb(-0.15(0.1)0.15 …
–1729
event_plot
event-study plot
event_plot estimates sa_b#sa_v, ols xtitle Years since state becomes wet · ytitle Average causal effect · xline -0.5 · yline 0 · ci rcap · legend order(1 Sun and Abraham (2021) 3 TWFE OLS) rows(1) position(6) size(6) region(style(none)) Figure E1D
figure_e1`figpan'_event_study_`suffix_`n''.png (set at run time)
5_online_appendix.do:1943
ICPSR_208062-V1.1/analysis/scripts/code/5_online_appendix.do, line 1943 event_plot sa_b#sa_v ols, /// stub_lag(L#event L#event) stub_lead(F#event F#event) /// plottype(scatter) ciplottype(rcap) /// together trimlead(4) trimlag(4) noautolegend /// graph_opt( /// subtit …
–1960
ggplot
map
sf + sf Figure C1
figure_c1_county_wet_map.png
create_county_map.R:66
ICPSR_208062-V1.1/analysis/scripts/programs/create_county_map.R, line 66 wet_map <- ggplot() +
–76
ggplot
map
sf + sf Figure 1C
figure_1c_wet_map.png
create_maps.R:73
ICPSR_208062-V1.1/analysis/scripts/programs/create_maps.R, line 73 wet_map <- ggplot() +
–83
ggplot
map
sf + sf Figure C2
figure_c2_continuous_map.png
create_maps.R:88
ICPSR_208062-V1.1/analysis/scripts/programs/create_maps.R, line 88 continuous_map <- ggplot() +
–98