Replication package 155502 · openicpsr · 2024
· open the deposit
How the code gets from data to results
Data and Code for: The Gift of a Lifetime: The Hospital, Modern Medicine, and Mortality
Code for: The Gift of a Lifetime: The Hospital, Modern Medicine, and Mortality American Economic Review 2024
30
scripts
62
input files
47
file hand-offs
249
merges
492
sample steps
366
estimations
1 · Data in — files the code reads and no script of the package writes
Datasets this package uses (item detector / README):
U.S. County-Level Natality and Mortality Data, 1915-2007 (ICPSR 36603), BLS Consumer Price Index (CPI-U/W), CDC/NCHS drug overdose deaths, IPUMS National Historical Geographic Information System (NHGIS)
$PROJ_PATH/analysis/processed/intermediate/nhgis/nhgis_`y'_db.dtaStata2_clean_data.do:92
duke-replication/analysis/scripts/code/2_clean_data.do, line 92 use "$PROJ_PATH/analysis/processed/intermediate/nhgis/nhgis_`y'_db.dta", clear$PROJ_PATH/analysis/raw/nhgis/tables/nhgis0029_ds31_1900_county.dattext1_process_raw_data.do:89
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 89 quietly infix /// str year 1-4 /// str state 5-28 /// str statea 29-31 /// str county 32-88 /// str countya 89-92 /// str areaname 93-158 /// double …$PROJ_PATH/analysis/raw/nhgis/tables/nhgis0029_ds37_1910_county.dattext1_process_raw_data.do:166
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 166 quietly infix /// str year 1-4 /// str state 5-28 /// str statea 29-31 /// str county 32-88 /// str countya 89-92 /// str areaname 93-158 /// double …$PROJ_PATH/analysis/raw/nhgis/tables/nhgis0029_ds43_1920_county.dattext1_process_raw_data.do:222
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 222 quietly infix /// str year 1-4 /// str state 5-28 /// str statea 29-31 /// str county 32-88 /// str countya 89-92 /// str areaname 93-158 /// double …$PROJ_PATH/analysis/raw/nhgis/tables/nhgis0029_ds54_1930_county.dattext1_process_raw_data.do:281
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 281 quietly infix /// str year 1-4 /// str state 5-28 /// str statea 29-31 /// str county 32-88 /// str countya 89-92 /// str areaname 93-158 /// double …$PROJ_PATH/analysis/raw/nhgis/tables/nhgis0029_ds78_1940_county.dattext1_process_raw_data.do:340
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 340 quietly infix /// str year 1-4 /// str state 5-28 /// str statea 29-31 /// str county 32-88 /// str countya 89-92 /// str areaname 93-158 /// double …$PROJ_PATH/analysis/raw/nhgis/tables/nhgis0029_ds84_1950_county.dattext1_process_raw_data.do:396
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 396 quietly infix /// str year 1-4 /// str state 5-28 /// str statea 29-31 /// str county 32-88 /// str countya 89-92 /// str areaname 93-158 /// double …$PROJ_PATH/analysis/raw/nhgis/tables/nhgis0029_ds91_1960_county.dattext1_process_raw_data.do:452
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 452 quietly infix /// str year 1-4 /// str state 5-28 /// str statea 29-31 /// str county 32-88 /// str countya 89-92 /// str areaname 93-158 /// double …
IPUMS microdata (USA / CPS)
5 files
$PROJ_PATH/analysis/raw/ipums/ipums_placenhg_code_list.xlsxExcel3_0_ipums_data_for_geocode_nc_deaths.do:19
duke-replication/analysis/scripts/code/3_0_ipums_data_for_geocode_nc_deaths.do, line 19 import excel using "$PROJ_PATH/analysis/raw/ipums/ipums_placenhg_code_list.xlsx", firstrow case(lower) clear$PROJ_PATH/analysis/raw/ipums/us/usa_00004.dtaStata1_1_process_ipums_data.do:18
duke-replication/analysis/scripts/code/1_1_process_ipums_data.do, line 18 use "$PROJ_PATH/analysis/raw/ipums/us/usa_00004.dta", clear$PROJ_PATH/analysis/raw/ipums/us/usa_00005.dtaStata1_1_process_ipums_data.do:48
duke-replication/analysis/scripts/code/1_1_process_ipums_data.do, line 48 use "$PROJ_PATH/analysis/raw/ipums/us/usa_00005.dta", clear$PROJ_PATH/analysis/raw/ipums/usa_00086.dtaStata4_1_compile_ipums_data.do:17
duke-replication/analysis/scripts/code/4_1_compile_ipums_data.do, line 17 use "$PROJ_PATH/analysis/raw/ipums/usa_00086.dta" if year >= `first_census' & year <= 1940 & statefip == 37, clear$PROJ_PATH/analysis/raw/ipums/usa_00087.dtaStata3_0_ipums_data_for_geocode_nc_deaths.do:24
duke-replication/analysis/scripts/code/3_0_ipums_data_for_geocode_nc_deaths.do, line 24 use statefip countyicp city placenhg using "$PROJ_PATH/analysis/raw/ipums/usa_00087.dta", clear
Other input files
49 files
$PROJ_PATH/analysis/raw/ama/aha_data_all_states.dtaStata · read by 4 scripts2_clean_data.do:502
duke-replication/analysis/scripts/code/2_clean_data.do, line 502 use "$PROJ_PATH/analysis/raw/ama/aha_data_all_states.dta", clear$PROJ_PATH/analysis/raw/gnis/NationalFile_20190301.txttext · read by 2 scripts1_process_raw_data.do:899
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 899 import delim using "$PROJ_PATH/analysis/raw/gnis/NationalFile_20190301.txt", case(lower) delim("|") encoding("utf-8") stringcols(1 10/11) stripq(yes) clear$PROJ_PATH/analysis/raw/icpsr/36603-0001-Data.dtaStata · read by 2 scripts2_clean_data.do:438
duke-replication/analysis/scripts/code/2_clean_data.do, line 438 use "$PROJ_PATH/analysis/raw/icpsr/36603-0001-Data.dta", clearanalysis/output/sr_output_vary_spec.txttext · read by 2 scripts7_combined_spec_chart.R:38
duke-replication/analysis/scripts/code/7_combined_spec_chart.R, line 38 regression_results = fread("analysis/output/sr_output_vary_spec.txt", encoding = 'UTF-8')$PROJ_PATH/analysis/processed/data/nc_deaths/nc_death_certificates_cleaned.dtaStata3_geocode_nc_deaths.do:27
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 27 use "$PROJ_PATH/analysis/processed/data/nc_deaths/nc_death_certificates_cleaned.dta", clear$PROJ_PATH/analysis/processed/temp/ri_all_cty.dtaStata6.09_online_appendix_k_ri.do:164
duke-replication/analysis/scripts/code/6.09_online_appendix_k_ri.do, line 164 use "$PROJ_PATH/analysis/processed/temp/ri_all_cty.dta", clear$PROJ_PATH/analysis/raw/ama/Internships.xlsxExcel1_process_raw_data.do:556
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 556 import excel using "$PROJ_PATH/analysis/raw/ama/Internships.xlsx", sheet("Sheet1") clear$PROJ_PATH/analysis/raw/amd_hospitals/amd_state_and_federal_institutions.xlsxExcel1_process_raw_data.do:570
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 570 import excel using "$PROJ_PATH/analysis/raw/amd_hospitals/amd_state_and_federal_institutions.xlsx", firstrow case(lower) allstring clear
41 more
$PROJ_PATH/analysis/raw/amd_hospitals/Final_`z'-North Carolina.xlsxExcel1_process_raw_data.do:588
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 588 import excel using "$PROJ_PATH/analysis/raw/amd_hospitals/Final_`z'-North Carolina.xlsx", firstrow case(lower) allstring clear$PROJ_PATH/analysis/raw/amd_med_schools/history-medical-schools-1942.xlsxExcel1_process_raw_data.do:863
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 863 import excel "$PROJ_PATH/analysis/raw/amd_med_schools/history-medical-schools-1942.xlsx", sheet("History of Medical Schools") cellrange(A1:Z454) firstrow clear$PROJ_PATH/analysis/raw/amd_med_schools/med_school_college_requirements.xlsxExcel1_process_raw_data.do:859
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 859 import excel "$PROJ_PATH/analysis/raw/amd_med_schools/med_school_college_requirements.xlsx", firstrow clear$PROJ_PATH/analysis/raw/amd_med_schools/med_school_ratings.xlsxExcel1_process_raw_data.do:855
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 855 import excel using "$PROJ_PATH/analysis/raw/amd_med_schools/med_school_ratings.xlsx", sheet("medschoolcode_ratings") cellrange(A1:N182) firstrow clear$PROJ_PATH/analysis/raw/amd_med_schools/medical_schools_list_(1923 AMD).dtaStata1_process_raw_data.do:867
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 867 use school_code foreign using "$PROJ_PATH/analysis/raw/amd_med_schools/medical_schools_list_(1923 AMD).dta", clear$PROJ_PATH/analysis/raw/amd_med_schools/us-medical-schools-alphabetical-1942.xlsxExcel1_process_raw_data.do:851
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 851 import excel "$PROJ_PATH/analysis/raw/amd_med_schools/us-medical-schools-alphabetical-1942.xlsx", sheet("Alphabetical List") cellrange(A1:D802) firstrow clear$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1912.xlsxExcel1_process_raw_data.do:752
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 752 import excel using "$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1912.xlsx", sheet("1912") cellrange(A2:T1854) firstrow case(lower) allstring clear$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1914.xlsxExcel1_process_raw_data.do:762
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 762 import excel using "$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1914.xlsx", sheet("1914") cellrange(A2:W2008) firstrow case(lower) allstring clear$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1918.xlsxExcel1_process_raw_data.do:773
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 773 import excel using "$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1918.xlsx", sheet("1918") cellrange(A2:W2223) firstrow case(lower) allstring clear$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1921.xlsxExcel1_process_raw_data.do:786
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 786 import excel using "$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1921.xlsx", sheet("1921") cellrange(A2:T2262) firstrow case(lower) allstring clear$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1923.xlsxExcel1_process_raw_data.do:791
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 791 import excel using "$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1923.xlsx", sheet("1923") cellrange(A2:V2260) firstrow case(lower) allstring clear$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1925.xlsxExcel1_process_raw_data.do:796
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 796 import excel using "$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1925.xlsx", sheet("1925") cellrange(A2:T2299) firstrow case(lower) allstring clear$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1927.xlsxExcel1_process_raw_data.do:801
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 801 import excel using "$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1927.xlsx", sheet("1927") cellrange(A2:V2367) firstrow case(lower) allstring clear$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1929.xlsxExcel1_process_raw_data.do:806
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 806 import excel using "$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1929.xlsx", sheet("1929") cellrange(A2:U2394) firstrow case(lower) allstring clear$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1931.xlsxExcel1_process_raw_data.do:811
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 811 import excel using "$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1931.xlsx", sheet("1931") cellrange(A2:V2248) firstrow case(lower) allstring clear$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1934.xlsxExcel1_process_raw_data.do:816
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 816 import excel using "$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1934.xlsx", sheet("1934") cellrange(A2:T2502) firstrow case(lower) allstring clear$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1936.xlsxExcel1_process_raw_data.do:821
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 821 import excel using "$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1936.xlsx", sheet("1936") cellrange(A2:V2622) firstrow case(lower) allstring clear$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1938.xlsxExcel1_process_raw_data.do:826
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 826 import excel using "$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1938.xlsx", sheet("1938") cellrange(A2:T2721) firstrow case(lower) allstring clear$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1940.xlsxExcel1_process_raw_data.do:831
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 831 import excel using "$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1940.xlsx", sheet("1940") cellrange(A2:V2801) firstrow case(lower) allstring clear$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1942.xlsxExcel1_process_raw_data.do:838
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 838 import excel using "$PROJ_PATH/analysis/raw/amd_physicians/amd_physicians_nc_1942.xlsx", sheet("1942") cellrange(A2:U2951) firstrow case(lower) allstring clear$PROJ_PATH/analysis/raw/chd/chd_operation_dates.xlsxExcel1_process_raw_data.do:691
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 691 import excel using "$PROJ_PATH/analysis/raw/chd/chd_operation_dates.xlsx", cellrange(A1:F786) firstrow case(lower) clear$PROJ_PATH/analysis/raw/duke/capital_expenditures/Final_CE-1932-1938.xlsxExcel1_process_raw_data.do:648
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 648 import excel using "$PROJ_PATH/analysis/raw/duke/capital_expenditures/Final_CE-1932-1938.xlsx", firstrow case(lower) sheet("Current") clear$PROJ_PATH/analysis/raw/duke/ce_locations_1927_1938.xlsxExcel1_process_raw_data.do:616
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 616 import excel "$PROJ_PATH/analysis/raw/duke/ce_locations_1927_1938.xlsx", sheet("Locations") firstrow clear$PROJ_PATH/analysis/raw/duke/ce_locations_1927_1938_entry_2.xlsxExcel1_process_raw_data.do:624
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 624 import excel "$PROJ_PATH/analysis/raw/duke/ce_locations_1927_1938_entry_2.xlsx", sheet("Locations") firstrow clear$PROJ_PATH/analysis/raw/duke/ce_locations_1939_1962.xlsxExcel1_process_raw_data.do:620
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 620 import excel using "$PROJ_PATH/analysis/raw/duke/ce_locations_1939_1962.xlsx", firstrow case(lower) clear$PROJ_PATH/analysis/raw/duke/inflation_factors.xlsxExcel1_process_raw_data.do:604
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 604 import excel "$PROJ_PATH/analysis/raw/duke/inflation_factors.xlsx", sheet("Sheet1") firstrow clear$PROJ_PATH/analysis/raw/duke/labc_locations_1925_1962.xlsxExcel1_process_raw_data.do:612
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 612 import excel using "$PROJ_PATH/analysis/raw/duke/labc_locations_1925_1962.xlsx", firstrow case(lower) clear$PROJ_PATH/analysis/raw/duke/returns_by_year.xlsxExcel1_process_raw_data.do:608
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 608 import excel "$PROJ_PATH/analysis/raw/duke/returns_by_year.xlsx", sheet("Sheet1") firstrow cellrange(A1:M35) clear$PROJ_PATH/analysis/raw/gnis/stateabb.dtaStata3_geocode_nc_deaths.do:353
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 353 fmerge m:1 stateabb using "$PROJ_PATH/analysis/raw/gnis/stateabb.dta", keep(1 3) nogen keepusing(statefip)$PROJ_PATH/analysis/raw/hospitals/all_hosp.xlsxExcel1_process_raw_data.do:561
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 561 import excel using "$PROJ_PATH/analysis/raw/hospitals/all_hosp.xlsx", sheet("Sheet1") firstrow clear$PROJ_PATH/analysis/raw/hospitals/pollitt-nc-african-american-hospitals.xlsxExcel1_process_raw_data.do:566
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 566 import excel using "$PROJ_PATH/analysis/raw/hospitals/pollitt-nc-african-american-hospitals.xlsx", sheet("African American Hospitals") firstrow case(lower) allstring clear$PROJ_PATH/analysis/raw/icpsr/icpsrcnt.xlsExcel1_process_raw_data.do:38
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 38 import excel using "$PROJ_PATH/analysis/raw/icpsr/icpsrcnt.xls", firstrow case(lower) cellrange(A1:E3261) clear$PROJ_PATH/analysis/raw/nc_deaths/nc_deaths_raw.dtaStata3_geocode_nc_deaths.do:41
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 41 use dpl using "$PROJ_PATH/analysis/raw/nc_deaths/nc_deaths_raw.dta", clear$PROJ_PATH/analysis/raw/nc_vital_stats/infant_maternal_mortality/1918-1922-infant-mortality-rate-only.xlsxExcel1_process_raw_data.do:733
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 733 import excel "$PROJ_PATH/analysis/raw/nc_vital_stats/infant_maternal_mortality/1918-1922-infant-mortality-rate-only.xlsx", firstrow clear$PROJ_PATH/analysis/raw/numident/death/NUMDEATH`n'_PU.txttext1_process_raw_data.do:1168
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 1168 quietly infix /// str refnum 1-11 /// str ssn 13-21 /// str entrycode 27-27 /// int cycleyr 29-32 /// byte cyclemon 33-34 /// str cycleday …$PROJ_PATH/analysis/raw/numident/ferrie_crosswalk.dtaStata2_clean_data.do:6084
duke-replication/analysis/scripts/code/2_clean_data.do, line 6084 merge 1:m feature_id using "$PROJ_PATH/analysis/raw/numident/ferrie_crosswalk.dta", keep(2 3) keepusing(pobcity)$PROJ_PATH/analysis/raw/numident/ss5/NUMSS5`n'_PU.txttext1_process_raw_data.do:1044
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 1044 quietly infix /// str refnum 1-11 /// str interview 12-12 /// str ssn 13-21 /// str citcode 22-22 /// str offcode 23-25 /// str formcode …$PROJ_PATH/analysis/raw/pvf/bdct2140.xlsExcel1_process_raw_data.do:879
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 879 import excel using "$PROJ_PATH/analysis/raw/pvf/bdct2140.xls", sheet("data") cellrange(A1:W19430) firstrow case(lower) clear$PROJ_PATH/analysis/raw/seer/nc_1969_2019_single_ages.txttext1_process_raw_data.do:921
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 921 infix year 1-4 str state 5-6 StateFIPS 7-8 CountyFIPS 9-11 registry 12-13 race 14 origin 15 age 17-18 population 19-27 using "$PROJ_PATH/analysis/raw/seer/nc_1969_2019_single_ages.txt", clearanalysis/output/sr_output_vary_samp.txttext7_sample_chart.R:29
duke-replication/analysis/scripts/code/7_sample_chart.R, line 29 regression_results = fread("analysis/output/sr_output_vary_samp.txt", encoding = 'UTF-8')analysis/raw/cdc-wonder/imr-and-life-expectancy-by-year.xlsxExcel6.07_online_appendix_f_long_run.do:876
duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 876 import excel "analysis/raw/cdc-wonder/imr-and-life-expectancy-by-year.xlsx", /// sheet("Sheet1") cellrange(A1:E19) firstrow clear
Plus 18 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
30 scripts, in data lineage — a script that writes a file comes before the scripts that read it; 47 hand-offs through 91 intermediate files; 9 files written and never read back (outputs). 2 hand-offs run against this order (dashed), so the order is low-confidence: the scripts share a file both ways, or the order is not the one stated.
-
1.
duke-replication/analysis/scripts/code/1_1_process_ipums_data.doreads 2 input files · 3 merges ·writeschildhood_survival.dta→ read by6.11_online_appendix_m_psm.do -
2.
duke-replication/analysis/scripts/code/1_process_raw_data.doreads 46 input files · 4 merges ·writesFinal_AMD_`y'.dta→ read by2_clean_data.dowritesFinal_AMD_`z'.dta→ read by2_clean_data.dowritesFinal_CE-1932-1938_current.dta→ read by2_clean_data.dowritesFinal_CE-1932-1938_outstanding.dta→ read by2_clean_data.dowritesFinal_CE-`y'.dta→ read by2_clean_data.dowritesaha_amd_hospitals_combined.dta→ read by2_clean_data.dowritesama_carolina_hospitals_uncleaned.dta→ read by2_clean_data.dowritesamd_physicians_nc_`year'.dta→ read by2_clean_data.dowritesamd_state_and_federal_institutions.dta→ read by2_clean_data.dowritesbdct2140.dta→ read by4_compile_data.dowritesbirths_by_race_`year'.dta→ read by2_clean_data.dowritesce_locations_1927_1938.dta→ read by2_clean_data.dowritesce_locations_1927_1938_entry_2.dta→ read by2_clean_data.dowriteschd_operation_dates.dta→ read by2_clean_data.dowritesdeath_files.dta→ read by2_clean_data.dowritesds31_1900_county.dta→ read by2_clean_data.dowritesds37_1910_county.dta→ read by2_clean_data.dowritesds43_1920_county.dta→ read by2_clean_data.dowritesds54_1930_county.dta→ read by2_clean_data.dowritesds78_1940_county.dta→ read by2_clean_data.do+20 more files handed onwrites (not read again):`file_name',`file_name*' -
3.
duke-replication/analysis/scripts/code/7_combined_spec_chart.Rreads 1 input file · 2 merges · -
4.
duke-replication/analysis/scripts/code/7_sample_chart.Rreads 2 input files · 1 merge · -
5.
duke-replication/analysis/scripts/code/_placenhg_nhgis_overlay.Rwritesplacenhg_nhgis_xwk_`y'.dta→ read by3_0_ipums_data_for_geocode_nc_deaths.do -
6.
duke-replication/analysis/scripts/code/3_0_ipums_data_for_geocode_nc_deaths.doreads 2 input files · 3 merges ·reads what_placenhg_nhgis_overlay.Rwrotewritesipums_placenhg_codes_1940.dta→ read by3_geocode_nc_deaths.dowritesunincorporated_placenhg_1910_1940.dta→ read by3_geocode_nc_deaths.do -
7.
duke-replication/analysis/scripts/code/2_clean_data.doreads 5 input files · 96 merges ·reads what1_process_raw_data.do,_gnis_nhgis_overlay.Rwrotewritesamd_physicians_with_med_school_quality.dta→ read by4_compile_data.do,6.02_online_appendix_c_doctors.dowritesbirths_pub_by_race_1922_1948.dta→ read by4_compile_data.dowritesbirths_pub_cohorts_by_year.dta→ read by4_compile_data.do,6.10_online_appendix_l_extended_panel.dowritescapital_appropriations_1927_1962.dta→ read by4_compile_data.do,6.04_online_appendix_e_heterogeneity.do,8_intext_stats.dowriteschd_operation_dates_by_county.dta→ read by4_compile_data.do,4_1_compile_ipums_data.dowriteschd_operation_dates_panel.dta→ read by4_compile_data.do,6.10_online_appendix_l_extended_panel.do,6.11_online_appendix_m_psm.dowritesgnis.dta→ read by3_geocode_nc_deaths.do,_gnis_nhgis_overlay.Rwriteshospital-by-year_panel_data.dta→ read by4_compile_data.do,6.10_online_appendix_l_extended_panel.dowritesicpsr_county_year_births.dta→ read by4_compile_data.dowritesimr_mmr_1922_1942.dta→ read by4_compile_data.dowriteslabc_hospital_locations_cleaned.dta→ read by8_intext_stats.dowritesnhgis_1900_1960_counties.dta→ read by4_compile_data.do,6.11_online_appendix_m_psm.do,6.13_online_appendix_j_iv.dowritesnhgis_1920_counties.dta→ read by4_compile_data.dowritesnhgis_icpsr_county_crosswalk.dta→ read by3_geocode_nc_deaths.dowritesnhgis_interpolated_pop_1900-1962.dta→ read by4_compile_data.do,4_1_compile_ipums_data.do,5_figures.do,6.10_online_appendix_l_extended_panel.do,6.11_online_appendix_m_psm.dowritesnumident_carolina_indiv_1920-1942.dta→ read by4_compile_data.dowritesnumident_south_indiv_1920-1942.dta→ read by4_compile_data.dowritesshift_share_pneumonia_mortality_22to26.dta→ read by4_compile_data.do,5_tables.do,6.05_online_appendix_g_other_results.do,6.12_online_appendix_n_summary_stats.dowrites (not read again):financials_1925_1962.dta,locations-unique.dta,locations.dta,share_phys_att_1922_1948.dta -
8.
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.doreads 3 input files · 68 merges ·reads what3_0_ipums_data_for_geocode_nc_deaths.do,2_clean_data.dowrotewritesbcntry_matched.dta→ read by_nc_deaths_merge_matched_results.dowritesbcty_cross_match.dta→ read by_nc_deaths_merge_matched_results.dowritesbirth_death_match.dta→ read by_nc_deaths_merge_matched_results.dowritesbloc_cross_match.dta→ read by_nc_deaths_merge_matched_results.dowritesbstate_cross_match.dta→ read by_nc_deaths_merge_matched_results.dowritesbstate_matched_comma.dta→ read by_nc_deaths_merge_matched_results.dowritesbstate_matched_space.dta→ read by_nc_deaths_merge_matched_results.dowritesbtown_cross_match.dta→ read by_nc_deaths_merge_matched_results.dowritescty_exact_match_comma.dta→ read by_nc_deaths_merge_matched_results.dowritescty_exact_match_space.dta→ read by_nc_deaths_merge_matched_results.dowritesgnis_cross_match.dta→ read by_nc_deaths_merge_matched_results.dowriteslocation_exact_match_comma.dta→ read by_nc_deaths_merge_matched_results.dowriteslocation_exact_match_space.dta→ read by_nc_deaths_merge_matched_results.dowritesnc_death_certificates_cleaned.dta→ read by4_compile_data.dowrites (not read again):_archived_`datetime'_nc_death_certificates_cleaned.dta -
9.
duke-replication/analysis/scripts/code/3_geocode_nc_deaths/_nc_deaths_merge_matched_results.do13 merges ·reads what3_geocode_nc_deaths.dowrote -
10.
duke-replication/analysis/scripts/code/4_compile_data.doreads 1 input file · 54 merges ·reads what1_process_raw_data.do,2_clean_data.do,3_geocode_nc_deaths.dowrotewritesamd_county-by-year_binned_panel.dta→ read by5_figures.do,5_tables.do,6.02_online_appendix_c_doctors.do,6.12_online_appendix_n_summary_stats.dowritesduke_county-year-panel_1925-1962.dta→ read by4_1_compile_ipums_data.do,5_figures.dowritesgompertz_event_study_input_by_race.dta→ read by5_tables.do,6.07_online_appendix_f_long_run.do,6.11_online_appendix_m_psm.do,6.12_online_appendix_n_summary_stats.dowritesgompertz_event_study_input_by_race_nc_sc.dta→ read by6.07_online_appendix_f_long_run.dowritesgompertz_event_study_input_pooled.dta→ read by5_tables.do,6.07_online_appendix_f_long_run.do,6.11_online_appendix_m_psm.do,6.12_online_appendix_n_summary_stats.dowritesgompertz_event_study_input_pooled_nc_sc.dta→ read by6.07_online_appendix_f_long_run.dowriteshospitals_county_level_first_stage_data.dta→ read by5_figures.do,5_tables.do,6.01_online_appendix_b_hospitals.do,6.12_online_appendix_n_summary_stats.do,8_intext_stats.dowritesnc_deaths_event_study_input.dta→ read by5_figures.do,5_tables.do,6.03_online_appendix_d_infant_mortality.do,6.04_online_appendix_e_heterogeneity.do,6.05_online_appendix_g_other_results.do,6.06_online_appendix_j_non_nc.do,6.09_online_appendix_k_ri.do,6.10_online_appendix_l_extended_panel.do+5 morewritessouth_gompertz_event_study_input_by_race.dta→ read by6.07_online_appendix_f_long_run.do,6.11_online_appendix_m_psm.dowritessouth_gompertz_event_study_input_pooled.dta→ read by6.07_online_appendix_f_long_run.do,6.11_online_appendix_m_psm.dowritessouthern_infant_deaths.dta→ read by6.06_online_appendix_j_non_nc.do,6.10_online_appendix_l_extended_panel.do,6.11_online_appendix_m_psm.do,6.13_online_appendix_j_iv.do -
11.
duke-replication/analysis/scripts/code/4_1_compile_ipums_data.doreads 1 input file · 3 merges ·reads what2_clean_data.do,4_compile_data.dowrotewritesipums_doctors_nurses_hospital_staff.dta→ read by6.02_online_appendix_c_doctors.do -
12.
duke-replication/analysis/scripts/code/5_figures.do17 merges · 9 estimationsreads what2_clean_data.do,4_compile_data.dowrotewritesmap_input.dta→ read by5_maps.Rwrites (not read again):`dta_bk' -
13.
duke-replication/analysis/scripts/code/5_maps.R1 merge ·reads what5_figures.dowrote -
14.
duke-replication/analysis/scripts/code/5_tables.do99 estimationsreads what2_clean_data.do,4_compile_data.dowrote -
15.
duke-replication/analysis/scripts/code/6.01_online_appendix_b_hospitals.do3 merges · 6 estimationsreads what4_compile_data.dowrote -
16.
duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do4 merges · 15 estimationsreads what2_clean_data.do,4_compile_data.do,4_1_compile_ipums_data.dowrote -
17.
duke-replication/analysis/scripts/code/6.03_online_appendix_d_infant_mortality.do7 estimationsreads what4_compile_data.dowrote -
18.
duke-replication/analysis/scripts/code/6.04_online_appendix_e_heterogeneity.do1 merge · 3 estimationsreads what1_process_raw_data.do,2_clean_data.do,4_compile_data.dowrote -
19.
duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do1 merge · 50 estimationsreads what2_clean_data.do,4_compile_data.dowrote -
20.
duke-replication/analysis/scripts/code/6.06_online_appendix_j_non_nc.do3 merges · 5 estimationsreads what4_compile_data.dowrote -
21.
duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.doreads 1 input file · 4 merges · 75 estimationsreads what4_compile_data.dowrote -
22.
duke-replication/analysis/scripts/code/6.09_online_appendix_k_ri.doreads 1 input file · 2 merges · 1 estimationreads what4_compile_data.dowrote -
23.
duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.doreads 1 input file · 14 merges · 47 estimationsreads what2_clean_data.do,4_compile_data.dowrote -
24.
duke-replication/analysis/scripts/code/6.11_online_appendix_m_psm.doreads 1 input file · 19 merges · 14 estimationsreads what1_1_process_ipums_data.do,2_clean_data.do,4_compile_data.dowrote -
25.
duke-replication/analysis/scripts/code/6.12_online_appendix_n_summary_stats.do1 merge ·reads what1_process_raw_data.do,2_clean_data.do,4_compile_data.dowrote
5 more scripts
-
26.
duke-replication/analysis/scripts/code/6.13_online_appendix_j_iv.doreads 1 input file · 9 merges · 28 estimationsreads what1_process_raw_data.do,2_clean_data.do,4_compile_data.dowrote -
27.
duke-replication/analysis/scripts/code/8_intext_stats.do3 merges · 6 estimationsreads what1_process_raw_data.do,2_clean_data.do,4_compile_data.dowrote -
28.
duke-replication/analysis/scripts/code/_gnis_nhgis_overlay.Rreads what2_clean_data.dowrotewritesgnis_nhgis_xwk.dta→ read by2_clean_data.do -
29.
duke-replication/analysis/scripts/code/6.08.0_online_appendix_i_es_diagnostics.do1 estimationreads what4_compile_data.do,6.08.1_bacon_decomp.Rwrotewritesbacon_input.dta→ read by6.08.1_bacon_decomp.R -
30.
duke-replication/analysis/scripts/code/6.08.1_bacon_decomp.Rreads what6.08.0_online_appendix_i_es_diagnostics.dowrotewritesbacon_out.dta→ read by6.08.0_online_appendix_i_es_diagnostics.dowrites (not read again):bacon_table.dta
3 · Merges — 249 joins, 34 followed by a check of the merge result; 80 appends
| Joins | How | On keys | Check that follows | Where |
|---|---|---|---|---|
usa_00005 ← hik_in_1920_and_1930 |
merge 1:1 | year histid |
none | 1_1_process_ipums_data.do:59duke-replication/analysis/scripts/code/1_1_process_ipums_data.do, line 59
merge 1:1 year histid using "$PROJ_PATH/analysis/processed/temp/hik_in_1920_and_1930.dta", assert(1 3) nogen |
(data in memory) ← white |
merge 1:1 | stateicp statefip countyicp |
none | 1_1_process_ipums_data.do:151duke-replication/analysis/scripts/code/1_1_process_ipums_data.do, line 151
merge 1:1 stateicp statefip countyicp using `white', nogen |
white ← pooled |
merge 1:1 | stateicp statefip countyicp |
none | 1_1_process_ipums_data.do:152duke-replication/analysis/scripts/code/1_1_process_ipums_data.do, line 152
merge 1:1 stateicp statefip countyicp using `pooled', nogen |
regression_results_pooled ← regression_results_white |
merge | — | none | 7_combined_spec_chart.R:79duke-replication/analysis/scripts/code/7_combined_spec_chart.R, line 79
regression_results = merge(regression_results_pooled, regression_results_white) |
regression_results ← regression_results_black |
merge | — | none | 7_combined_spec_chart.R:80duke-replication/analysis/scripts/code/7_combined_spec_chart.R, line 80
regression_results = merge(regression_results, regression_results_black) |
usa_00087 ← ipums_placenhg_code_list |
merge m:1 | placenhg |
none | 3_0_ipums_data_for_geocode_nc_deaths.do:29duke-replication/analysis/scripts/code/3_0_ipums_data_for_geocode_nc_deaths.do, line 29
fmerge m:1 placenhg using `ipums_placenhg_code_list', assert(2 3) keep(3) nogen |
ipums_placenhg_codes_1940 ← placenhg_nc |
merge m:1 | placenhg |
keep if _merge == 1 |
3_0_ipums_data_for_geocode_nc_deaths.do:67duke-replication/analysis/scripts/code/3_0_ipums_data_for_geocode_nc_deaths.do, line 67
fmerge m:1 placenhg using `placenhg_nc', keepusing(placenhg) |
nhgis_`y'_counties ← icpsr_county_codes_1850-1930 |
merge m:1 | statefip countyicp |
none | 2_clean_data.do:152duke-replication/analysis/scripts/code/2_clean_data.do, line 152
merge m:1 statefip countyicp using "$PROJ_PATH/analysis/processed/data/icpsr/icpsr_county_codes_1850-1930.dta", keepusing(stateicp county_icpsr) keep(1 3) nogen |
nhgis_1960 ← nhgis_1900_1960_counties |
merge m:1 | str_nhgisst str_nhgiscty |
egen state_ever_merge = max(_merge == 3), by(str_nhgisst) |
2_clean_data.do:303duke-replication/analysis/scripts/code/2_clean_data.do, line 303
merge m:1 str_nhgisst str_nhgiscty using "$PROJ_PATH/analysis/processed/data/nhgis/nhgis_1900_1960_counties.dta", assert(1 3) |
(data in memory) ← expanded_nhgis_tables |
merge 1:1 | fips year |
none | 2_clean_data.do:359duke-replication/analysis/scripts/code/2_clean_data.do, line 359
merge 1:1 fips year using `expanded_nhgis_tables', assert(1 3) nogen |
(data in memory) ← crosswalk |
merge m:1 | updated_hosp_id |
none | 2_clean_data.do:1223duke-replication/analysis/scripts/code/2_clean_data.do, line 1223
merge m:1 updated_hosp_id using `crosswalk', keep(1 3) nogen |
(data in memory) ← new_hospitals |
merge m:1 | updated_hosp_id |
replace temp_hosp_id = 20000 + updated_hosp_id if _merge == 3 |
2_clean_data.do:1240duke-replication/analysis/scripts/code/2_clean_data.do, line 1240
merge m:1 updated_hosp_id using `new_hospitals', assert(1 3) |
(data in memory) ← crosswalk |
merge m:1 | updated_hosp_id |
none | 2_clean_data.do:1356duke-replication/analysis/scripts/code/2_clean_data.do, line 1356
merge m:1 updated_hosp_id using `crosswalk', keep(1 3) nogen |
(data in memory) ← new_hospitals |
merge m:1 | updated_hosp_id |
replace temp_hosp_id = 30000 + updated_hosp_id if _merge == 3 |
2_clean_data.do:1373duke-replication/analysis/scripts/code/2_clean_data.do, line 1373
merge m:1 updated_hosp_id using `new_hospitals', assert(1 3) |
returns_by_year ← inflation_factors |
merge m:1 | year |
none | 2_clean_data.do:1514duke-replication/analysis/scripts/code/2_clean_data.do, line 1514
fmerge m:1 year using "$PROJ_PATH/analysis/processed/intermediate/duke/inflation_factors.dta", assert(2 3) keep(3) nogen |
labc_locations_1925_1962 ← hospital_xwalk |
merge m:1 | locstr hospstr |
tab _merge State |
2_clean_data.do:1552duke-replication/analysis/scripts/code/2_clean_data.do, line 1552
fmerge m:1 locstr hospstr using "$PROJ_PATH/analysis/processed/data/crosswalks/hospital_xwalk.dta", keepusing(hosp_id) keep(1 3) |
locations-unique ← locations-unique-by-state |
merge m:1 | State Location |
none | 2_clean_data.do:1623duke-replication/analysis/scripts/code/2_clean_data.do, line 1623
fmerge m:1 State Location using "$PROJ_PATH/analysis/processed/temp/locations-unique-by-state.dta", assert(3) nogen |
locations-unique ← nhgis_1900_1960_counties_carolinas |
merge m:1 | state county_nhgis |
none | 2_clean_data.do:1636duke-replication/analysis/scripts/code/2_clean_data.do, line 1636
fmerge m:1 state county_nhgis using "$PROJ_PATH/analysis/processed/data/nhgis/nhgis_1900_1960_counties_carolinas.dta", verbose assert(2 3) keep(3) nogen |
appropriations_1939_1962 ← locations-unique-by-state |
merge m:1 | State Location |
none | 2_clean_data.do:2270duke-replication/analysis/scripts/code/2_clean_data.do, line 2270
merge m:1 State Location using "$PROJ_PATH/analysis/processed/temp/locations-unique-by-state.dta", keep(1 3) nogen |
appropriations_1939_1962 ← hospital_xwalk |
merge m:1 | locstr hospstr |
tab _merge state |
2_clean_data.do:2301duke-replication/analysis/scripts/code/2_clean_data.do, line 2301
fmerge m:1 locstr hospstr using "$PROJ_PATH/analysis/processed/data/crosswalks/hospital_xwalk.dta", keepusing(hosp_id) keep(1 3) |
appropriations_1939_1962 ← nhgis_1900_1960_counties |
merge m:1 | state county_nhgis |
none | 2_clean_data.do:2347duke-replication/analysis/scripts/code/2_clean_data.do, line 2347
fmerge m:1 state county_nhgis using "$PROJ_PATH/analysis/processed/data/nhgis/nhgis_1900_1960_counties.dta", verbose assert(2 3) keep(3) nogen keepusing(statefip countyicp fips) |
chd_operation_dates ← nhgis_1900_1960_counties |
merge 1:1 | state county_nhgis |
none | 2_clean_data.do:2527duke-replication/analysis/scripts/code/2_clean_data.do, line 2527
fmerge 1:1 state county_nhgis using "$PROJ_PATH/analysis/processed/data/nhgis/nhgis_1900_1960_counties.dta", verbose keepusing(statefip countyicp fips) assert(2 3) nogen |
chd_operation_dates_by_county ← years |
cross (cross) | — | none | 2_clean_data.do:2541duke-replication/analysis/scripts/code/2_clean_data.do, line 2541
cross using `years' |
share_phys_att_`year' ← nhgis_1900_1960_counties |
merge m:1 | state county_nhgis |
none | 2_clean_data.do:2840duke-replication/analysis/scripts/code/2_clean_data.do, line 2840
fmerge m:1 state county_nhgis using "$PROJ_PATH/analysis/processed/data/nhgis/nhgis_1900_1960_counties.dta", verbose keepusing(statefip countyicp fips) assert(2 3) keep(3) nogen |
births_est ← `births_est_1' |
merge 1:1 | statefip countyicp fips year |
none | 2_clean_data.do:2906duke-replication/analysis/scripts/code/2_clean_data.do, line 2906
fmerge 1:1 statefip countyicp fips year using `births_est_1', assert(3) nogen |
births_est ← `births_est_2' |
merge 1:1 | statefip countyicp fips year |
none | 2_clean_data.do:2907duke-replication/analysis/scripts/code/2_clean_data.do, line 2907
fmerge 1:1 statefip countyicp fips year using `births_est_2', assert(3) nogen |
`pneumonia_mort_`y'' ← nhgis_1900_1960_counties |
merge m:1 | state county_nhgis |
none | 2_clean_data.do:2978duke-replication/analysis/scripts/code/2_clean_data.do, line 2978
fmerge m:1 state county_nhgis using "$PROJ_PATH/analysis/processed/data/nhgis/nhgis_1900_1960_counties.dta", verbose keepusing(statefip countyicp fips) assert(2 3) keep(3) nogen |
(data in memory) ← cases_pooled |
merge 1:1 | fips year |
none | 2_clean_data.do:2997duke-replication/analysis/scripts/code/2_clean_data.do, line 2997
fmerge 1:1 fips year using `cases_pooled', assert(3) nogen |
cases_pooled ← nhgis_interpolated_pop_1900-1962 |
merge 1:1 | fips year |
none | 2_clean_data.do:2999duke-replication/analysis/scripts/code/2_clean_data.do, line 2999
fmerge 1:1 fips year using "$PROJ_PATH/analysis/processed/data/nhgis/nhgis_interpolated_pop_1900-1962.dta", assert(2 3) keep(3) nogen keepusing(pop_total pop_black pop_other_race) |
imr_1918_1922 ← nhgis_1900_1960_counties |
merge m:1 | state county_nhgis |
none | 2_clean_data.do:3241duke-replication/analysis/scripts/code/2_clean_data.do, line 3241
fmerge m:1 state county_nhgis using "$PROJ_PATH/analysis/processed/data/nhgis/nhgis_1900_1960_counties.dta", verbose keepusing(statefip countyicp fips) assert(2 3) keep(3) nogen |
ama_carolina_hospitals_uncleaned ← hospital_xwalk |
merge m:1 | locstr hospstr |
tab _merge State |
2_clean_data.do:3282duke-replication/analysis/scripts/code/2_clean_data.do, line 3282
merge m:1 locstr hospstr using "$PROJ_PATH/analysis/processed/data/crosswalks/hospital_xwalk.dta", keepusing(hosp_id) keep(1 3) |
ama_carolina_hospitals_uncleaned ← nhgis_1900_1960_counties_carolinas |
merge m:1 | statefip county_nhgis |
none | 2_clean_data.do:3955duke-replication/analysis/scripts/code/2_clean_data.do, line 3955
merge m:1 statefip county_nhgis using "$PROJ_PATH/analysis/processed/data/nhgis/nhgis_1900_1960_counties_carolinas.dta", assert(2 3) keep(3) nogen |
labc_hospital_locations_cleaned ← duke_cap |
merge m:1 | hosp_id year fips location statefip |
none | 2_clean_data.do:4000duke-replication/analysis/scripts/code/2_clean_data.do, line 4000
merge m:1 hosp_id year fips location statefip using `duke_cap', nogen |
labc_hospital_locations_cleaned ← aha |
merge m:1 | hosp_id year fips location statefip |
replace institution = raw_name if _merge == 1 |
2_clean_data.do:4003duke-replication/analysis/scripts/code/2_clean_data.do, line 4003
merge m:1 hosp_id year fips location statefip using `aha' |
(data in memory) ← clean_amd_hosp |
merge 1:1 | year city institution |
replace std_beds = tot_beds if _merge == 1 |
2_clean_data.do:4303duke-replication/analysis/scripts/code/2_clean_data.do, line 4303
merge 1:1 year city institution using `clean_amd_hosp', assert(1 3) |
amd_input ← updated_hosp_id |
merge m:1 | location institution |
none | 2_clean_data.do:4468duke-replication/analysis/scripts/code/2_clean_data.do, line 4468
merge m:1 location institution using `updated_hosp_id', keep(1 3) nogen |
amd_input ← location_fips_xwk |
merge m:1 | location |
none | 2_clean_data.do:4511duke-replication/analysis/scripts/code/2_clean_data.do, line 4511
merge m:1 location using `location_fips_xwk', keep(1 3) nogen |
new_hosp_id ← hosp_id_fips_xwk |
merge m:1 | hosp_id location |
none | 2_clean_data.do:4534duke-replication/analysis/scripts/code/2_clean_data.do, line 4534
merge m:1 hosp_id location using `hosp_id_fips_xwk', keepusing(statefip fips) keep(1 3) nogen |
(data in memory) ← new_hosp_id |
merge m:1 | institution location |
replace fips = new_fips if _merge == 3 |
2_clean_data.do:4537duke-replication/analysis/scripts/code/2_clean_data.do, line 4537
merge m:1 institution location using `new_hosp_id', keep(1 3) |
ama_carolina_hospitals_1920-1950 ← yearlist |
cross (cross) | — | none | 2_clean_data.do:4625duke-replication/analysis/scripts/code/2_clean_data.do, line 4625
cross using `yearlist' |
ama_carolina_hospitals_1920-1950 ← aa_hosp |
merge m:1 | hosp_id |
replace black_hospital = 1 if _merge == 3 |
2_clean_data.do:4649duke-replication/analysis/scripts/code/2_clean_data.do, line 4649
merge m:1 hosp_id using `aa_hosp', keep(1 3) keepusing(hosp_id) |
ama_carolina_hospitals_1920-1950 ← duke_hospitals |
merge m:1 | hosp_id year |
egen ever_in_ama = max(_merge == 1 | _merge == 3), by(hosp_id) |
2_clean_data.do:4694duke-replication/analysis/scripts/code/2_clean_data.do, line 4694
merge m:1 hosp_id year using `duke_hospitals', keepusing(appropriation app_payments capp_* pay_* duke_institution) |
ama_carolina_hospitals_1920-1950 ← hosp_yearlist |
merge 1:1 | hosp_id year |
none | 2_clean_data.do:4710duke-replication/analysis/scripts/code/2_clean_data.do, line 4710
merge 1:1 hosp_id year using `hosp_yearlist', assert(2 3) nogen |
ama_carolina_hospitals_1920-1950 ← nhgis_interpolated_pop_1900-1962 |
merge m:1 | fips year |
none | 2_clean_data.do:4830duke-replication/analysis/scripts/code/2_clean_data.do, line 4830
merge m:1 fips year using "$PROJ_PATH/analysis/processed/data/nhgis/nhgis_interpolated_pop_1900-1962.dta", keep(1 3) nogen keepusing(pop_total) |
ama_carolina_hospitals_1920-1950 ← icpsr_county_year_births |
merge m:1 | fips year |
none | 2_clean_data.do:4833duke-replication/analysis/scripts/code/2_clean_data.do, line 4833
merge m:1 fips year using "$PROJ_PATH/analysis/processed/data/icpsr/icpsr_county_year_births.dta", keep(1 3) nogen keepusing(births_occ) |
history_medical_schools_1942 ← ama_ratings |
merge m:1 | Code |
none | 2_clean_data.do:5482duke-replication/analysis/scripts/code/2_clean_data.do, line 5482
merge m:1 Code using `ama_ratings', assert(1 3) nogen |
history_medical_schools_1942 ← college_req |
merge m:1 | Code |
none | 2_clean_data.do:5486duke-replication/analysis/scripts/code/2_clean_data.do, line 5486
merge m:1 Code using `college_req', keep(1 3) nogen // _merge == 2 cases are all foreign schools with no requirements |
all_schools ← us_medical_schools_alphabetical_1942 |
join m:m (left) | ms_merge_name |
tab _merge |
2_clean_data.do:5533duke-replication/analysis/scripts/code/2_clean_data.do, line 5533
joinby ms_merge_name using "$PROJ_PATH/analysis/processed/data/amd_med_schools/us_medical_schools_alphabetical_1942.dta", unmatched(master) |
(data in memory) ← all_schools |
join m:m (outer) | MergedIntoName |
tab _merge |
2_clean_data.do:5546duke-replication/analysis/scripts/code/2_clean_data.do, line 5546
joinby MergedIntoName using "`all_schools'", unmatched(both) |
(data in memory) ← all-schools |
merge m:1 | Code |
drop if _merge == 2 |
2_clean_data.do:5583duke-replication/analysis/scripts/code/2_clean_data.do, line 5583
merge m:1 Code using "$PROJ_PATH/analysis/processed/temp/all-schools.dta", keepusing(Code* MergedIntoCode* MergedIntoYear*) |
all_schools ← merged-schools-final-match |
merge 1:1 | Code_i0 |
none | 2_clean_data.do:5641duke-replication/analysis/scripts/code/2_clean_data.do, line 5641
merge 1:1 Code_i0 using "$PROJ_PATH/analysis/processed/temp/merged-schools-final-match.dta", assert(1 3) nogen |
all_schools_cleaned ← all_schools_42 |
merge m:1 | match |
none | 2_clean_data.do:5674duke-replication/analysis/scripts/code/2_clean_data.do, line 5674
merge m:1 match using "`all_schools_42'", keep(1 3) nogen |
amd_physicians_cleaned ← ms_foreign |
merge m:1 | med_school |
none | 2_clean_data.do:5757duke-replication/analysis/scripts/code/2_clean_data.do, line 5757
fmerge m:1 med_school using `ms_foreign', keepusing(foreign) keep(1 3) nogen |
amd_physicians_cleaned ← medical_school_mergers_cleaned |
merge m:1 | med_school |
tab med_school if _merge == 1 |
2_clean_data.do:5761duke-replication/analysis/scripts/code/2_clean_data.do, line 5761
fmerge m:1 med_school using "$PROJ_PATH/analysis/processed/data/amd_med_schools/medical_school_mergers_cleaned.dta", keepusing(approved extinct extinct_yr one_yr_coll two_yr_coll ama_a_level approved_42 extinct_42 extinct_yr_42 one_yr_coll_ … |
amd_physicians_cleaned ← nhgis_1900_1960_counties |
merge m:1 | state county_nhgis |
none | 2_clean_data.do:5909duke-replication/analysis/scripts/code/2_clean_data.do, line 5909
fmerge m:1 state county_nhgis using "$PROJ_PATH/analysis/processed/data/nhgis/nhgis_1900_1960_counties.dta", assert(2 3) keep(3) nogen keepusing(countyicp statefip fips gisjoin) |
(data in memory) ← counties |
merge m:1 | state county |
none | 2_clean_data.do:5917duke-replication/analysis/scripts/code/2_clean_data.do, line 5917
fmerge m:1 state county using `counties', assert(3) nogen |
(data in memory) ← cities |
merge m:1 | fips city |
none | 2_clean_data.do:5953duke-replication/analysis/scripts/code/2_clean_data.do, line 5953
merge m:1 fips city using `cities', assert(3) nogen |
nhgis_1920_counties ← icpsr_county_codes_1850-1930 |
merge 1:1 | statefip countyicp |
tab _merge |
2_clean_data.do:5984duke-replication/analysis/scripts/code/2_clean_data.do, line 5984
fmerge 1:1 statefip countyicp using "$PROJ_PATH/analysis/processed/data/icpsr/icpsr_county_codes_1850-1930.dta", keepusing(stateicp county_icpsr) |
gnis ← gnis_nhgis_xwk |
merge m:1 | feature_id |
none | 2_clean_data.do:6048duke-replication/analysis/scripts/code/2_clean_data.do, line 6048
merge m:1 feature_id using "$PROJ_PATH/analysis/processed/intermediate/gnis/gnis_nhgis_xwk.dta", assert(3) nogen |
nationalfile_20190301 ← ferrie_crosswalk |
merge 1:m | feature_id |
drop if _merge == 2 |
2_clean_data.do:6084duke-replication/analysis/scripts/code/2_clean_data.do, line 6084
merge 1:m feature_id using "$PROJ_PATH/analysis/raw/numident/ferrie_crosswalk.dta", keep(2 3) keepusing(pobcity) |
ss5_files ← numident_gnis_crosswalk |
merge m:1 | state_alpha pobcity |
none | 2_clean_data.do:6119duke-replication/analysis/scripts/code/2_clean_data.do, line 6119
fmerge m:1 state_alpha pobcity using "$PROJ_PATH/analysis/processed/temp/numident_gnis_crosswalk.dta", keep(1 3) nogen |
ss5_files ← stateabb_xwk |
merge m:1 | state_alpha |
none | 2_clean_data.do:6123duke-replication/analysis/scripts/code/2_clean_data.do, line 6123
fmerge m:1 state_alpha using "$PROJ_PATH/analysis/processed/temp/stateabb_xwk.dta", keepusing(state_numeric) keep(1 3) nogen |
(data in memory) ← cwk_ssn_bstate |
merge m:1 | ssn |
none | 2_clean_data.do:6158duke-replication/analysis/scripts/code/2_clean_data.do, line 6158
fmerge m:1 ssn using "$PROJ_PATH/analysis/processed/temp/cwk_ssn_bstate.dta", keep(1 3) keepusing(flag_unique_bstate) nogen |
ss5_files ← death_files |
merge m:1 | ssn |
none | 2_clean_data.do:6197duke-replication/analysis/scripts/code/2_clean_data.do, line 6197
fmerge m:1 ssn using "$PROJ_PATH/analysis/processed/intermediate/numident/death/death_files.dta", keep(1 3) nogen keepusing(sex) |
ss5_files ← death_files |
merge m:1 | ssn |
none | 2_clean_data.do:6235duke-replication/analysis/scripts/code/2_clean_data.do, line 6235
fmerge m:1 ssn using "$PROJ_PATH/analysis/processed/intermediate/numident/death/death_files.dta", keep(1 3) nogen keepusing(yobdth mobdth dobdth) |
ss5_files ← cwk_ssn_bdate |
merge 1:1 | ssn |
none | 2_clean_data.do:6314duke-replication/analysis/scripts/code/2_clean_data.do, line 6314
fmerge 1:1 ssn using "$PROJ_PATH/analysis/processed/temp/cwk_ssn_bdate.dta", keep(3) nogen |
ss5_files ← cwk_ssn_bpl |
merge 1:1 | ssn |
none | 2_clean_data.do:6315duke-replication/analysis/scripts/code/2_clean_data.do, line 6315
fmerge 1:1 ssn using "$PROJ_PATH/analysis/processed/temp/cwk_ssn_bpl.dta", keep(3) nogen |
ss5_files ← cwk_ssn_sex |
merge 1:1 | ssn |
none | 2_clean_data.do:6329duke-replication/analysis/scripts/code/2_clean_data.do, line 6329
fmerge 1:1 ssn using "$PROJ_PATH/analysis/processed/temp/cwk_ssn_sex.dta", keep(3) nogen |
ss5_files ← cwk_ssn_race |
merge 1:1 | ssn |
none | 2_clean_data.do:6330duke-replication/analysis/scripts/code/2_clean_data.do, line 6330
fmerge 1:1 ssn using "$PROJ_PATH/analysis/processed/temp/cwk_ssn_race.dta", keep(3) nogen |
ss5_files ← death_files |
merge 1:1 | ssn |
none | 2_clean_data.do:6331duke-replication/analysis/scripts/code/2_clean_data.do, line 6331
fmerge 1:1 ssn using "$PROJ_PATH/analysis/processed/intermediate/numident/death/death_files.dta", keep(3) nogen keepusing(yod mod dod) |
nc_deaths_raw ← nhgis_icpsr_county_crosswalk |
merge m:1 | state county_nhgis |
replace dd`n' = "" if _merge == 3 & dctyfips == . |
3_geocode_nc_deaths.do:55duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 55
fmerge m:1 state county_nhgis using "$PROJ_PATH/analysis/processed/data/crosswalks/nhgis_icpsr_county_crosswalk.dta", keepusing(fips) keep(1 3) |
nc_deaths_raw ← dp_cleaned |
merge m:1 | dpl |
none | 3_geocode_nc_deaths.do:83duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 83
fmerge m:1 dpl using "$PROJ_PATH/analysis/processed/temp/dp_cleaned.dta", assert(3) nogen |
ipums_placenhg_codes_1940 ← nhgis_icpsr_county_crosswalk |
merge m:1 | statefip countyicp |
none | 3_geocode_nc_deaths.do:112duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 112
fmerge m:1 statefip countyicp using "$PROJ_PATH/analysis/processed/data/crosswalks/nhgis_icpsr_county_crosswalk.dta", keepusing(fips state county_nhgis gisjoin) assert(2 3) keep(3) nogen |
unincorporated_placenhg_1910_1940 ← nhgis_icpsr_county_crosswalk |
merge m:1 | state county_nhgis |
none | 3_geocode_nc_deaths.do:176duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 176
fmerge m:1 state county_nhgis using "$PROJ_PATH/analysis/processed/data/crosswalks/nhgis_icpsr_county_crosswalk.dta", keepusing(state county_nhgis fips) keep(1 3) nogen |
gnis ← towns |
merge m:1 | fips town |
none | 3_geocode_nc_deaths.do:205duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 205
merge m:1 fips town using `towns', keep(3) nogen |
gnis ← nc_locations |
merge 1:1 | location |
none | 3_geocode_nc_deaths.do:211duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 211
fmerge 1:1 location using "$PROJ_PATH/analysis/processed/temp/nc_locations.dta", keep(1) nogen keepusing(location) |
gnis ← nc_towns |
merge m:1 | town |
none | 3_geocode_nc_deaths.do:265duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 265
fmerge m:1 town using "$PROJ_PATH/analysis/processed/temp/nc_towns.dta", keep(1) nogen keepusing(town) |
gnis ← nc_locations |
merge m:1 | location |
none | 3_geocode_nc_deaths.do:268duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 268
fmerge m:1 location using "$PROJ_PATH/analysis/processed/temp/nc_locations.dta", keep(1) nogen keepusing(location) |
bstate_split_input ← stateabb |
merge m:1 | stateabb |
none | 3_geocode_nc_deaths.do:353duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 353
fmerge m:1 stateabb using "$PROJ_PATH/analysis/raw/gnis/stateabb.dta", keep(1 3) nogen keepusing(statefip) |
bstate_split_input ← stateabb |
merge m:1 | stateabb |
none | 3_geocode_nc_deaths.do:394duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 394
fmerge m:1 stateabb using "$PROJ_PATH/analysis/raw/gnis/stateabb.dta", keep(1 3) nogen keepusing(statefip) |
4 · The sample — 492 keep/drop steps, 0 variables winsorized or trimmed
Filters, by kind
time period ×80
- keep if
year == 19201_1_process_ipums_data.do:34
duke-replication/analysis/scripts/code/1_1_process_ipums_data.do, line 34 keep if year == 1920 - keep if
year == 19201_1_process_ipums_data.do:51
duke-replication/analysis/scripts/code/1_1_process_ipums_data.do, line 51 keep if year == 1920 - drop if
year == 19111_process_raw_data.do:562
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 562 drop if year == 1911 - drop if
year > 19622_clean_data.do:356
duke-replication/analysis/scripts/code/2_clean_data.do, line 356 drop if year > 1962 - keep if
race == 0 & year >= 1915 & year <= 19622_clean_data.do:446
duke-replication/analysis/scripts/code/2_clean_data.do, line 446 keep if race == 0 & year >= 1915 & year <= 1962 - drop if
year > min_exp & expired == 12_clean_data.do:1998
duke-replication/analysis/scripts/code/2_clean_data.do, line 1998 drop if year > min_exp & expired == 1 - drop if
yearclosed < 1920 | yearopen > 19422_clean_data.do:4101
duke-replication/analysis/scripts/code/2_clean_data.do, line 4101 drop if yearclosed < 1920 | yearopen > 1942 - drop if
year == 1920 | year == 19252_clean_data.do:4170
duke-replication/analysis/scripts/code/2_clean_data.do, line 4170 drop if year == 1920 | year == 1925 - first 8 of 80
value ranges ×89
- keep if
count == 21_1_process_ipums_data.do:32
duke-replication/analysis/scripts/code/1_1_process_ipums_data.do, line 32 keep if count == 2 - keep if
-order > 07_sample_chart.R:157
duke-replication/analysis/scripts/code/7_sample_chart.R, line 157 geom_text(data = subset(regression_results, -order > 0), aes(x = 2.5, y = -order, label = own_label), size = base_text_size, … - keep if
-order <= 0 & -order >= -527_sample_chart.R:163
duke-replication/analysis/scripts/code/7_sample_chart.R, line 163 geom_text(data = subset(regression_results, -order <= 0 & -order >= -52), aes(x = 2.5, y = -order, label = own_label), size = base_text_size, hjust = 0) + - keep if
-order < -53 & -order != -607_sample_chart.R:169
duke-replication/analysis/scripts/code/7_sample_chart.R, line 169 geom_text(data = subset(regression_results, -order < -53 & -order != -60), aes(x = 2.5, y = -order, label = own_label), size = base_text_size, hjust = 0) + - drop if
tot_1 > 0 & phase == 22_clean_data.do:1195
duke-replication/analysis/scripts/code/2_clean_data.do, line 1195 drop if tot_1 > 0 & phase == 2 - drop if
tot_1 > 02_clean_data.do:1229
duke-replication/analysis/scripts/code/2_clean_data.do, line 1229 drop if tot_1 > 0 - drop if
tot_1 > 0 & phase == 32_clean_data.do:1329
duke-replication/analysis/scripts/code/2_clean_data.do, line 1329 drop if tot_1 > 0 & phase == 3 - drop if
tot_1 > 02_clean_data.do:1362
duke-replication/analysis/scripts/code/2_clean_data.do, line 1362 drop if tot_1 > 0 - first 8 of 89
category values ×52
- keep if
hhtype == 11_1_process_ipums_data.do:21
duke-replication/analysis/scripts/code/1_1_process_ipums_data.do, line 21 keep if hhtype == 1 - keep if
hhtype == 11_1_process_ipums_data.do:54
duke-replication/analysis/scripts/code/1_1_process_ipums_data.do, line 54 keep if hhtype == 1 - drop if
ssn == "ZZZZZZZZZ"1_process_raw_data.do:1144
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 1144 drop if ssn == "ZZZZZZZZZ" - keep if
notes == "sr, poisson, death_rate, Ycounty, Yyear, Ycontrols, Yweights"7_combined_spec_chart.R:91
duke-replication/analysis/scripts/code/7_combined_spec_chart.R, line 91 geom_linerange(data = subset(regression_results, notes == "sr, poisson, death_rate, Ycounty, Yyear, Ycontrols, Yweights"), color = highlight_color, aes(ymin = low, ymax = high)) + - keep if
notes == "sr, poisson, death_rate, Ycounty, Yyear, Ycontrols, Yweights"7_combined_spec_chart.R:95
duke-replication/analysis/scripts/code/7_combined_spec_chart.R, line 95 geom_point(data = subset(regression_results, notes == "sr, poisson, death_rate, Ycounty, Yyear, Ycontrols, Yweights"), color = "white", size = bigger_point_size, shape = 15) + - keep if
notes == "sr, poisson, death_rate, Ycounty, Yyear, Ycontrols, Yweights"7_combined_spec_chart.R:100
duke-replication/analysis/scripts/code/7_combined_spec_chart.R, line 100 geom_point(data = subset(regression_results, notes == "sr, poisson, death_rate, Ycounty, Yyear, Ycontrols, Yweights"), color = highlight_color, size = base_point_size, shape = 15) + - keep if
notes != "sr, poisson, death_rate, Ycounty, Yyear, Ycontrols, Yweights"7_combined_spec_chart.R:126
duke-replication/analysis/scripts/code/7_combined_spec_chart.R, line 126 dot_plot = ggplot(data = subset(regression_results, notes != "sr, poisson, death_rate, Ycounty, Yyear, Ycontrols, Yweights") , aes(y = 1, x = order, fill = as.factor(countyFE))) + - keep if
notes == "sr, poisson, death_rate, Ycounty, Yyear, Ycontrols, Yweights"7_combined_spec_chart.R:131
duke-replication/analysis/scripts/code/7_combined_spec_chart.R, line 131 geom_point(data = subset(regression_results, notes == "sr, poisson, death_rate, Ycounty, Yyear, Ycontrols, Yweights"), color = 'black', size = bigger_dp_size, shape = 15) + - first 8 of 52
indicator subsets ×34
- keep if
keep_hhh == 1 & keep_hh_child_und_1 == 1 | keep_hhh == 1 & keep_hh_child_1_5 == 11_1_process_ipums_data.do:91
duke-replication/analysis/scripts/code/1_1_process_ipums_data.do, line 91 keep if keep_hhh == 1 & keep_hh_child_und_1 == 1 | keep_hhh == 1 & keep_hh_child_1_5 == 1 - keep if
keep_child == 11_1_process_ipums_data.do:98
duke-replication/analysis/scripts/code/1_1_process_ipums_data.do, line 98 keep if keep_child == 1 - drop if
flag_page_id == 11_process_raw_data.do:781
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 781 drop if flag_page_id == 1 - drop if
appropriation == 0 & app_payments == 0 & expired == 02_clean_data.do:2002
duke-replication/analysis/scripts/code/2_clean_data.do, line 2002 drop if appropriation == 0 & app_payments == 0 & expired == 0 - drop if
ever_in_ama == 02_clean_data.do:4699
duke-replication/analysis/scripts/code/2_clean_data.do, line 4699 drop if ever_in_ama == 0 - drop if
not_practicing == 1 | retired == 12_clean_data.do:5736
duke-replication/analysis/scripts/code/2_clean_data.do, line 5736 drop if not_practicing == 1 | retired == 1 - drop if
eclectic == 1 | homeopath == 12_clean_data.do:5741
duke-replication/analysis/scripts/code/2_clean_data.do, line 5741 drop if eclectic == 1 | homeopath == 1 - drop if
flag_repeat == 12_clean_data.do:5746
duke-replication/analysis/scripts/code/2_clean_data.do, line 5746 drop if flag_repeat == 1 - first 8 of 34
geography ×86
- keep if
inlist(statefip,1,5,10,11,12,13,21,22,24,28,37,40,45,47,48,51,54)1_1_process_ipums_data.do:24
duke-replication/analysis/scripts/code/1_1_process_ipums_data.do, line 24 keep if inlist(statefip,1,5,10,11,12,13,21,22,24,28,37,40,45,47,48,51,54) - keep if
inlist(statefip,1,5,10,11,12,13,21,22,24,28,37,40,45,47,48,51,54)1_1_process_ipums_data.do:57
duke-replication/analysis/scripts/code/1_1_process_ipums_data.do, line 57 keep if inlist(statefip,1,5,10,11,12,13,21,22,24,28,37,40,45,47,48,51,54) - keep if
statefip == 371_process_raw_data.do:908
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 908 keep if statefip == 37 - keep if
statefip %in% c(37)_placenhg_nhgis_overlay.R:22
duke-replication/analysis/scripts/code/_placenhg_nhgis_overlay.R, line 22 filter(statefip %in% c(37)) %>% - keep if
statefip %in% c(37)_placenhg_nhgis_overlay.R:35
duke-replication/analysis/scripts/code/_placenhg_nhgis_overlay.R, line 35 filter(statefip %in% c(37)) %>% - keep if
statefip %in% c(37)_placenhg_nhgis_overlay.R:48
duke-replication/analysis/scripts/code/_placenhg_nhgis_overlay.R, line 48 filter(statefip %in% c(37)) %>% - keep if
statefip %in% c(37)_placenhg_nhgis_overlay.R:61
duke-replication/analysis/scripts/code/_placenhg_nhgis_overlay.R, line 61 filter(statefip %in% c(37)) %>% - keep if
state_id %in% c(37)_placenhg_nhgis_overlay.R:75
duke-replication/analysis/scripts/code/_placenhg_nhgis_overlay.R, line 75 filter(state_id %in% c(37)) %>% - first 8 of 86
demographics ×21
- keep if
race == 11_1_process_ipums_data.do:127
duke-replication/analysis/scripts/code/1_1_process_ipums_data.do, line 127 keep if race == 1 - keep if
race == 21_1_process_ipums_data.do:141
duke-replication/analysis/scripts/code/1_1_process_ipums_data.do, line 141 keep if race == 2 - keep if
race == 1 | race == 21_process_raw_data.do:926
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 926 keep if race == 1 | race == 2 - keep if
race == 1 | race == 21_process_raw_data.do:979
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 979 keep if race == 1 | race == 2 - drop if
tot_sex_match > 0 & sex != sex_ss52_clean_data.do:6200
duke-replication/analysis/scripts/code/2_clean_data.do, line 6200 drop if tot_sex_match > 0 & sex != sex_ss5 - keep if
age == 04_compile_data.do:619
duke-replication/analysis/scripts/code/4_compile_data.do, line 619 keep if age == 0 - keep if
race == 1 | race == 24_compile_data.do:1087
duke-replication/analysis/scripts/code/4_compile_data.do, line 1087 keep if race == 1 | race == 2 - keep if
age >= 56 & age <= 644_compile_data.do:1269
duke-replication/analysis/scripts/code/4_compile_data.do, line 1269 keep if age >= 56 & age <= 64 - first 8 of 21
row position (_n, first / last row) ×7
- keep if
order == 12_clean_data.do:459
duke-replication/analysis/scripts/code/2_clean_data.do, line 459 keep if order == 1 - keep if
_n >= (`n' - 1)*50000 + 1 & _n <= (`n' - 1)*50000 + 1 + 499993_geocode_nc_deaths.do:469
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 469 keep if _n >= `bot' & _n <= `top' as we read it (macros filled in / loop expanded): keep if _n >= (`n' - 1)*50000 + 1 & _n <= (`n' - 1)*50000 + 1 + 49999 - keep if
_n >= (`n' - 1)*50000 + 1 & _n <= (`n' - 1)*50000 + 1 + 499993_geocode_nc_deaths.do:977
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 977 keep if _n >= `bot' & _n <= `top' as we read it (macros filled in / loop expanded): keep if _n >= (`n' - 1)*50000 + 1 & _n <= (`n' - 1)*50000 + 1 + 49999 - keep if
_n >= (`n' - 1)*50000 + 1 & _n <= (`n' - 1)*50000 + 1 + 499993_geocode_nc_deaths.do:1075
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 1075 keep if _n >= `bot' & _n <= `top' as we read it (macros filled in / loop expanded): keep if _n >= (`n' - 1)*50000 + 1 & _n <= (`n' - 1)*50000 + 1 + 49999 - keep if
_n >= (`n' - 1)*50000 + 1 & _n <= (`n' - 1)*50000 + 1 + 499993_geocode_nc_deaths.do:1185
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 1185 keep if _n >= `bot' & _n <= `top' as we read it (macros filled in / loop expanded): keep if _n >= (`n' - 1)*50000 + 1 & _n <= (`n' - 1)*50000 + 1 + 49999 - keep if
_n >= (`n' - 1)*50000 + 1 & _n <= (`n' - 1)*50000 + 1 + 499993_geocode_nc_deaths.do:1292
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 1292 keep if _n >= `bot' & _n <= `top' as we read it (macros filled in / loop expanded): keep if _n >= (`n' - 1)*50000 + 1 & _n <= (`n' - 1)*50000 + 1 + 49999 - keep if
_n >= (`n' - 1)*50000 + 1 & _n <= (`n' - 1)*50000 + 1 + 499993_geocode_nc_deaths.do:1449
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 1449 keep if _n >= `bot' & _n <= `top' as we read it (macros filled in / loop expanded): keep if _n >= (`n' - 1)*50000 + 1 & _n <= (`n' - 1)*50000 + 1 + 49999
missing values ×105
- drop if
state == ""1_process_raw_data.do:39
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 39 drop if state == "" - keep if
!missing(state)1_process_raw_data.do:589
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 589 keep if !missing(state) - drop if
missing(imageno) & missing(hospital)1_process_raw_data.do:637
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 637 drop if missing(imageno) & missing(hospital) - drop if
missing(imageno) & missing(location)1_process_raw_data.do:678
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 678 drop if missing(imageno) & missing(location) - drop if
flag_page_id == 1 & missing(name)1_process_raw_data.do:768
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 768 drop if flag_page_id == 1 & missing(name) - drop if
countyicp == .2_clean_data.do:63
duke-replication/analysis/scripts/code/2_clean_data.do, line 63 drop if countyicp == . - drop if
missing(pop_total)2_clean_data.do:306
duke-replication/analysis/scripts/code/2_clean_data.do, line 306 drop if missing(pop_total) - drop if
missing(cofips)2_clean_data.do:444
duke-replication/analysis/scripts/code/2_clean_data.do, line 444 drop if missing(cofips) - first 8 of 105
other conditions ×6
- drop if
regexm(hospital,"^[0-9]+")2_clean_data.do:1804
duke-replication/analysis/scripts/code/2_clean_data.do, line 1804 drop if regexm(hospital,"^[0-9]+") - drop if
regexm(hospital,"^[0-9]+")2_clean_data.do:2047
duke-replication/analysis/scripts/code/2_clean_data.do, line 2047 drop if regexm(hospital,"^[0-9]+") - drop if
regexm(hospital,"^[0-9]+")2_clean_data.do:2129
duke-replication/analysis/scripts/code/2_clean_data.do, line 2129 drop if regexm(hospital,"^[0-9]+") - drop if
regexm(lower(nameofhospital),"psychiatric") | regexm(lower(nameofhospital),"clinic") | regexm(lower(nameofhospital),"sanitarium") | regexm(lower(nameofhospital),"sanatorium") | regexm(lower(nameofhospital),"orthopedic")2_clean_data.do:4104
duke-replication/analysis/scripts/code/2_clean_data.do, line 4104 drop if regexm(lower(nameofhospital),"psychiatric") | regexm(lower(nameofhospital),"clinic") | regexm(lower(nameofhospital),"sanitarium") | regexm(lower(nameofhospital),"sanatorium") | regexm(lower(nameofhospital),"orthopedic") - drop if
regexm(lower(nameofhospital),"branch")2_clean_data.do:4107
duke-replication/analysis/scripts/code/2_clean_data.do, line 4107 drop if regexm(lower(nameofhospital),"branch") - drop if
regexm(location,"CAROLINA")3_geocode_nc_deaths.do:116
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 116 drop if regexm(location,"CAROLINA")
time windows set by a variable — a loop or a computed date, not fixed years (rolling estimation windows, not the sample period) ×4
- drop if
year >= last_census + 102_clean_data.do:374
duke-replication/analysis/scripts/code/2_clean_data.do, line 374 drop if year >= last_census + 10 - drop if
year <= first_census - 102_clean_data.do:375
duke-replication/analysis/scripts/code/2_clean_data.do, line 375 drop if year <= first_census - 10 - drop if
year > last_year2_clean_data.do:4741
duke-replication/analysis/scripts/code/2_clean_data.do, line 4741 drop if year > last_year - keep if
MergedIntoYear_i == max_year_merger2_clean_data.do:5623
duke-replication/analysis/scripts/code/2_clean_data.do, line 5623 keep if MergedIntoYear_i == max_year_merger
drops after a merge (_merge) ×8
- keep if
_merge == 13_0_ipums_data_for_geocode_nc_deaths.do:68
duke-replication/analysis/scripts/code/3_0_ipums_data_for_geocode_nc_deaths.do, line 68 keep if _merge == 1 - keep if
_merge == 32_clean_data.do:311
duke-replication/analysis/scripts/code/2_clean_data.do, line 311 keep if _merge == 3 - drop if
_merge == 22_clean_data.do:5584
duke-replication/analysis/scripts/code/2_clean_data.do, line 5584 drop if _merge == 2 - keep if
_merge == 32_clean_data.do:5987
duke-replication/analysis/scripts/code/2_clean_data.do, line 5987 keep if _merge == 3 - drop if
_merge == 22_clean_data.do:6086
duke-replication/analysis/scripts/code/2_clean_data.do, line 6086 drop if _merge == 2 - drop if
_merge == 14_compile_data.do:1036
duke-replication/analysis/scripts/code/4_compile_data.do, line 1036 drop if _merge == 1 - drop if
_merge == 26.12_online_appendix_n_summary_stats.do:41
duke-replication/analysis/scripts/code/6.12_online_appendix_n_summary_stats.do, line 41 drop if _merge == 2 - keep if
_merge == 38_intext_stats.do:649
duke-replication/analysis/scripts/code/8_intext_stats.do, line 649 keep if _merge == 3
Outliers
No winsorizing or trimming recorded.
Missing values
set to zero ×153
time_treated→06.08.1_bacon_decomp.R:32
duke-replication/analysis/scripts/code/6.08.1_bacon_decomp.R, line 32 mutate(time_treated = replace_na(time_treated, 0))any_non_profit_1927→06.13_online_appendix_j_iv.do:136
duke-replication/analysis/scripts/code/6.13_online_appendix_j_iv.do, line 136 replace any_non_profit_1927 = 0 if missing(any_non_profit_1927)has_beds_1927→06.13_online_appendix_j_iv.do:137
duke-replication/analysis/scripts/code/6.13_online_appendix_j_iv.do, line 137 replace has_beds_1927 = 0 if missing(has_beds_1927)proprietary_1927→06.13_online_appendix_j_iv.do:138
duke-replication/analysis/scripts/code/6.13_online_appendix_j_iv.do, line 138 replace proprietary_1927 = 0 if missing(proprietary_1927)tot_pay_all_adj→06.13_online_appendix_j_iv.do:143
duke-replication/analysis/scripts/code/6.13_online_appendix_j_iv.do, line 143 replace tot_pay_`treat_type'_adj = 0 if missing(tot_pay_`treat_type'_adj) as we read it (macros filled in / loop expanded): replace tot_pay_all_adj = 0 if missing(tot_pay_all_adj)tot_capp_all_adj→06.13_online_appendix_j_iv.do:144
duke-replication/analysis/scripts/code/6.13_online_appendix_j_iv.do, line 144 replace tot_capp_`treat_type'_adj = 0 if missing(tot_capp_`treat_type'_adj) as we read it (macros filled in / loop expanded): replace tot_capp_all_adj = 0 if missing(tot_capp_all_adj)
filled with a value ×125
dctyfips→fips3_geocode_nc_deaths.do:57
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 57 replace dctyfips = fips if _merge == 3 & dctyfips == .bcntry→country3_geocode_nc_deaths.do:294
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 294 replace bcntry = country if country != . & bcntry == .bstate→state3_geocode_nc_deaths.do:346
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 346 replace bstate = state if state != . & (bstate == . | bstate == 99)bstate→statefip3_geocode_nc_deaths.do:355
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 355 replace bstate = statefip if statefip != . & (bstate == . | bstate == 99)bstate→state3_geocode_nc_deaths.do:387
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 387 replace bstate = state if state != . & (bstate == . | bstate == 99)bstate→statefip3_geocode_nc_deaths.do:396
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 396 replace bstate = statefip if statefip != . & (bstate == . | bstate == 99)
interpolated / carried forward ×87
1_process_raw_data.do:766
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 766 carryforward pagename, replace1_process_raw_data.do:767
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 767 carryforward state city pop county, replace1_process_raw_data.do:778
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 778 carryforward pagename, replace1_process_raw_data.do:779
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 779 carryforward state city pop county, replace6.13_online_appendix_j_iv.do:99
duke-replication/analysis/scripts/code/6.13_online_appendix_j_iv.do, line 99 ipolate balance_adj year, gen(balance)6.13_online_appendix_j_iv.do:100
duke-replication/analysis/scripts/code/6.13_online_appendix_j_iv.do, line 100 ipolate dist_to_hosp_adj year, gen(dist)
dropped ×78
1_process_raw_data.do:589
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 589 keep if !missing(state)1_process_raw_data.do:637
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 637 drop if missing(imageno) & missing(hospital)1_process_raw_data.do:678
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 678 drop if missing(imageno) & missing(location)1_process_raw_data.do:768
duke-replication/analysis/scripts/code/1_process_raw_data.do, line 768 drop if flag_page_id == 1 & missing(name)8_intext_stats.do:307
duke-replication/analysis/scripts/code/8_intext_stats.do, line 307 keep if pay_all > 0 & !missing(pay_all)3_geocode_nc_deaths.do:308
duke-replication/analysis/scripts/code/3_geocode_nc_deaths.do, line 308 keep if bcntry != . & bcntry != 99700
common sample across variables (listwise) ×47
8_intext_stats.do:587
duke-replication/analysis/scripts/code/8_intext_stats.do, line 587 unique fips if !missing(`mort'_bk) & `mort'_bk > births_`suffix'_bk & year >= `min_year' & year <= `max_year' as we read it (macros filled in / loop expanded): unique fips if !missing(mort_bk) & mort_bk > births_pub_bk & year >= 1922 & year <= 19428_intext_stats.do:591
duke-replication/analysis/scripts/code/8_intext_stats.do, line 591 unique fips if !missing(`mort'_wt) & `mort'_wt == 0 & year >= `min_year' & year <= `max_year' as we read it (macros filled in / loop expanded): unique fips if !missing(mort_wt) & mort_wt == 0 & year >= 1922 & year <= 19428_intext_stats.do:592
duke-replication/analysis/scripts/code/8_intext_stats.do, line 592 unique fips if !missing(`mort'_bk) & `mort'_bk == 0 & year >= `min_year' & year <= `max_year' as we read it (macros filled in / loop expanded): unique fips if !missing(mort_bk) & mort_bk == 0 & year >= 1922 & year <= 19426.03_online_appendix_d_infant_mortality.do:493
duke-replication/analysis/scripts/code/6.03_online_appendix_d_infant_mortality.do, line 493 levelsof(event_time_bacon) if !missing(`depvar'), matrow(event_time_names) as we read it (macros filled in / loop expanded): levelsof(event_time_bacon) if !missing(imr_pub), matrow(event_time_names)6.03_online_appendix_d_infant_mortality.do:523
duke-replication/analysis/scripts/code/6.03_online_appendix_d_infant_mortality.do, line 523 levelsof(event_time_bacon) if !missing(`y_var') , local(event_time_names_with_ref)6.03_online_appendix_d_infant_mortality.do:554
duke-replication/analysis/scripts/code/6.03_online_appendix_d_infant_mortality.do, line 554 levelsof(event_time_bacon) if event_time_bacon != `ref_event_time' & !missing(`depvar') , matrow(event_time_names_without_ref) as we read it (macros filled in / loop expanded): levelsof(event_time_bacon) if event_time_bacon != r(mean) & !missing(imr_pub) , matrow(event_time_names_without_ref)
5 · Key variables — what enters the models, and where the code builds it
| Variable | Used in models as | Built by |
|---|---|---|
deaths |
outcome in 87 | deaths = deaths_ (rename) 4_compile_data.do:1181duke-replication/analysis/scripts/code/4_compile_data.do, line 1181
rename deaths_ deaths deaths = deaths_ (rename) 4_compile_data.do:1481duke-replication/analysis/scripts/code/4_compile_data.do, line 1481
rename deaths_ deaths deaths = deaths_ (rename) 4_compile_data.do:1980duke-replication/analysis/scripts/code/4_compile_data.do, line 1980
rename deaths_ deaths |
imr_pub |
outcome in 21 | imr_pub = (mort/births_pub)*1000 (gen) 4_compile_data.do:960duke-replication/analysis/scripts/code/4_compile_data.do, line 960
gen imr_pub = (mort/births_pub)*1000 |
ln_imr_pub |
outcome in 16 | ln_imr_pub = log(imr_pub) (gen) 4_compile_data.do:965duke-replication/analysis/scripts/code/4_compile_data.do, line 965
gen ln_imr_pub = log(imr_pub) |
imr_pub_bk |
outcome in 13 | imr_pub_bk = (mort_bk/births_pub_bk)*1000 (gen) 4_compile_data.do:961duke-replication/analysis/scripts/code/4_compile_data.do, line 961
gen imr_pub_bk = (mort_bk/births_pub_bk)*1000 |
tot_pay_all_adj |
outcome in 10, endogenous in 4, regressor in 8 | tot_pay_all_adj = recode(tot_pay_all_adj) (mis = 0) (recode) 4_compile_data.do:828duke-replication/analysis/scripts/code/4_compile_data.do, line 828
recode tot_pay_all_adj (mis = 0) tot_pay_all_adj = 0 (replace) 5_tables.do:735duke-replication/analysis/scripts/code/5_tables.do, line 735
replace tot_pay_all_adj = 0 if missing(tot_pay_all_adj) tot_pay_all_adj = 0 (replace) 6.13_online_appendix_j_iv.do:143duke-replication/analysis/scripts/code/6.13_online_appendix_j_iv.do, line 143
replace tot_pay_`treat_type'_adj = 0 if missing(tot_pay_`treat_type'_adj) +1 more statements set it |
lldr |
outcome in 12 | lldr = (deaths/population)*100000 (gen) 4_compile_data.do:1254duke-replication/analysis/scripts/code/4_compile_data.do, line 1254
gen lldr = (deaths/population)*100000 lldr = (deaths/population)*100000 (gen) 4_compile_data.do:1349duke-replication/analysis/scripts/code/4_compile_data.do, line 1349
gen lldr = (deaths/population)*100000 lldr = (deaths/population)*100000 (gen) 4_compile_data.do:1549duke-replication/analysis/scripts/code/4_compile_data.do, line 1549
gen lldr = (deaths/population)*100000 +5 more statements set it |
i_likely_beds_aha |
outcome in 6 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
i_likely_beds_aha_pc |
outcome in 6 | i_likely_beds_aha_pc = (i_likely_beds_aha/births_pub)*1000 (gen) 4_compile_data.do:246duke-replication/analysis/scripts/code/4_compile_data.do, line 246
gen i_likely_beds_aha_pc = (i_likely_beds_aha/births_pub)*1000 i_likely_beds_aha_pc = (i_likely_beds_aha/births_pub)*1000 (gen) 6.10_online_appendix_l_extended_panel.do:175duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 175
gen i_likely_beds_aha_pc = (i_likely_beds_aha/births_pub)*1000 |
i_prop_beds_aha |
outcome in 6 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
i_prop_beds_aha_pc |
outcome in 6 | i_prop_beds_aha_pc = (i_prop_beds_aha/births_pub)*1000 (gen) 4_compile_data.do:254duke-replication/analysis/scripts/code/4_compile_data.do, line 254
gen i_prop_beds_aha_pc = (i_prop_beds_aha/births_pub)*1000 i_prop_beds_aha_pc = (i_prop_beds_aha/births_pub)*1000 (gen) 6.10_online_appendix_l_extended_panel.do:183duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 183
gen i_prop_beds_aha_pc = (i_prop_beds_aha/births_pub)*1000 |
i_tot_beds_aha |
outcome in 6 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
i_tot_beds_aha_pc |
outcome in 6 | i_tot_beds_aha_pc = (i_tot_beds_aha/births_pub)*1000 (gen) 4_compile_data.do:238duke-replication/analysis/scripts/code/4_compile_data.do, line 238
gen i_tot_beds_aha_pc = (i_tot_beds_aha/births_pub)*1000 i_tot_beds_aha_pc = (i_tot_beds_aha/births_pub)*1000 (gen) 6.10_online_appendix_l_extended_panel.do:167duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 167
gen i_tot_beds_aha_pc = (i_tot_beds_aha/births_pub)*1000 |
imr_pub_ |
outcome in 6 | imr_pub_ = (mort/births_pub)*1000 (gen) 6.10_online_appendix_l_extended_panel.do:838duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 838
gen imr_pub_ = (mort/births_pub)*1000 |
imr_pub_wt |
outcome in 6 | imr_pub_wt = (mort_wt/births_pub_wt)*1000 (gen) 4_compile_data.do:962duke-replication/analysis/scripts/code/4_compile_data.do, line 962
gen imr_pub_wt = (mort_wt/births_pub_wt)*1000 |
tot_hosp_likely |
outcome in 6 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
tot_hosp_likely_pc |
outcome in 6 | tot_hosp_likely_pc = (tot_hosp_likely/births_pub)*1000 (gen) 4_compile_data.do:258duke-replication/analysis/scripts/code/4_compile_data.do, line 258
gen tot_hosp_likely_pc = (tot_hosp_likely/births_pub)*1000 tot_hosp_likely_pc = (tot_hosp_likely/births_pub)*1000 (gen) 6.10_online_appendix_l_extended_panel.do:187duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 187
gen tot_hosp_likely_pc = (tot_hosp_likely/births_pub)*1000 |
tot_hosp_prop |
outcome in 6 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
tot_hosp_prop_pc |
outcome in 6 | tot_hosp_prop_pc = (tot_hosp_prop/births_pub)*1000 (gen) 4_compile_data.do:262duke-replication/analysis/scripts/code/4_compile_data.do, line 262
gen tot_hosp_prop_pc = (tot_hosp_prop/births_pub)*1000 tot_hosp_prop_pc = (tot_hosp_prop/births_pub)*1000 (gen) 6.10_online_appendix_l_extended_panel.do:191duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 191
gen tot_hosp_prop_pc = (tot_hosp_prop/births_pub)*1000 |
tot_hospitals |
outcome in 6 | tot_hospitals = 1 (gen) 4_compile_data.do:157duke-replication/analysis/scripts/code/4_compile_data.do, line 157
gen tot_hospitals = 1 tot_hospitals = 1 (gen) 6.10_online_appendix_l_extended_panel.do:85duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 85
gen tot_hospitals = 1 |
tot_hospitals_pc |
outcome in 6 | tot_hospitals_pc = (tot_hospitals/births_pub)*1000 (gen) 4_compile_data.do:266duke-replication/analysis/scripts/code/4_compile_data.do, line 266
gen tot_hospitals_pc = (tot_hospitals/births_pub)*1000 tot_hospitals_pc = (tot_hospitals/births_pub)*1000 (gen) 6.10_online_appendix_l_extended_panel.do:195duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 195
gen tot_hospitals_pc = (tot_hospitals/births_pub)*1000 |
tot_capp_all_adj |
outcome in 2, endogenous in 4, regressor in 14 | tot_capp_all_adj = recode(tot_capp_all_adj) (mis = 0) (recode) 4_compile_data.do:826duke-replication/analysis/scripts/code/4_compile_data.do, line 826
recode tot_capp_all_adj (mis = 0) tot_capp_all_adj = 0 (replace) 5_tables.do:736duke-replication/analysis/scripts/code/5_tables.do, line 736
replace tot_capp_all_adj = 0 if missing(tot_capp_all_adj) tot_capp_all_adj = 0 (replace) 6.13_online_appendix_j_iv.do:144duke-replication/analysis/scripts/code/6.13_online_appendix_j_iv.do, line 144
replace tot_capp_`treat_type'_adj = 0 if missing(tot_capp_`treat_type'_adj) +1 more statements set it |
imr_combined |
outcome in 4 | imr_combined = (mort_combined/births_combined)*1000 (gen) 6.10_online_appendix_l_extended_panel.do:897duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 897
gen imr_combined = (mort_combined/births_combined)*1000 imr_combined = (mort_combined/births_combined)*1000 (gen) 6.10_online_appendix_l_extended_panel.do:1160duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 1160
gen imr_combined = (mort_combined/births_combined)*1000 |
births_pub |
outcome in 3, regressor in 2 | births_pub = cbir (rename) 4_compile_data.do:878duke-replication/analysis/scripts/code/4_compile_data.do, line 878
rename cbir births_pub births_pub = birth_pub_22 (replace) 4_compile_data.do:307duke-replication/analysis/scripts/code/4_compile_data.do, line 307
replace births_pub = birth_pub_22 if missing(births_pub) & year == 1921 |
births_pub_ |
outcome in 3 | births_pub_ = births_pub (rename) 6.10_online_appendix_l_extended_panel.do:840duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 840
rename births_pub births_pub_ |
births_pub_bk |
outcome in 3 | births_pub_bk = cbirb (rename) 4_compile_data.do:879duke-replication/analysis/scripts/code/4_compile_data.do, line 879
rename cbirb births_pub_bk births_pub_bk = birth_pub_bk_22 (replace) 4_compile_data.do:309duke-replication/analysis/scripts/code/4_compile_data.do, line 309
replace births_pub_bk = birth_pub_bk_22 if missing(births_pub_bk) & year == 1921 |
births_pub_wt |
outcome in 3 | births_pub_wt = cbirw (rename) 4_compile_data.do:880duke-replication/analysis/scripts/code/4_compile_data.do, line 880
rename cbirw births_pub_wt births_pub_wt = birth_pub_wt_22 (replace) 4_compile_data.do:308duke-replication/analysis/scripts/code/4_compile_data.do, line 308
replace births_pub_wt = birth_pub_wt_22 if missing(births_pub_wt) & year == 1921 |
ln_imr_pub_bk |
outcome in 3 | ln_imr_pub_bk = log(imr_pub_bk) (gen) 4_compile_data.do:966duke-replication/analysis/scripts/code/4_compile_data.do, line 966
gen ln_imr_pub_bk = log(imr_pub_bk) |
maternal_deaths |
outcome in 3 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
maternal_deaths_res |
outcome in 3 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
md |
outcome in 3 | md = 1 (gen) 4_compile_data.do:440duke-replication/analysis/scripts/code/4_compile_data.do, line 440
gen md = 1 md = (occ1950 == 75) (gen) 4_1_compile_ipums_data.do:22duke-replication/analysis/scripts/code/4_1_compile_ipums_data.do, line 22
gen md = (occ1950 == 75) |
md_bad_2yr |
outcome in 3 | md_bad_2yr = max( (missing(two_yr_coll) | !missing(grad_year)*!missing(two_yr_coll)*(grad_year <= two_yr_coll + 4))*(md_good_2yr != 1) ) (egen max) 2_clean_data.do:5828duke-replication/analysis/scripts/code/2_clean_data.do, line 5828
egen md_bad_2yr = max( (missing(two_yr_coll) | !missing(grad_year)*!missing(two_yr_coll)*(grad_year <= two_yr_coll + 4))*(md_good_2yr != 1) ), by(md_id) md_bad_2yr = . (replace) 2_clean_data.do:5837duke-replication/analysis/scripts/code/2_clean_data.do, line 5837
replace md_bad_2yr = . if grad_always_missing == 1 |
md_good_2yr |
outcome in 3 | md_good_2yr = max((grad_year > two_yr_coll + 4)*!missing(two_yr_coll)*!missing(grad_year)) (egen max) 2_clean_data.do:5827duke-replication/analysis/scripts/code/2_clean_data.do, line 5827
egen md_good_2yr = max((grad_year > two_yr_coll + 4)*!missing(two_yr_coll)*!missing(grad_year)), by(md_id) md_good_2yr = . (replace) 2_clean_data.do:5836duke-replication/analysis/scripts/code/2_clean_data.do, line 5836
replace md_good_2yr = . if grad_always_missing == 1 |
mmr |
outcome in 3 | mmr = maternal_deaths*1000/pop_fem (gen) 6.05_online_appendix_g_other_results.do:296duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 296
gen mmr = maternal_deaths*1000/pop_fem mmr = "" (replace) 2_clean_data.do:3078duke-replication/analysis/scripts/code/2_clean_data.do, line 3078
replace mmr = "" if mmr == "__________" mmr = "" (replace) 2_clean_data.do:3155duke-replication/analysis/scripts/code/2_clean_data.do, line 3155
replace mmr = "" if mmr == "__________" +1 more statements set it |
mmr_res |
outcome in 3 | mmr_res = maternal_deaths_res*1000/pop_fem (gen) 6.05_online_appendix_g_other_results.do:297duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 297
gen mmr_res = maternal_deaths_res*1000/pop_fem |
rmd |
outcome in 3 | rmd = (md/births_pub)*1000 (gen) 4_compile_data.do:527duke-replication/analysis/scripts/code/4_compile_data.do, line 527
gen rmd = (md/births_pub)*1000 rmd = (md/births_pub)*1000 (gen) 6.02_online_appendix_c_doctors.do:93duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 93
gen rmd = (md/births_pub)*1000 rmd = (md/births_pub)*1000 (gen) 6.02_online_appendix_c_doctors.do:348duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 348
gen rmd = (md/births_pub)*1000 +1 more statements set it |
rmd_bad_2yr |
outcome in 3 | rmd_bad_2yr = rmd_bad_`qual'`race_suf'/yb_size (replace) 5_figures.do:936duke-replication/analysis/scripts/code/5_figures.do, line 936
replace rmd_bad_`qual'`race_suf' = rmd_bad_`qual'`race_suf'/yb_size |
rmd_good_2yr |
outcome in 3 | rmd_good_2yr = rmd_good_`qual'`race_suf'/yb_size (replace) 5_figures.do:931duke-replication/analysis/scripts/code/5_figures.do, line 931
replace rmd_good_`qual'`race_suf' = rmd_good_`qual'`race_suf'/yb_size |
tfr |
outcome in 3 | tfr = births_pub*1000/pop_fem (gen) 6.05_online_appendix_g_other_results.do:390duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 390
gen tfr = births_pub*1000/pop_fem |
tfr_ |
outcome in 3 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
tfr_bk |
outcome in 3 | tfr_bk = births_pub_bk*1000/pop_fem_bk (gen) 6.05_online_appendix_g_other_results.do:396duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 396
gen tfr_bk = births_pub_bk*1000/pop_fem_bk |
6 · Models, by the table or figure they feed — 366 estimations, 309 traced into 26 exhibits
Table 1
· 36 estimations → table_1_county_level_hospitals.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
i_tot_beds_aha |
b0.treated
|
fips, year | cluster: fips | 5_tables.do:56duke-replication/analysis/scripts/code/5_tables.do, line 56
eststo c_c_1 :reghdfe `depvar' b0.treated, absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo c_c_1 :reghdfe i_tot_beds_aha b0.treated, absorb(fips year) vce(cluster fips) written at 5_tables.do:254 |
reghdfepanel fe |
i_tot_beds_aha |
b0.treated
|
fips, year | cluster: fips | 5_tables.do:60duke-replication/analysis/scripts/code/5_tables.do, line 60
eststo c_c_2 :reghdfe `depvar' b0.treated [aw = births_pub], absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo c_c_2 :reghdfe i_tot_beds_aha b0.treated [aw = births_pub], absorb(fips year) vce(cluster fips) written at 5_tables.do:254 |
reghdfepanel fe |
i_tot_beds_aha |
b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 5_tables.do:64duke-replication/analysis/scripts/code/5_tables.do, line 64
eststo c_c_3 :reghdfe `depvar' b0.treated `baseline_controls' [aw = births_pub], absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo c_c_3 :reghdfe i_tot_beds_aha b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [aw = births_pub], absorb(fips year) vce(cluster fips) written at 5_tables.do:254 |
reghdfepanel fe |
i_tot_beds_aha_pc |
b0.treated
|
fips, year | cluster: fips | 5_tables.do:70duke-replication/analysis/scripts/code/5_tables.do, line 70
eststo c_r_1 :reghdfe `depvar'_pc b0.treated, absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo c_r_1 :reghdfe i_tot_beds_aha_pc b0.treated, absorb(fips year) vce(cluster fips) written at 5_tables.do:254 |
reghdfepanel fe |
i_tot_beds_aha_pc |
b0.treated
|
fips, year | cluster: fips | 5_tables.do:74duke-replication/analysis/scripts/code/5_tables.do, line 74
eststo c_r_2 :reghdfe `depvar'_pc b0.treated [aw = births_pub], absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo c_r_2 :reghdfe i_tot_beds_aha_pc b0.treated [aw = births_pub], absorb(fips year) vce(cluster fips) written at 5_tables.do:254 |
first 5 of 36
Table 2
· 36 estimations → table_2_county_level_doctors_2yr_as_quality.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
md |
b0.treated
|
fips, amd_wave | cluster: fips | 5_tables.do:323duke-replication/analysis/scripts/code/5_tables.do, line 323
eststo c_c_1 :reghdfe `depvar' b0.treated, absorb(fips amd_wave) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo c_c_1 :reghdfe md b0.treated, absorb(fips amd_wave) vce(cluster fips) written at 5_tables.do:516 |
reghdfepanel fe |
md |
b0.treated
|
fips, amd_wave | cluster: fips | 5_tables.do:327duke-replication/analysis/scripts/code/5_tables.do, line 327
eststo c_c_2 :reghdfe `depvar' b0.treated [aw = births_pub], absorb(fips amd_wave) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo c_c_2 :reghdfe md b0.treated [aw = births_pub], absorb(fips amd_wave) vce(cluster fips) written at 5_tables.do:516 |
reghdfepanel fe |
md |
b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, amd_wave | cluster: fips | 5_tables.do:331duke-replication/analysis/scripts/code/5_tables.do, line 331
eststo c_c_3 :reghdfe `depvar' b0.treated `baseline_controls' [aw = births_pub], absorb(fips amd_wave) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo c_c_3 :reghdfe md b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [aw = births_pub], absorb(fips amd_wave) vce(cluster fips) written at 5_tables.do:516 |
reghdfepanel fe |
rmd |
b0.treated
|
fips, amd_wave | cluster: fips | 5_tables.do:337duke-replication/analysis/scripts/code/5_tables.do, line 337
eststo c_r_1 :reghdfe r`depvar' b0.treated, absorb(fips amd_wave) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo c_r_1 :reghdfe rmd b0.treated, absorb(fips amd_wave) vce(cluster fips) written at 5_tables.do:516 |
reghdfepanel fe |
rmd |
b0.treated
|
fips, amd_wave | cluster: fips | 5_tables.do:341duke-replication/analysis/scripts/code/5_tables.do, line 341
eststo c_r_2 :reghdfe r`depvar' b0.treated [aw = births_pub], absorb(fips amd_wave) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo c_r_2 :reghdfe rmd b0.treated [aw = births_pub], absorb(fips amd_wave) vce(cluster fips) written at 5_tables.do:516 |
first 5 of 36
Table 4
· 12 estimations → table_4_infant_mortality_poisson_intensive.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
ppmlhdfecount |
imr_pub |
tot_capp_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 5_tables.do:742duke-replication/analysis/scripts/code/5_tables.do, line 742
eststo pl_c1: ppmlhdfe imr_pub tot_capp_all_adj `baseline_controls' [pw = births_pub], ///
absorb(fips year ) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo pl_c1: ppmlhdfe imr_pub tot_capp_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = births_pub], absorb(fips year ) vce(cluster fips) written at 5_tables.do:766 |
ppmlhdfecount |
imr_pub |
tot_pay_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 5_tables.do:747duke-replication/analysis/scripts/code/5_tables.do, line 747
eststo pl_c2: ppmlhdfe imr_pub tot_pay_all_adj `baseline_controls' [pw = births_pub], ///
absorb(fips year ) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo pl_c2: ppmlhdfe imr_pub tot_pay_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = births_pub], absorb(fips year ) vce(cluster fips) written at 5_tables.do:766 |
reghdfepanel fe |
tot_pay_all_adj |
tot_capp_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 5_tables.do:752duke-replication/analysis/scripts/code/5_tables.do, line 752
eststo pl_c3: reghdfe tot_pay_all_adj tot_capp_all_adj `baseline_controls' [pw = births_pub], absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo pl_c3: reghdfe tot_pay_all_adj tot_capp_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = births_pub], absorb(fips year) vce(cluster fips) written at 5_tables.do:766 |
ppmlhdfecount |
imr_pub_ |
tot_capp_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 5_tables.do:811duke-replication/analysis/scripts/code/5_tables.do, line 811
eststo bk_c1: ppmlhdfe imr_pub_ tot_capp_all_adj `baseline_controls' [pw = births_pub_] if race == 2, ///
absorb(fips year ) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo bk_c1: ppmlhdfe imr_pub_ tot_capp_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = births_pub_] if race == 2, absorb(fips year ) vce(cluster fips) written at 5_tables.do:825 |
ppmlhdfecount |
imr_pub_ |
tot_pay_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 5_tables.do:816duke-replication/analysis/scripts/code/5_tables.do, line 816
eststo bk_c2: ppmlhdfe imr_pub_ tot_pay_all_adj `baseline_controls' [pw = births_pub_] if race == 2, ///
absorb(fips year ) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo bk_c2: ppmlhdfe imr_pub_ tot_pay_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = births_pub_] if race == 2, absorb(fips year ) vce(cluster fips) written at 5_tables.do:825 |
first 5 of 12
Table 5
· 3 estimations → table_5_continuous_sulfa_interaction.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
ppmlhdfecount |
imr_pub |
treated_post_shift_share treated treated_post_sulfa treated_shift_share post_sulfa_shift_share percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 5_tables.do:940duke-replication/analysis/scripts/code/5_tables.do, line 940
ppmlhdfe imr_pub ///
treated_post_shift_share ///
treated ///
treated_post_sulfa treated_shift_share post_sulfa_shift_share ///
`baseline_controls' [pw = births_pub], ///
absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
ppmlhdfe imr_pub treated_post_shift_share treated treated_post_sulfa treated_shift_share post_sulfa_shift_share percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = births_pub], absorb(fips … written at 5_tables.do:1066 |
ppmlhdfecount |
imr_pub_bk |
treated_post_shift_share treated treated_post_sulfa treated_shift_share post_sulfa_shift_share percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 5_tables.do:985duke-replication/analysis/scripts/code/5_tables.do, line 985
ppmlhdfe imr_pub_bk ///
treated_post_shift_share ///
treated ///
treated_post_sulfa treated_shift_share post_sulfa_shift_share ///
`baseline_controls' if ever_zero_births == 0 [pw = births_pub_bk], ///
absorb(fips year …
as we read it (macros filled in / loop expanded):
ppmlhdfe imr_pub_bk treated_post_shift_share treated treated_post_sulfa treated_shift_share post_sulfa_shift_share percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence if ever_zero_births == 0 [p … written at 5_tables.do:1066 |
ppmlhdfecount |
imr_pub_wt |
treated_post_shift_share treated treated_post_sulfa treated_shift_share post_sulfa_shift_share percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 5_tables.do:1025duke-replication/analysis/scripts/code/5_tables.do, line 1025
ppmlhdfe imr_pub_wt ///
treated_post_shift_share ///
treated ///
treated_post_sulfa treated_shift_share post_sulfa_shift_share ///
`baseline_controls' [pw = births_pub_wt], ///
absorb(fips year ) vce(cluster fips)
as we read it (macros filled in / loop expanded):
ppmlhdfe imr_pub_wt treated_post_shift_share treated treated_post_sulfa treated_shift_share post_sulfa_shift_share percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = births_pub_wt], absor … written at 5_tables.do:1066 |
Table 6
· 12 estimations → table_6_long_run_mortality_poisson.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
ppmlhdfecount |
deaths |
b0.treated
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 5_tables.do:1118duke-replication/analysis/scripts/code/5_tables.do, line 1118
eststo p1_c1: ppmlhdfe deaths b0.treated, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c1: ppmlhdfe deaths b0.treated, absorb("i.age##i.fips i.age##i.year") vce(cluster fips) written at 5_tables.do:1194 |
ppmlhdfecount |
deaths |
b0.treated
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 5_tables.do:1122duke-replication/analysis/scripts/code/5_tables.do, line 1122
eststo p1_c2: ppmlhdfe deaths b0.treated [pw = births_pub], absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c2: ppmlhdfe deaths b0.treated [pw = births_pub], absorb("i.age##i.fips i.age##i.year") vce(cluster fips) written at 5_tables.do:1194 |
ppmlhdfecount |
deaths |
b0.treated
|
"i.age##i.fips, i.age##i.year, i.age##c.percent_illit, i.age##c.percent_black, i.age##c.percent_other_race, i.age##c.percent_urban, i.age##c.retail_sales_per_capita, i.age##i.chd_presence" | cluster: fips | 5_tables.do:1126duke-replication/analysis/scripts/code/5_tables.do, line 1126
eststo p1_c3: ppmlhdfe deaths b0.treated [pw = births_pub], absorb("`fixed_effects' `int_baseline_controls'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c3: ppmlhdfe deaths b0.treated [pw = births_pub], absorb("i.age##i.fips i.age##i.year i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_p … written at 5_tables.do:1194 |
ppmlhdfecount |
deaths |
b0.treated
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 5_tables.do:1141duke-replication/analysis/scripts/code/5_tables.do, line 1141
eststo p2_c1: ppmlhdfe deaths b0.treated if ever_zero_births == 0 & race == 2, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p2_c1: ppmlhdfe deaths b0.treated if ever_zero_births == 0 & race == 2, absorb("i.age##i.fips i.age##i.year") vce(cluster fips) written at 5_tables.do:1203 |
ppmlhdfecount |
deaths |
b0.treated
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 5_tables.do:1145duke-replication/analysis/scripts/code/5_tables.do, line 1145
eststo p2_c2: ppmlhdfe deaths b0.treated [pw = births_pub] if ever_zero_births == 0 & race == 2, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p2_c2: ppmlhdfe deaths b0.treated [pw = births_pub] if ever_zero_births == 0 & race == 2, absorb("i.age##i.fips i.age##i.year") vce(cluster fips) written at 5_tables.do:1203 |
first 5 of 12
Table B1
· 2 estimations → table_b1_county_level_hospitals_robustness.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
`depvar'_pc |
1.treated
|
fips, year | cluster: fips | 6.01_online_appendix_b_hospitals.do:119duke-replication/analysis/scripts/code/6.01_online_appendix_b_hospitals.do, line 119
eststo p1_c1`suffix': reghdfe `depvar_new' 1.treated [aw = `weightvar'], absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c1`suffix': reghdfe `depvar'_pc 1.treated [aw = births_pub], absorb(fips year) vce(cluster fips) written at 6.01_online_appendix_b_hospitals.do:174 |
reghdfepanel fe |
`depvar'_pc |
1.treated
|
fips##stackID, year##stackID | cluster: fips | 6.01_online_appendix_b_hospitals.do:159duke-replication/analysis/scripts/code/6.01_online_appendix_b_hospitals.do, line 159
eststo p1_c2`suffix': reghdfe `depvar_new' 1.treated [aw = `weightvar'], absorb(fips##stackID year##stackID) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c2`suffix': reghdfe `depvar'_pc 1.treated [aw = births_pub], absorb(fips##stackID year##stackID) vce(cluster fips) written at 6.01_online_appendix_b_hospitals.do:174 |
Table C1
· 2 estimations → table_c1_county_level_doctors_robustness.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
r`depvar' |
1.treated
|
fips, amd_wave | cluster: fips | 6.02_online_appendix_c_doctors.do:178duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 178
eststo p1_c1`suffix'`suffix3': reghdfe `depvar_new' 1.treated [aw = `weightvar'], absorb(fips amd_wave) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c1`suffix'bad: reghdfe r`depvar' 1.treated [aw = births_pub_bk], absorb(fips amd_wave) vce(cluster fips) written at 6.02_online_appendix_c_doctors.do:236 |
reghdfepanel fe |
r`depvar' |
1.treated
|
fips##stackID, amd_wave##stackID | cluster: fips | 6.02_online_appendix_c_doctors.do:221duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 221
eststo p1_c2`suffix'`suffix3': reghdfe `depvar_new' 1.treated [aw = `weightvar'], absorb(fips##stackID amd_wave##stackID) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c2`suffix'bad: reghdfe r`depvar' 1.treated [aw = births_pub_bk], absorb(fips##stackID amd_wave##stackID) vce(cluster fips) written at 6.02_online_appendix_c_doctors.do:236 |
Table C3
· 1 estimation → table_c3_county_level_doctors_alt_qual_low.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
r`depvar' |
1.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, amd_wave | cluster: fips | 6.02_online_appendix_c_doctors.do:394duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 394
eststo p_`race'_`suffix'_`qual'_`suffix3': reghdfe `depvar_new' 1.treated `baseline_controls' [aw = `weightvar'], absorb(fips amd_wave) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p_`race'_`suffix'_`qual'_bad: reghdfe r`depvar' 1.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [aw = births_pub_bk], absorb(fips amd_wave) vce(cluster fips) written at 6.02_online_appendix_c_doctors.do:492 |
Table C4
· 6 estimations → table_c4_county_level_doctors_other_metrics.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
sum_`depvar' |
b0.treated
|
fips, amd_wave | cluster: fips | 6.02_online_appendix_c_doctors.do:649duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 649
eststo p`i'_c1 :reghdfe `stat'_`depvar' b0.treated, absorb(fips amd_wave) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c1 :reghdfe sum_`depvar' b0.treated, absorb(fips amd_wave) vce(cluster fips) written at 6.02_online_appendix_c_doctors.do:684 |
reghdfepanel fe |
sum_`depvar' |
b0.treated
|
fips, amd_wave | cluster: fips | 6.02_online_appendix_c_doctors.do:653duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 653
eststo p`i'_c2 :reghdfe `stat'_`depvar' b0.treated [aw = births_pub], absorb(fips amd_wave) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c2 :reghdfe sum_`depvar' b0.treated [aw = births_pub], absorb(fips amd_wave) vce(cluster fips) written at 6.02_online_appendix_c_doctors.do:684 |
reghdfepanel fe |
sum_`depvar' |
b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, amd_wave | cluster: fips | 6.02_online_appendix_c_doctors.do:657duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 657
eststo p`i'_c3 :reghdfe `stat'_`depvar' b0.treated `baseline_controls' [aw = births_pub], absorb(fips amd_wave) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c3 :reghdfe sum_`depvar' b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [aw = births_pub], absorb(fips amd_wave) vce(cluster fips) written at 6.02_online_appendix_c_doctors.do:684 |
reghdfepanel fe |
sum_`depvar'_pc |
b0.treated
|
fips, amd_wave | cluster: fips | 6.02_online_appendix_c_doctors.do:661duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 661
eststo p`i'_c4 :reghdfe `stat'_`depvar'_pc b0.treated, absorb(fips amd_wave) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c4 :reghdfe sum_`depvar'_pc b0.treated, absorb(fips amd_wave) vce(cluster fips) written at 6.02_online_appendix_c_doctors.do:684 |
reghdfepanel fe |
sum_`depvar'_pc |
b0.treated
|
fips, amd_wave | cluster: fips | 6.02_online_appendix_c_doctors.do:665duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 665
eststo p`i'_c5 :reghdfe `stat'_`depvar'_pc b0.treated [aw = births_pub], absorb(fips amd_wave) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c5 :reghdfe sum_`depvar'_pc b0.treated [aw = births_pub], absorb(fips amd_wave) vce(cluster fips) written at 6.02_online_appendix_c_doctors.do:684 |
first 5 of 6
Table D1
· 3 estimations → table_d1_infant_mortality_robustness.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
ppmlhdfecount |
imr_pub_bk |
1.treated
|
fips, year | cluster: fips | 6.03_online_appendix_d_infant_mortality.do:128duke-replication/analysis/scripts/code/6.03_online_appendix_d_infant_mortality.do, line 128
eststo p1_c1`suffix': ppmlhdfe `depvar' 1.treated [pw = `weightvar'], absorb(fips year) cluster(fips) sep(fe)
as we read it (macros filled in / loop expanded):
eststo p1_c1`suffix': ppmlhdfe imr_pub_bk 1.treated [pw = births_pub_bk], absorb(fips year) cluster(fips) sep(fe) written at 6.03_online_appendix_d_infant_mortality.do:213 |
reghdfepanel fe |
imr_pub_bk |
1.treated
|
fips, year | cluster: fips | 6.03_online_appendix_d_infant_mortality.do:152duke-replication/analysis/scripts/code/6.03_online_appendix_d_infant_mortality.do, line 152
eststo p1_c4`suffix': reghdfe `depvar' 1.treated [aw = `weightvar'], absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c4`suffix': reghdfe imr_pub_bk 1.treated [aw = births_pub_bk], absorb(fips year) vce(cluster fips) written at 6.03_online_appendix_d_infant_mortality.do:213 |
ppmlhdfecount |
imr_pub_bk |
1.treated
|
fips##stackID, year##stackID | cluster: fips | 6.03_online_appendix_d_infant_mortality.do:188duke-replication/analysis/scripts/code/6.03_online_appendix_d_infant_mortality.do, line 188
eststo p1_c2`suffix': ppmlhdfe `depvar' 1.treated [pw = `weightvar'], absorb(fips##stackID year##stackID) cluster(fips) sep(fe)
as we read it (macros filled in / loop expanded):
eststo p1_c2`suffix': ppmlhdfe imr_pub_bk 1.treated [pw = births_pub_bk], absorb(fips##stackID year##stackID) cluster(fips) sep(fe) written at 6.03_online_appendix_d_infant_mortality.do:213 |
Table D2
· 2 estimations → table_d2_infant_mortality_log_specs.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
ln_imr_pub_bk |
1.treated
|
fips, year | cluster: fips | 6.03_online_appendix_d_infant_mortality.do:325duke-replication/analysis/scripts/code/6.03_online_appendix_d_infant_mortality.do, line 325
eststo p1_c1: reghdfe `depvar' 1.treated [aw = `weightvar'], absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c1: reghdfe ln_imr_pub_bk 1.treated [aw = births_pub_bk], absorb(fips year) vce(cluster fips) written at 6.03_online_appendix_d_infant_mortality.do:391 |
reghdfepanel fe |
ln_imr_pub_bk |
1.treated
|
fips##stackID, year##stackID | cluster: fips | 6.03_online_appendix_d_infant_mortality.do:374duke-replication/analysis/scripts/code/6.03_online_appendix_d_infant_mortality.do, line 374
eststo p1_c2: reghdfe `depvar' 1.treated [aw = `weightvar'], absorb(fips##stackID year##stackID) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c2: reghdfe ln_imr_pub_bk 1.treated [aw = births_pub_bk], absorb(fips##stackID year##stackID) vce(cluster fips) written at 6.03_online_appendix_d_infant_mortality.do:391 |
Table F1
· 24 estimations → table_F1_later_life_mortality_with_rates.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
ppmlhdfecount |
deaths |
b0.treated
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:54duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 54
eststo p1_c1: ppmlhdfe deaths b0.treated, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c1: ppmlhdfe deaths b0.treated, absorb("i.age##i.fips i.age##i.year") vce(cluster fips) written at 6.07_online_appendix_f_long_run.do:190 |
ppmlhdfecount |
deaths |
b0.treated
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:58duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 58
eststo p1_c2: ppmlhdfe deaths b0.treated [pw = births_pub], absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c2: ppmlhdfe deaths b0.treated [pw = births_pub], absorb("i.age##i.fips i.age##i.year") vce(cluster fips) written at 6.07_online_appendix_f_long_run.do:190 |
ppmlhdfecount |
deaths |
b0.treated
|
"i.age##i.fips, i.age##i.year, i.age##c.percent_illit, i.age##c.percent_black, i.age##c.percent_other_race, i.age##c.percent_urban, i.age##c.retail_sales_per_capita, i.age##i.chd_presence" | cluster: fips | 6.07_online_appendix_f_long_run.do:62duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 62
eststo p1_c3: ppmlhdfe deaths b0.treated [pw = births_pub], absorb("`fixed_effects' `int_baseline_controls'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c3: ppmlhdfe deaths b0.treated [pw = births_pub], absorb("i.age##i.fips i.age##i.year i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_p … written at 6.07_online_appendix_f_long_run.do:190 |
ppmlhdfecount |
lldr |
b0.treated
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:67duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 67
eststo p1_c4: ppmlhdfe lldr b0.treated, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c4: ppmlhdfe lldr b0.treated, absorb("i.age##i.fips i.age##i.year") vce(cluster fips) written at 6.07_online_appendix_f_long_run.do:190 |
ppmlhdfecount |
lldr |
b0.treated
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:71duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 71
eststo p1_c5: ppmlhdfe lldr b0.treated [pw = births_pub], absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c5: ppmlhdfe lldr b0.treated [pw = births_pub], absorb("i.age##i.fips i.age##i.year") vce(cluster fips) written at 6.07_online_appendix_f_long_run.do:190 |
first 5 of 24
Table F2
· 12 estimations → table_F2_later_life_mortality_collapsed.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
ppmlhdfecount |
deaths |
b0.treated
|
"i.fips, i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:301duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 301
eststo p1_c1: ppmlhdfe deaths b0.treated, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c1: ppmlhdfe deaths b0.treated, absorb("i.fips i.year") vce(cluster fips) written at 6.07_online_appendix_f_long_run.do:411 |
ppmlhdfecount |
deaths |
b0.treated
|
"i.fips, i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:305duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 305
eststo p1_c2: ppmlhdfe deaths b0.treated [pw = births_pub], absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c2: ppmlhdfe deaths b0.treated [pw = births_pub], absorb("i.fips i.year") vce(cluster fips) written at 6.07_online_appendix_f_long_run.do:411 |
ppmlhdfecount |
deaths |
b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita i.chd_presence
|
"i.fips, i.year, " | cluster: fips | 6.07_online_appendix_f_long_run.do:309duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 309
eststo p1_c3: ppmlhdfe deaths b0.treated `baseline_controls' [pw = births_pub], absorb("`fixed_effects' ") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c3: ppmlhdfe deaths b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita i.chd_presence [pw = births_pub], absorb("i.fips i.year ") vce(cluster fips) written at 6.07_online_appendix_f_long_run.do:411 |
ppmlhdfecount |
deaths |
b0.treated
|
"i.fips, i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:359duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 359
eststo p2_c1: ppmlhdfe deaths b0.treated if ever_zero_births == 0 & race == 2, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p2_c1: ppmlhdfe deaths b0.treated if ever_zero_births == 0 & race == 2, absorb("i.fips i.year") vce(cluster fips) written at 6.07_online_appendix_f_long_run.do:420 |
ppmlhdfecount |
deaths |
b0.treated
|
"i.fips, i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:363duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 363
eststo p2_c2: ppmlhdfe deaths b0.treated [pw = births_pub] if ever_zero_births == 0 & race == 2, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p2_c2: ppmlhdfe deaths b0.treated [pw = births_pub] if ever_zero_births == 0 & race == 2, absorb("i.fips i.year") vce(cluster fips) written at 6.07_online_appendix_f_long_run.do:420 |
first 5 of 12
Table F3
· 12 estimations → table_F3_combined_mortality_clean_controls.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
ppmlhdfecount |
deaths |
b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:496duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 496
eststo p1_c1: ppmlhdfe deaths b0.treated `int_baseline_controls' [pw = births_pub] if ever_zero_births == 0, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c1: ppmlhdfe deaths b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence [pw = births_pub] if ever_zero_births == 0, abs … written at 6.07_online_appendix_f_long_run.do:599 |
ppmlhdfecount |
deaths |
b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:500duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 500
eststo p1_c2: ppmlhdfe deaths b0.treated `int_baseline_controls' [pw = births_pub] if ever_zero_births == 0 & drop == 0, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c2: ppmlhdfe deaths b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence [pw = births_pub] if ever_zero_births == 0 & dr … written at 6.07_online_appendix_f_long_run.do:599 |
ppmlhdfecount |
deaths |
b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:504duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 504
eststo p1_c3: ppmlhdfe deaths b0.treated `int_baseline_controls' [pw = births_pub] if ever_zero_births == 0 & drop_inculde_no_np == 0, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c3: ppmlhdfe deaths b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence [pw = births_pub] if ever_zero_births == 0 & dr … written at 6.07_online_appendix_f_long_run.do:599 |
ppmlhdfecount |
deaths |
b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:537duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 537
eststo p2_c1: ppmlhdfe deaths b0.treated `int_baseline_controls' [pw = births_pub] if ever_zero_births == 0 & race == 2 , absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p2_c1: ppmlhdfe deaths b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence [pw = births_pub] if ever_zero_births == 0 & ra … written at 6.07_online_appendix_f_long_run.do:608 |
ppmlhdfecount |
deaths |
b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:541duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 541
eststo p2_c2: ppmlhdfe deaths b0.treated `int_baseline_controls' [pw = births_pub] if ever_zero_births == 0 & race == 2 & drop == 0, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p2_c2: ppmlhdfe deaths b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence [pw = births_pub] if ever_zero_births == 0 & ra … written at 6.07_online_appendix_f_long_run.do:608 |
first 5 of 12
Table F4
· 24 estimations → table_F4_later_life_mortality_add_south_carolina.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
ppmlhdfecount |
deaths |
b0.treated
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:695duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 695
eststo p1_ca1: ppmlhdfe deaths b0.treated if ever_zero_pop == 0 & treated_state == 1, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_ca1: ppmlhdfe deaths b0.treated if ever_zero_pop == 0 & treated_state == 1, absorb("i.age##i.fips i.age##i.year") vce(cluster fips) written at 6.07_online_appendix_f_long_run.do:831 |
ppmlhdfecount |
deaths |
b0.treated
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:698duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 698
eststo p1_ca2: ppmlhdfe deaths b0.treated [pw = population] if ever_zero_pop == 0 & treated_state == 1, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_ca2: ppmlhdfe deaths b0.treated [pw = population] if ever_zero_pop == 0 & treated_state == 1, absorb("i.age##i.fips i.age##i.year") vce(cluster fips) written at 6.07_online_appendix_f_long_run.do:831 |
ppmlhdfecount |
deaths |
b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:701duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 701
eststo p1_ca3: ppmlhdfe deaths b0.treated `int_baseline_controls' [pw = population] if ever_zero_pop == 0 & treated_state == 1, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_ca3: ppmlhdfe deaths b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence [pw = population] if ever_zero_pop == 0 & trea … written at 6.07_online_appendix_f_long_run.do:831 |
ppmlhdfecount |
deaths |
b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:705duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 705
eststo p1_c1: ppmlhdfe deaths b0.treated `int_baseline_controls' [pw = population] if ever_zero_pop == 0, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c1: ppmlhdfe deaths b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence [pw = population] if ever_zero_pop == 0, absorb … written at 6.07_online_appendix_f_long_run.do:831 |
ppmlhdfecount |
deaths |
b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.07_online_appendix_f_long_run.do:709duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 709
eststo p1_c2: ppmlhdfe deaths b0.treated `int_baseline_controls' [pw = population] if ever_zero_pop == 0 & drop == 0, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c2: ppmlhdfe deaths b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence [pw = population] if ever_zero_pop == 0 & drop … written at 6.07_online_appendix_f_long_run.do:831 |
first 5 of 24
Table G1
· 1 estimation → table_g1_covariance_balance_test.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
ppmlhdfecount |
`y' |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:182duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 182
ppmlhdfe `y' b0.treated [pw = births_pub], ///
absorb(fips year ) vce(cluster fips) run 5× in a loop (y=percent_illit; y=percent_black; y=percent_urban…)
written at 6.05_online_appendix_g_other_results.do:264 |
Table G2
· 12 estimations → table_g2_maternal_mortality_diff_specs.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
ppmlhdfecount |
maternal_deaths |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:302duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 302
eststo p1_c1: ppmlhdfe maternal_deaths b0.treated, absorb(fips year) vce(cluster fips) sep(fe) written at 6.05_online_appendix_g_other_results.do:361 |
ppmlhdfecount |
maternal_deaths |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:306duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 306
eststo p1_c2: ppmlhdfe maternal_deaths b0.treated [pw = births_pub], absorb(fips year) vce(cluster fips) sep(fe) written at 6.05_online_appendix_g_other_results.do:361 |
ppmlhdfecount |
maternal_deaths |
b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:310duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 310
eststo p1_c3: ppmlhdfe maternal_deaths b0.treated `baseline_controls' [pw = births_pub], absorb(fips year) vce(cluster fips) sep(fe)
as we read it (macros filled in / loop expanded):
eststo p1_c3: ppmlhdfe maternal_deaths b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = births_pub], absorb(fips year) vce(cluster fips) sep(fe) written at 6.05_online_appendix_g_other_results.do:361 |
ppmlhdfecount |
mmr |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:315duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 315
eststo p1_c1a: ppmlhdfe mmr b0.treated, absorb(fips year) vce(cluster fips) sep(fe) written at 6.05_online_appendix_g_other_results.do:361 |
ppmlhdfecount |
mmr |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:319duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 319
eststo p1_c2a: ppmlhdfe mmr b0.treated [pw = births_pub], absorb(fips year) vce(cluster fips) sep(fe) written at 6.05_online_appendix_g_other_results.do:361 |
first 5 of 12
Table G3
· 23 estimations → table_g3_short_run_fertility_diff_specs.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
ppmlhdfecount |
births_pub |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:414duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 414
eststo p1_c1: ppmlhdfe births_pub b0.treated, absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:592 |
ppmlhdfecount |
births_pub |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:418duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 418
eststo p1_c2: ppmlhdfe births_pub b0.treated [pw = pop_fem], absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:592 |
ppmlhdfecount |
births_pub |
b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:422duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 422
eststo p1_c3: ppmlhdfe births_pub b0.treated `baseline_controls' [pw = pop_fem], absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c3: ppmlhdfe births_pub b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = pop_fem], absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:592 |
ppmlhdfecount |
tfr |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:427duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 427
eststo p1_c1a: ppmlhdfe tfr b0.treated, absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:592 |
ppmlhdfecount |
tfr |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:431duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 431
eststo p1_c2a: ppmlhdfe tfr b0.treated [pw = pop_fem], absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:592 |
first 5 of 23
Table G4
· 12 estimations → table_g4_infant_mortality_poisson_by_timing.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
ppmlhdfecount |
births_pub |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:414duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 414
eststo p1_c1: ppmlhdfe births_pub b0.treated, absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:710 |
ppmlhdfecount |
births_pub |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:418duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 418
eststo p1_c2: ppmlhdfe births_pub b0.treated [pw = pop_fem], absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:710 |
ppmlhdfecount |
births_pub |
b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:422duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 422
eststo p1_c3: ppmlhdfe births_pub b0.treated `baseline_controls' [pw = pop_fem], absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c3: ppmlhdfe births_pub b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = pop_fem], absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:710 |
ppmlhdfecount |
births_pub_bk |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:442duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 442
eststo p2_c1: ppmlhdfe births_pub_bk b0.treated if ever_zero_pop_fem == 0, absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:718 |
ppmlhdfecount |
births_pub_bk |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:446duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 446
eststo p2_c2: ppmlhdfe births_pub_bk b0.treated if ever_zero_pop_fem == 0 [pw = pop_fem_bk], absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:718 |
first 5 of 12
Table G5
· 12 estimations → table_g5_stillborn_unnamed_infants.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
ppmlhdfecount |
births_pub |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:414duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 414
eststo p1_c1: ppmlhdfe births_pub b0.treated, absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:1031 |
ppmlhdfecount |
births_pub |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:418duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 418
eststo p1_c2: ppmlhdfe births_pub b0.treated [pw = pop_fem], absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:1031 |
ppmlhdfecount |
births_pub |
b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:422duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 422
eststo p1_c3: ppmlhdfe births_pub b0.treated `baseline_controls' [pw = pop_fem], absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c3: ppmlhdfe births_pub b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = pop_fem], absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:1031 |
ppmlhdfecount |
births_pub_bk |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:442duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 442
eststo p2_c1: ppmlhdfe births_pub_bk b0.treated if ever_zero_pop_fem == 0, absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:1039 |
ppmlhdfecount |
births_pub_bk |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:446duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 446
eststo p2_c2: ppmlhdfe births_pub_bk b0.treated if ever_zero_pop_fem == 0 [pw = pop_fem_bk], absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:1039 |
first 5 of 12
Table G6
· 9 estimations → table_g6_sulfa_dd_poisson.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
ppmlhdfecount |
imr_pub |
post_sulfa_shift_share
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:1109duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 1109
ppmlhdfe imr_pub ///
post_sulfa_shift_share, ///
absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:1142 |
ppmlhdfecount |
imr_pub |
post_sulfa_shift_share
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:1118duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 1118
ppmlhdfe imr_pub ///
post_sulfa_shift_share ///
[pw = births_pub], ///
absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:1142 |
ppmlhdfecount |
imr_pub |
post_sulfa_shift_share percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:1128duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 1128
ppmlhdfe imr_pub ///
post_sulfa_shift_share ///
`baseline_controls' [pw = births_pub], ///
absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
ppmlhdfe imr_pub post_sulfa_shift_share percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = births_pub], absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:1142 |
ppmlhdfecount |
imr_pub_bk |
post_sulfa_shift_share
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:1156duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 1156
ppmlhdfe imr_pub_bk ///
post_sulfa_shift_share ///
if ever_zero_births == 0, ///
absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:1189 |
ppmlhdfecount |
imr_pub_bk |
post_sulfa_shift_share
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:1166duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 1166
ppmlhdfe imr_pub_bk ///
post_sulfa_shift_share ///
if ever_zero_births == 0 ///
[pw = births_pub_bk], ///
absorb(fips year) vce(cluster fips) written at 6.05_online_appendix_g_other_results.do:1189 |
first 5 of 9
Table J1
· 22 estimations → table_j1_iv_pooled_imr_intensive.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
regols |
tot_pay_all_adj |
births_pub
|
— | default | 6.13_online_appendix_j_iv.do:298duke-replication/analysis/scripts/code/6.13_online_appendix_j_iv.do, line 298
eststo blank: reg tot_pay_`treat_type'_adj births_pub
as we read it (macros filled in / loop expanded):
eststo blank: reg tot_pay_all_adj births_pub written at 6.13_online_appendix_j_iv.do:464 |
ppmlhdfecount |
imr_pub |
tot_capp_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 6.13_online_appendix_j_iv.do:307duke-replication/analysis/scripts/code/6.13_online_appendix_j_iv.do, line 307
eststo pl_c2: ppmlhdfe imr_pub tot_capp_`treat_type'_adj `baseline_controls' [pw = births_pub], ///
absorb(fips year ) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo pl_c2: ppmlhdfe imr_pub tot_capp_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = births_pub], absorb(fips year ) vce(cluster fips) written at 6.13_online_appendix_j_iv.do:464 |
ppmlhdfecount |
imr_pub |
tot_pay_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 6.13_online_appendix_j_iv.do:312duke-replication/analysis/scripts/code/6.13_online_appendix_j_iv.do, line 312
eststo pl_c3: ppmlhdfe imr_pub tot_pay_`treat_type'_adj `baseline_controls' [pw = births_pub], ///
absorb(fips year ) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo pl_c3: ppmlhdfe imr_pub tot_pay_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = births_pub], absorb(fips year ) vce(cluster fips) written at 6.13_online_appendix_j_iv.do:464 |
reghdfepanel fe |
ln_imr_pub |
tot_capp_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 6.13_online_appendix_j_iv.do:318duke-replication/analysis/scripts/code/6.13_online_appendix_j_iv.do, line 318
eststo pl_c4: reghdfe ln_imr_pub tot_capp_`treat_type'_adj `baseline_controls' [aw = births_pub], ///
absorb(fips year ) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo pl_c4: reghdfe ln_imr_pub tot_capp_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [aw = births_pub], absorb(fips year ) vce(cluster fips) written at 6.13_online_appendix_j_iv.do:464 |
reghdfepanel fe |
ln_imr_pub |
tot_pay_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 6.13_online_appendix_j_iv.do:323duke-replication/analysis/scripts/code/6.13_online_appendix_j_iv.do, line 323
eststo pl_c5: reghdfe ln_imr_pub tot_pay_`treat_type'_adj `baseline_controls' [aw = births_pub], ///
absorb(fips year ) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo pl_c5: reghdfe ln_imr_pub tot_pay_all_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [aw = births_pub], absorb(fips year ) vce(cluster fips) written at 6.13_online_appendix_j_iv.do:464 |
first 5 of 22
Table L1
· 36 estimations → table_l1_county_level_hospitals_1922_1950.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
i_tot_beds_aha |
b0.treated
|
fips, year | cluster: fips | 6.10_online_appendix_l_extended_panel.do:224duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 224
eststo c_c_1 :reghdfe `depvar' b0.treated, absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo c_c_1 :reghdfe i_tot_beds_aha b0.treated, absorb(fips year) vce(cluster fips) written at 6.10_online_appendix_l_extended_panel.do:423 |
reghdfepanel fe |
i_tot_beds_aha |
b0.treated
|
fips, year | cluster: fips | 6.10_online_appendix_l_extended_panel.do:228duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 228
eststo c_c_2 :reghdfe `depvar' b0.treated [aw = births_pub], absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo c_c_2 :reghdfe i_tot_beds_aha b0.treated [aw = births_pub], absorb(fips year) vce(cluster fips) written at 6.10_online_appendix_l_extended_panel.do:423 |
reghdfepanel fe |
i_tot_beds_aha |
b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 6.10_online_appendix_l_extended_panel.do:232duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 232
eststo c_c_3 :reghdfe `depvar' b0.treated `baseline_controls' [aw = births_pub], absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo c_c_3 :reghdfe i_tot_beds_aha b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [aw = births_pub], absorb(fips year) vce(cluster fips) written at 6.10_online_appendix_l_extended_panel.do:423 |
reghdfepanel fe |
i_tot_beds_aha_pc |
b0.treated
|
fips, year | cluster: fips | 6.10_online_appendix_l_extended_panel.do:238duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 238
eststo c_r_1 :reghdfe `depvar'_pc b0.treated, absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo c_r_1 :reghdfe i_tot_beds_aha_pc b0.treated, absorb(fips year) vce(cluster fips) written at 6.10_online_appendix_l_extended_panel.do:423 |
reghdfepanel fe |
i_tot_beds_aha_pc |
b0.treated
|
fips, year | cluster: fips | 6.10_online_appendix_l_extended_panel.do:242duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 242
eststo c_r_2 :reghdfe `depvar'_pc b0.treated [aw = births_pub], absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo c_r_2 :reghdfe i_tot_beds_aha_pc b0.treated [aw = births_pub], absorb(fips year) vce(cluster fips) written at 6.10_online_appendix_l_extended_panel.do:423 |
first 5 of 36
Table L2
· 6 estimations → table_l2_combined_mortality_poisson_clean_controls_1962.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
ppmlhdfecount |
imr_pub |
b0.treated
|
fips, year | cluster: fips | 6.10_online_appendix_l_extended_panel.do:1129duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 1129
eststo fish_1: ppmlhdfe imr_pub b0.treated [pw = births_pub], absorb(fips year) vce(cluster fips) written at 6.10_online_appendix_l_extended_panel.do:1206 |
ppmlhdfecount |
imr_pub |
b0.treated
|
fips, year | cluster: fips | 6.10_online_appendix_l_extended_panel.do:1134duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 1134
eststo fish_2: ppmlhdfe imr_pub b0.treated [pw = births_pub] if drop == 0, absorb(fips year) vce(cluster fips) written at 6.10_online_appendix_l_extended_panel.do:1206 |
ppmlhdfecount |
imr_combined |
b0.treated
|
fips, year | cluster: fips | 6.10_online_appendix_l_extended_panel.do:1172duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 1172
eststo bail_3: ppmlhdfe imr_combined b0.treated [pw = births_combined] if year <= 1940 & year >= 1922, absorb(fips year) vce(cluster fips) written at 6.10_online_appendix_l_extended_panel.do:1206 |
ppmlhdfecount |
imr_combined |
b0.treated
|
fips, year | cluster: fips | 6.10_online_appendix_l_extended_panel.do:1178duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 1178
eststo bail_4: ppmlhdfe imr_combined b0.treated [pw = births_combined] if drop == 0 & year <= 1940 & year >= 1922, absorb(fips year) vce(cluster fips) written at 6.10_online_appendix_l_extended_panel.do:1206 |
ppmlhdfecount |
imr_combined |
b0.treated
|
fips, year | cluster: fips | 6.10_online_appendix_l_extended_panel.do:1185duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 1185
eststo bail_5: ppmlhdfe imr_combined b0.treated [pw = births_combined] if year <= 1962 & year >= 1922, absorb(fips year) vce(cluster fips) written at 6.10_online_appendix_l_extended_panel.do:1206 |
first 5 of 6
Table M1
· 1 estimation → table_m1_imr_poisson_clean_cntrls_psm.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
logitbinary |
ever_treated |
pct_not_in_1930_u_1_b pct_not_in_1930_1_5_b pct_not_in_1930_u_1_w pct_not_in_1930_1_5_w prop_beds non_prop_beds any_non_profit has_beds chd_presence percent_illit percent_black percent_other_race +3 more
|
— | default | 6.11_online_appendix_m_psm.do:223duke-replication/analysis/scripts/code/6.11_online_appendix_m_psm.do, line 223
logit ever_treated ///
`psm_controls' [pw = n_1920_u_1] if statefip == 37
as we read it (macros filled in / loop expanded):
logit ever_treated pct_not_in_1930_u_1_b pct_not_in_1930_1_5_b pct_not_in_1930_u_1_w pct_not_in_1930_1_5_w prop_beds non_prop_beds any_non_profit has_beds chd_presence percent_illit percent_black percent_other_race percent_urban retail_sale … written at 6.11_online_appendix_m_psm.do:443 |
Table M4
· 12 estimations → table_m4_combined_mortality_poisson_clean_controls_psm_`top_trim'.tex
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
ppmlhdfecount |
deaths |
b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.11_online_appendix_m_psm.do:829duke-replication/analysis/scripts/code/6.11_online_appendix_m_psm.do, line 829
eststo p1_c1: ppmlhdfe deaths b0.treated `int_baseline_controls' [pw = births_pub] if ever_zero_births == 0, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c1: ppmlhdfe deaths b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence [pw = births_pub] if ever_zero_births == 0, abs … written at 6.11_online_appendix_m_psm.do:945 |
ppmlhdfecount |
deaths |
b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.11_online_appendix_m_psm.do:833duke-replication/analysis/scripts/code/6.11_online_appendix_m_psm.do, line 833
eststo p1_c2: ppmlhdfe deaths b0.treated `int_baseline_controls' [pw = births_pub] if ever_zero_births == 0 & drop == 0, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c2: ppmlhdfe deaths b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence [pw = births_pub] if ever_zero_births == 0 & dr … written at 6.11_online_appendix_m_psm.do:945 |
ppmlhdfecount |
deaths |
b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.11_online_appendix_m_psm.do:837duke-replication/analysis/scripts/code/6.11_online_appendix_m_psm.do, line 837
eststo p1_c3: ppmlhdfe deaths b0.treated `int_baseline_controls' [pw = births_pub] if ever_zero_births == 0 & drop_inculde_no_np == 0, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p1_c3: ppmlhdfe deaths b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence [pw = births_pub] if ever_zero_births == 0 & dr … written at 6.11_online_appendix_m_psm.do:945 |
ppmlhdfecount |
deaths |
b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.11_online_appendix_m_psm.do:872duke-replication/analysis/scripts/code/6.11_online_appendix_m_psm.do, line 872
eststo p2_c1: ppmlhdfe deaths b0.treated `int_baseline_controls' [pw = births_pub] if ever_zero_births == 0 & race == 2 , absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p2_c1: ppmlhdfe deaths b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence [pw = births_pub] if ever_zero_births == 0 & ra … written at 6.11_online_appendix_m_psm.do:954 |
ppmlhdfecount |
deaths |
b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence
|
"i.age##i.fips, i.age##i.year" | cluster: fips | 6.11_online_appendix_m_psm.do:876duke-replication/analysis/scripts/code/6.11_online_appendix_m_psm.do, line 876
eststo p2_c2: ppmlhdfe deaths b0.treated `int_baseline_controls' [pw = births_pub] if ever_zero_births == 0 & race == 2 & drop == 0, absorb("`fixed_effects'") vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo p2_c2: ppmlhdfe deaths b0.treated i.age##c.percent_illit i.age##c.percent_black i.age##c.percent_other_race i.age##c.percent_urban i.age##c.retail_sales_per_capita i.age##i.chd_presence [pw = births_pub] if ever_zero_births == 0 & ra … written at 6.11_online_appendix_m_psm.do:954 |
first 5 of 12
Estimations not traced to a table or figure · 57
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
`depvar' |
_T*
|
fips, year | cluster: fips | 5_figures.do:447duke-replication/analysis/scripts/code/5_figures.do, line 447
reghdfe `depvar' ///
_T* ///
[aw = `weightvar'] ///
, absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
reghdfe `depvar' _T* [aw = births_pub] , absorb(fips year) vce(cluster fips) run 3× in a loop (depvar=i_tot_beds_aha_pc; depvar=i_likely_beds_aha_pc; depvar=i_prop_beds_aha_pc)
|
csdiddid |
`depvar' |
— | default | 5_figures.do:522duke-replication/analysis/scripts/code/5_figures.do, line 522
csdid `depvar' [iw = `weightvar'], ivar(fips) time(year) gvar(time_treated_2) agg(event)
as we read it (macros filled in / loop expanded):
csdid `depvar' [iw = births_pub], ivar(fips) time(year) gvar(time_treated_2) agg(event) run 3× in a loop (depvar=i_tot_beds_aha_pc; depvar=i_likely_beds_aha_pc; depvar=i_prop_beds_aha_pc)
|
|
reghdfepanel fe |
`depvar' |
_T*
|
fips##stackID, year##stackID | cluster: fips | 5_figures.do:625duke-replication/analysis/scripts/code/5_figures.do, line 625
reghdfe `depvar' ///
_T* ///
[aw = `weightvar'] ///
, absorb(fips##stackID year##stackID) vce(cluster fips)
as we read it (macros filled in / loop expanded):
reghdfe `depvar' _T* [aw = births_pub] , absorb(fips##stackID year##stackID) vce(cluster fips) run 3× in a loop (depvar=i_tot_beds_aha_pc; depvar=i_likely_beds_aha_pc; depvar=i_prop_beds_aha_pc)
|
reghdfepanel fe |
`depvar' |
_T*
|
fips, amd_wave | cluster: fips | 5_figures.do:1058duke-replication/analysis/scripts/code/5_figures.do, line 1058
reghdfe `depvar' ///
_T* ///
[aw = `weightvar'] ///
, absorb(fips amd_wave) vce(cluster fips)
as we read it (macros filled in / loop expanded):
reghdfe `depvar' _T* [aw = births_pub] , absorb(fips amd_wave) vce(cluster fips) run 3× in a loop (depvar=rmd; depvar=rmd_good_2yr; depvar=rmd_bad_2yr)
|
csdiddid |
`depvar' |
— | default | 5_figures.do:1135duke-replication/analysis/scripts/code/5_figures.do, line 1135
csdid `depvar' [iw = `weightvar'], ivar(fips) time(amd_wave) gvar(time_treated_2) agg(event)
as we read it (macros filled in / loop expanded):
csdid `depvar' [iw = births_pub], ivar(fips) time(amd_wave) gvar(time_treated_2) agg(event) run 3× in a loop (depvar=rmd; depvar=rmd_good_2yr; depvar=rmd_bad_2yr)
|
|
reghdfepanel fe |
`depvar' |
_T*
|
fips##stackID, amd_wave##stackID | cluster: fips | 5_figures.do:1242duke-replication/analysis/scripts/code/5_figures.do, line 1242
reghdfe `depvar' ///
_T* ///
[aw = `weightvar'] ///
, absorb(fips##stackID amd_wave##stackID) vce(cluster fips)
as we read it (macros filled in / loop expanded):
reghdfe `depvar' _T* [aw = births_pub] , absorb(fips##stackID amd_wave##stackID) vce(cluster fips) run 3× in a loop (depvar=rmd; depvar=rmd_good_2yr; depvar=rmd_bad_2yr)
|
ppmlhdfecount |
`depvar' |
_T*
|
fips, year | cluster: fips | 5_figures.do:1713duke-replication/analysis/scripts/code/5_figures.do, line 1713
ppmlhdfe `depvar' ///
_T* ///
[pw = `weightvar'] ///
, absorb(fips year) cluster(fips) sep(fe)
as we read it (macros filled in / loop expanded):
ppmlhdfe `depvar' _T* [pw = births_pub_bk] , absorb(fips year) cluster(fips) sep(fe) |
csdiddid |
ln_`depvar' |
— | default | 5_figures.do:1811duke-replication/analysis/scripts/code/5_figures.do, line 1811
csdid ln_`depvar' [iw = `weightvar'], ivar(fips) time(year) gvar(time_treated_2) agg(event)
as we read it (macros filled in / loop expanded):
csdid ln_`depvar' [iw = births_pub_bk], ivar(fips) time(year) gvar(time_treated_2) agg(event) |
|
ppmlhdfecount |
`depvar' |
_T*
|
fips##stackID, year##stackID | cluster: fips | 5_figures.do:1917duke-replication/analysis/scripts/code/5_figures.do, line 1917
ppmlhdfe `depvar' ///
_T* ///
[pw = `weightvar'] ///
, absorb(fips##stackID year##stackID) cluster(fips) sep(fe)
as we read it (macros filled in / loop expanded):
ppmlhdfe `depvar' _T* [pw = births_pub_bk] , absorb(fips##stackID year##stackID) cluster(fips) sep(fe) |
csdiddid |
`depvar'_pc |
— | default | 6.01_online_appendix_b_hospitals.do:134duke-replication/analysis/scripts/code/6.01_online_appendix_b_hospitals.do, line 134
csdid `depvar_new' [iw = `weightvar'], ivar(fips) time(year) gvar(time_treated_2) agg(event)
as we read it (macros filled in / loop expanded):
csdid `depvar'_pc [iw = births_pub], ivar(fips) time(year) gvar(time_treated_2) agg(event) |
|
reghdfepanel fe |
`depvar' |
_T*
|
fips, year | cluster: fips | 6.01_online_appendix_b_hospitals.do:379duke-replication/analysis/scripts/code/6.01_online_appendix_b_hospitals.do, line 379
reghdfe `depvar' ///
_T* ///
[aw = `weightvar'] ///
, absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
reghdfe `depvar' _T* [aw = births_pub] , absorb(fips year) vce(cluster fips) run 3× in a loop (depvar=tot_hospitals_pc; depvar=tot_hosp_likely_pc; depvar=tot_hosp_prop_pc)
|
csdiddid |
`depvar' |
— | default | 6.01_online_appendix_b_hospitals.do:454duke-replication/analysis/scripts/code/6.01_online_appendix_b_hospitals.do, line 454
csdid `depvar' [iw = `weightvar'], ivar(fips) time(year) gvar(time_treated_2) agg(event)
as we read it (macros filled in / loop expanded):
csdid `depvar' [iw = births_pub], ivar(fips) time(year) gvar(time_treated_2) agg(event) run 3× in a loop (depvar=tot_hospitals_pc; depvar=tot_hosp_likely_pc; depvar=tot_hosp_prop_pc)
|
|
reghdfepanel fe |
`depvar' |
_T*
|
fips##stackID, year##stackID | cluster: fips | 6.01_online_appendix_b_hospitals.do:557duke-replication/analysis/scripts/code/6.01_online_appendix_b_hospitals.do, line 557
reghdfe `depvar' ///
_T* ///
[aw = `weightvar'] ///
, absorb(fips##stackID year##stackID) vce(cluster fips)
as we read it (macros filled in / loop expanded):
reghdfe `depvar' _T* [aw = births_pub] , absorb(fips##stackID year##stackID) vce(cluster fips) run 3× in a loop (depvar=tot_hospitals_pc; depvar=tot_hosp_likely_pc; depvar=tot_hosp_prop_pc)
|
csdiddid |
r`depvar' |
— | default | 6.02_online_appendix_c_doctors.do:195duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 195
csdid `depvar_new' [iw = `weightvar'], ivar(fips) time(amd_wave) gvar(time_treated_2) agg(event)
as we read it (macros filled in / loop expanded):
csdid r`depvar' [iw = births_pub_bk], ivar(fips) time(amd_wave) gvar(time_treated_2) agg(event) |
|
reghdfepanel fe |
`depvar' |
_T*
|
fips, amd_wave | cluster: fips | 6.02_online_appendix_c_doctors.do:977duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 977
reghdfe `depvar' ///
_T* ///
[aw = `weightvar'] ///
, absorb(fips amd_wave) vce(cluster fips)
as we read it (macros filled in / loop expanded):
reghdfe `depvar' _T* [aw = births_pub_bk] , absorb(fips amd_wave) vce(cluster fips) |
csdiddid |
`depvar' |
— | default | 6.02_online_appendix_c_doctors.do:1054duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 1054
csdid `depvar' [iw = `weightvar'], ivar(fips) time(amd_wave) gvar(time_treated_2) agg(event)
as we read it (macros filled in / loop expanded):
csdid `depvar' [iw = births_pub_bk], ivar(fips) time(amd_wave) gvar(time_treated_2) agg(event) |
|
reghdfepanel fe |
`depvar' |
_T*
|
fips##stackID, amd_wave##stackID | cluster: fips | 6.02_online_appendix_c_doctors.do:1161duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 1161
reghdfe `depvar' ///
_T* ///
[aw = `weightvar'] ///
, absorb(fips##stackID amd_wave##stackID) vce(cluster fips)
as we read it (macros filled in / loop expanded):
reghdfe `depvar' _T* [aw = births_pub_bk] , absorb(fips##stackID amd_wave##stackID) vce(cluster fips) |
csdiddid |
``i'' |
— | default | 6.02_online_appendix_c_doctors.do:1457duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 1457
csdid `y_var' `iw', ivar(`unit_id') time(year) gvar(gvar) agg(event)
as we read it (macros filled in / loop expanded):
csdid ``i'' , ivar(fips) time(year) gvar(gvar) agg(event) |
|
reghdfepanel fe |
``i'' |
F*event L*event
|
fips, year | cluster: fips | 6.02_online_appendix_c_doctors.do:1471duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 1471
reghdfe `y_var' F*event L*event `aw', absorb(`unit_id' year) vce(cluster `unit_id')
as we read it (macros filled in / loop expanded):
reghdfe ``i'' F*event L*event , absorb(fips year) vce(cluster fips) |
csdiddid |
ln_imr_pub_bk |
— | default | 6.03_online_appendix_d_infant_mortality.do:345duke-replication/analysis/scripts/code/6.03_online_appendix_d_infant_mortality.do, line 345
csdid `depvar' [iw = `weightvar'], ivar(fips) time(year) gvar(time_treated_2) agg(event)
as we read it (macros filled in / loop expanded):
csdid ln_imr_pub_bk [iw = births_pub_bk], ivar(fips) time(year) gvar(time_treated_2) agg(event) |
|
ppmlhdfecount |
imr_pub |
_T*
|
fips##stackID, year##stackID | cluster: fips | 6.03_online_appendix_d_infant_mortality.do:517duke-replication/analysis/scripts/code/6.03_online_appendix_d_infant_mortality.do, line 517
ppmlhdfe `depvar' ///
_T* ///
`stacked_controls' ///
[pw = `weightvar'] ///
, absorb(fips##stackID year##stackID) cluster(fips) sep(fe)
as we read it (macros filled in / loop expanded):
ppmlhdfe imr_pub _T* [pw = births_pub] , absorb(fips##stackID year##stackID) cluster(fips) sep(fe) |
ppmlhdfecount |
imr_pub |
1.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 6.04_online_appendix_e_heterogeneity.do:406duke-replication/analysis/scripts/code/6.04_online_appendix_e_heterogeneity.do, line 406
eststo pl_c0_`z': ppmlhdfe imr_pub 1.treated `baseline_controls' [pw = births_pub] if bad_include == 0, ///
absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo pl_c0_`z': ppmlhdfe imr_pub 1.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = births_pub] if bad_include == 0, absorb(fips year) vce(cluster fips) run 6× in a loop (z=all; z=ex_nurse; z=new_hosp…)
|
ppmlhdfecount |
imr_pub |
tot_capp_`z'_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 6.04_online_appendix_e_heterogeneity.do:413duke-replication/analysis/scripts/code/6.04_online_appendix_e_heterogeneity.do, line 413
eststo pl_c1_`z': ppmlhdfe imr_pub tot_capp_`z'_adj `baseline_controls' [pw = births_pub] if bad_include == 0, ///
absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo pl_c1_`z': ppmlhdfe imr_pub tot_capp_`z'_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = births_pub] if bad_include == 0, absorb(fips year) vce(cluster fips) run 6× in a loop (z=all; z=ex_nurse; z=new_hosp…)
|
ppmlhdfecount |
imr_pub |
tot_pay_`z'_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 6.04_online_appendix_e_heterogeneity.do:421duke-replication/analysis/scripts/code/6.04_online_appendix_e_heterogeneity.do, line 421
eststo pl_c2_`z': ppmlhdfe imr_pub tot_pay_`z'_adj `baseline_controls' [pw = births_pub] if bad_include == 0, ///
absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
eststo pl_c2_`z': ppmlhdfe imr_pub tot_pay_`z'_adj percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = births_pub] if bad_include == 0, absorb(fips year) vce(cluster fips) run 6× in a loop (z=all; z=ex_nurse; z=new_hosp…)
|
ppmlhdfecount |
imr_pub |
b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:63duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 63
ppmlhdfe imr_pub b0.treated `baseline_controls' [pw = births_pub], absorb(fips year) cluster(fips)
as we read it (macros filled in / loop expanded):
ppmlhdfe imr_pub b0.treated percent_illit percent_black percent_other_race percent_urban retail_sales_per_capita chd_presence [pw = births_pub], absorb(fips year) cluster(fips) |
meandescriptive |
— |
— | default | 6.05_online_appendix_g_other_results.do:101duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 101
mean `balance_controls'
as we read it (macros filled in / loop expanded):
mean percent_illit percent_black percent_urban retail_sales_per_capita chd_presence |
|
ppmlhdfecount |
`y' |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:119duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 119
ppmlhdfe `y' b0.treated [pw = births_pub], ///
absorb(fips year ) vce(cluster fips) run 5× in a loop (y=percent_illit; y=percent_black; y=percent_urban…)
|
reghdfepanel fe |
treated |
percent_illit percent_black percent_urban retail_sales_per_capita chd_presence
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:249duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 249
reghdfe treated `balance_controls' [aw = births_pub], absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
reghdfe treated percent_illit percent_black percent_urban retail_sales_per_capita chd_presence [aw = births_pub], absorb(fips year) vce(cluster fips) |
ppmlhdfecount |
tfr_bk |
b0.treated
|
fips, year | cluster: fips | 6.05_online_appendix_g_other_results.do:454duke-replication/analysis/scripts/code/6.05_online_appendix_g_other_results.do, line 454
eststo p2_c1a: ppmlhdfe tfr_bk b0.treated if ever_zero_pop_fem == 0, absorb(fips year) vce(cluster fips) |
ppmlhdfecount |
imr_pub |
b0.treated
|
fips, year | cluster: fips | 6.06_online_appendix_j_non_nc.do:127duke-replication/analysis/scripts/code/6.06_online_appendix_j_non_nc.do, line 127
ppmlhdfe imr_pub b0.treated [pw = births_pub], ///
absorb(fips year) vce(cluster fips) |
ppmlhdfecount |
imr_pub_bk |
b0.treated
|
fips, year | cluster: fips | 6.06_online_appendix_j_non_nc.do:278duke-replication/analysis/scripts/code/6.06_online_appendix_j_non_nc.do, line 278
ppmlhdfe `depvar' b0.treated [pw = `weightvar'] , ///
absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
ppmlhdfe imr_pub_bk b0.treated [pw = births_pub_bk] , absorb(fips year) vce(cluster fips) |
ppmlhdfecount |
imr_pub_bk |
b0.treated
|
fips, year | cluster: fips | 6.06_online_appendix_j_non_nc.do:281duke-replication/analysis/scripts/code/6.06_online_appendix_j_non_nc.do, line 281
ppmlhdfe `depvar' b0.treated [pw = `weightvar'] if drop == 0, ///
absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
ppmlhdfe imr_pub_bk b0.treated [pw = births_pub_bk] if drop == 0, absorb(fips year) vce(cluster fips) |
ppmlhdfecount |
imr_pub_bk |
b0.treated
|
fips, year | cluster: fips | 6.06_online_appendix_j_non_nc.do:284duke-replication/analysis/scripts/code/6.06_online_appendix_j_non_nc.do, line 284
ppmlhdfe `depvar' b0.treated [pw = `weightvar'] if drop_inculde_no_np == 0, ///
absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
ppmlhdfe imr_pub_bk b0.treated [pw = births_pub_bk] if drop_inculde_no_np == 0, absorb(fips year) vce(cluster fips) |
ppmlhdfecount |
imr_pub_bk |
_T*
|
fips, year | cluster: fips | 6.06_online_appendix_j_non_nc.do:317duke-replication/analysis/scripts/code/6.06_online_appendix_j_non_nc.do, line 317
ppmlhdfe `depvar' ///
_T* ///
[pw = `weightvar'] if drop == 0 ///
, absorb(fips year) cluster(fips)
as we read it (macros filled in / loop expanded):
ppmlhdfe imr_pub_bk _T* [pw = births_pub_bk] if drop == 0 , absorb(fips year) cluster(fips) |
ppmlhdfecount |
deaths |
_T*
|
i.age##i.fips, i.age##i.year | cluster: fips | 6.07_online_appendix_f_long_run.do:1024duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 1024
ppmlhdfe deaths ///
_T* ///
[pw = `weightvar'] ///
, absorb(i.age##i.fips i.age##i.year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
ppmlhdfe deaths _T* [pw = births_pub] , absorb(i.age##i.fips i.age##i.year) vce(cluster fips) |
ppmlhdfecount |
deaths |
_T*
|
i.age##i.fips, i.age##i.year | cluster: fips | 6.07_online_appendix_f_long_run.do:1267duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 1267
ppmlhdfe deaths ///
_T* ///
[pw = `weightvar'] ///
, absorb(i.age##i.fips i.age##i.year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
ppmlhdfe deaths _T* [pw = births_pub] , absorb(i.age##i.fips i.age##i.year) vce(cluster fips) |
ppmlhdfecount |
deaths |
_T*
|
i.age##i.fips, i.age##i.year | cluster: fips | 6.07_online_appendix_f_long_run.do:1569duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 1569
ppmlhdfe deaths ///
_T* ///
[pw = `weightvar'] ///
, absorb(i.age##i.fips i.age##i.year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
ppmlhdfe deaths _T* [pw = births_pub] , absorb(i.age##i.fips i.age##i.year) vce(cluster fips) |
ppmlhdfecount |
imr_pub |
b0.treated
|
fips, year | cluster: fips | 6.09_online_appendix_k_ri.do:138duke-replication/analysis/scripts/code/6.09_online_appendix_k_ri.do, line 138
ppmlhdfe imr_pub b0.treated [pw = births_pub], absorb(fips year) vce(cluster fips) |
reghdfepanel fe |
`depvar' |
_T*
|
fips, year | cluster: fips | 6.10_online_appendix_l_extended_panel.do:523duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 523
reghdfe `depvar' ///
_T* ///
[aw = `weightvar'] ///
, absorb(fips year) vce(cluster fips)
as we read it (macros filled in / loop expanded):
reghdfe `depvar' _T* [aw = births_pub] , absorb(fips year) vce(cluster fips) run 3× in a loop (depvar=i_tot_beds_aha; depvar=i_likely_beds_aha; depvar=i_prop_beds_aha)
|
csdiddid |
`depvar' |
— | default | 6.10_online_appendix_l_extended_panel.do:598duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 598
csdid `depvar' [iw = `weightvar'], ivar(fips) time(year) gvar(time_treated_2) agg(event)
as we read it (macros filled in / loop expanded):
csdid `depvar' [iw = births_pub], ivar(fips) time(year) gvar(time_treated_2) agg(event) run 3× in a loop (depvar=i_tot_beds_aha; depvar=i_likely_beds_aha; depvar=i_prop_beds_aha)
|
Tables and figures the code writes:
· · Table I1
sr_output_vary_samp.txt 0_run_all.do:246
duke-replication/0_run_all.do, line 246
file open sr_output_vary_samp using "$PROJ_PATH/analysis/output/sr_output_vary_samp.txt", write replace
as we read it (macros filled in / loop expanded):
file open sr_output_vary_samp using "`c(pwd)'/analysis/output/sr_output_vary_samp.txt", write replace
sr_output_vary_spec.txt 0_run_all.do:233
duke-replication/0_run_all.do, line 233
file open sr_output_vary_spec using "$PROJ_PATH/analysis/output/sr_output_vary_spec.txt", write replace
as we read it (macros filled in / loop expanded):
file open sr_output_vary_spec using "`c(pwd)'/analysis/output/sr_output_vary_spec.txt", write replace
table_i1_bacon_summary.tex 6.08.0_online_appendix_i_es_diagnostics.do:171
duke-replication/analysis/scripts/code/6.08.0_online_appendix_i_es_diagnostics.do, line 171
file open myfile using "$PROJ_PATH/analysis/output/appendix/table_i1_bacon_summary.tex", write text replace
7 · Figures: how each is drawn — 58 figures in the code (command, layers, options, the file it is saved to)
line 24 · event-study plot 20 · coefficient plot 6 · bar 3 · map 2 · scatter 2 · histogram 1
| command | layers | variables | options | saved as | where |
|---|---|---|---|---|---|
twowayline
|
connected |
y fraction_counties
x year
|
xtitle Year · xline 1927 · legend off |
Figure 1Afigure_1a_share_counties_treated.pdf |
5_figures.do:67duke-replication/analysis/scripts/code/5_figures.do, line 67
twoway connected fraction_counties year, lw(1.0) col("230 65 115") msymbol(none) lp(solid) ///
xlab(1922(5)1942, nogrid labsize(5) angle(0)) ///
ylab(0(0.1)0.5, nogrid labs(5) angle(0) format(%03.1f)) /// … |
twowayline
|
connected + connected + connected |
y imr_pub, imr_pub_wt, imr_pub_bk
x year
|
xtitle Year · xline 1927 · legend off |
Figure 1Cfigure_1c_infant_morality_by_race_over_time.pdf |
5_figures.do:118duke-replication/analysis/scripts/code/5_figures.do, line 118
twoway connected imr_pub year, lw(.75) lcolor("black") lp(longdash) msymbol(none) ///
|| connected imr_pub_wt year, lw(1) lcolor("black") lp(line) msymbol(none) ///
|| connected imr_pub_bk year, lw(.75) lcolor … |
twowayline
|
connected + connected |
y `depvar'
x year
(set at run time) |
xtitle Year · xline 1927 · legend off |
Figure 2Cfigure_2`panel'1_`title'_by_year.pdf (set at run time) |
5_figures.do:274duke-replication/analysis/scripts/code/5_figures.do, line 274
twoway ///
|| connected `depvar' year if ever_treated == 0, lw(.5) lcolor("black") lp(longdash) msymbol(none) ///
|| connected `depvar' year if ever_treated == 1, lw(1) lcolor("230 65 115") lp(line) msymbol(no … |
twowayevent-study plot
|
connected + lfit + connected |
y `depvar'
x event_time
(set at run time) |
xtitle Years since capital appropriation · xline 0 · legend off |
Figure 2Cfigure_2`panel'2_`title'_by_event_time.pdf (set at run time) |
5_figures.do:365duke-replication/analysis/scripts/code/5_figures.do, line 365
twoway ///
|| connected `depvar' event_time if event_time <= -.5 & event_time >= -6 , lw(.75) lcolor("230 65 115") lp(line) msymbol(none) ///
|| lfit `depvar' event_time if event_time <= -.5 & event_time >= … |
twowayevent-study plot
|
rcap + scatter + scatter + rcap + scatter + scatter + rcap + scatter + scatter + rcap + scatter + scatter + +1 more |
y b
x modified_event_time
band ll, ul
|
xtitle Years since first capital appropriation from Duke Endowment · xline -.5 · ci rcap · legend order(3 TWFE 6 Stacked-TWFE 9 eTWFE 12 Callaway Sant'Anna) rows(1) position(6) region(style(none)) |
Figure 2Cfigure_2`panel'3_`title'_first_stage.pdf (set at run time) |
5_figures.do:791duke-replication/analysis/scripts/code/5_figures.do, line 791
twoway ///
|| rcap ll ul modified_event_time if new_id == 1, fcol("230 65 115") lcol("230 65 115") msize(2) /// estimates
|| scatter b modified_event_time if new_id == 1, col(white) msize(3) msymbol(s) /// hi … |
twowayline
|
connected + connected |
y rmd
x calendar_year
|
xtitle Year · xline 1927 · legend off |
Figure 3Afigure_3a1_`race_group'_rMD_by_treat_status.pdf (set at run time) |
5_figures.do:845duke-replication/analysis/scripts/code/5_figures.do, line 845
twoway ///
|| connected rmd`race_suf' calendar_year if ever_treated == 0, lw(.5) lcolor("black") lp(longdash) msymbol(none) ///
|| connected rmd`race_suf' calendar_year if ever_treated == 1, lw(1) lcolor("230 6 … |
twowayline
|
connected + connected |
y rmd_good_2yr
x calendar_year
|
xtitle Year · xline 1927 · legend off |
Figure 3Bfigure_3b1_`race_group'_rMD_good_by_treat_status.pdf (set at run time) |
5_figures.do:865duke-replication/analysis/scripts/code/5_figures.do, line 865
twoway ///
|| connected rmd_good_2yr`race_suf' calendar_year if ever_treated == 0, lw(.5) lcolor("black") lp(longdash) msymbol(none) ///
|| connected rmd_good_2yr`race_suf' calendar_year if ever_treated == 1, l … |
twowayline
|
connected + connected |
y rmd_bad_2yr
x calendar_year
|
xtitle Year · xline 1927 · legend off |
Figure 3Cfigure_3c1_`race_group'_rMD_bad_by_treat_status.pdf (set at run time) |
5_figures.do:884duke-replication/analysis/scripts/code/5_figures.do, line 884
twoway ///
|| connected rmd_bad_2yr`race_suf' calendar_year if ever_treated == 0, lw(.5) lcolor("black") lp(longdash) msymbol(none) ///
|| connected rmd_bad_2yr`race_suf' calendar_year if ever_treated == 1, lw( … |
twowayevent-study plot
|
connected + lfit + connected |
y rmd
x event_time
|
xtitle AMD waves since capital appropriation · xline 0 · legend off |
Figure 3Afigure_3a2_`race_group'_rMD_by_event_time.pdf (set at run time) |
5_figures.do:945duke-replication/analysis/scripts/code/5_figures.do, line 945
twoway ///
|| connected rmd`race_suf' event_time if event_time <= -.5 & event_time >= -5 , lw(.75) lcolor("230 65 115") lp(line) msymbol(none) ///
|| lfit rmd`race_suf' event_time if event_time <= -.5 & event_ … |
twowayevent-study plot
|
connected + lfit + connected |
y rmd_good_2yr
x event_time
|
xtitle AMD waves since capital appropriation · xline 0 · legend off |
Figure 3Bfigure_3b2_`race_group'_rMD_good_by_event_time.pdf (set at run time) |
5_figures.do:964duke-replication/analysis/scripts/code/5_figures.do, line 964
twoway ///
|| connected rmd_good_2yr`race_suf' event_time if event_time <= -.5 & event_time >= -5 , lw(.75) lcolor("230 65 115") lp(line) msymbol(none) ///
|| lfit rmd_good_2yr`race_suf' event_time if event_ti … |
twowayevent-study plot
|
connected + lfit + connected |
y rmd_bad_2yr
x event_time
|
xtitle AMD waves since capital appropriation · xline 0 · legend off |
Figure 3Cfigure_3c2_`race_group'_rMD_bad_by_event_time.pdf (set at run time) |
5_figures.do:983duke-replication/analysis/scripts/code/5_figures.do, line 983
twoway ///
|| connected rmd_bad_2yr`race_suf' event_time if event_time <= -.5 & event_time >= -5 , lw(.75) lcolor("230 65 115") lp(line) msymbol(none) ///
|| lfit rmd_bad_2yr`race_suf' event_time if event_time … |
twowayevent-study plot
|
rcap + scatter + scatter + rcap + scatter + scatter + rcap + scatter + scatter + rcap + scatter + scatter + +1 more |
y b
x modified_event_time
band ll, ul
|
xtitle AMD waves since first capital appropriation from Duke Endowment · xline -.5 · ci rcap · legend order(3 TWFE 6 Stacked-TWFE 9 eTWFE 12 Callaway Sant'Anna) rows(1) position(6) region(style(none)) |
Figure 3Cfigure_3`panel'3_`race_group'_`title'_first_stage.pdf (set at run time) |
5_figures.do:1411duke-replication/analysis/scripts/code/5_figures.do, line 1411
twoway ///
|| rcap ll ul modified_event_time if new_id == 1, fcol("230 65 115") lcol("230 65 115") msize(2) /// estimates
|| scatter b modified_event_time if new_id == 1, col(white) msize(3) msymbol(s) /// hi … |
twowayline
|
connected + connected |
y imr_pub
x year
|
xtitle Year · xline 1927 · legend off |
Figure 4Afigure_4a1_imr_by_treatment_status_pooled.pdf |
5_figures.do:1483duke-replication/analysis/scripts/code/5_figures.do, line 1483
twoway connected imr_pub year if ever_treated == 0, lw(.5) lcolor("black") lp(longdash) msymbol(none) ///
|| connected imr_pub year if ever_treated == 1, lw(1) lcolor("230 65 115") lp(line) msymbol(none) /// … |
twowayline
|
connected + connected |
y imr_pub_bk
x year
|
xtitle Year · xline 1927 · legend off |
Figure 4Bfigure_4b1_imr_by_treatment_status_black.pdf |
5_figures.do:1501duke-replication/analysis/scripts/code/5_figures.do, line 1501
twoway connected imr_pub_bk year if ever_treated == 0, lw(.5) lcolor("black") lp(longdash) msymbol(none) ///
|| connected imr_pub_bk year if ever_treated == 1, lw(1) lcolor("230 65 115") lp(line) msymbol(none) /// … |
twowayline
|
connected + connected |
y imr_pub_wt
x year
|
xtitle Year · xline 1927 · legend off |
Figure 4Cfigure_4c1_imr_by_treatment_status_white.pdf |
5_figures.do:1519duke-replication/analysis/scripts/code/5_figures.do, line 1519
twoway connected imr_pub_wt year if ever_treated == 0, lw(.5) lcolor("black") lp(longdash) msymbol(none) ///
|| connected imr_pub_wt year if ever_treated == 1, lw(1) lcolor("230 65 115") lp(line) msymbol(none) /// … |
twowayevent-study plot
|
connected + lfit + connected |
y imr_pub
x event_time
|
xtitle Years since first capital appropriation from Duke Endowment · xline -0.5 · legend off |
Figure 4Afigure_4a2_imr_by_event_time_pooled.pdf |
5_figures.do:1583duke-replication/analysis/scripts/code/5_figures.do, line 1583
twoway ///
|| connected imr_pub event_time if event_time <= -.5 & event_time >= -6 , lw(.75) lcolor("230 65 115") lp(line) msymbol(none) ///
|| lfit imr_pub event_time if event_time <= -.5 & event_time >= -6 ,c … |
twowayevent-study plot
|
connected + lfit + connected |
y imr_pub_bk
x event_time
|
xtitle Years since first capital appropriation from Duke Endowment · xline -0.5 · legend off |
Figure 4Bfigure_4b2_imr_by_event_time_black.pdf |
5_figures.do:1601duke-replication/analysis/scripts/code/5_figures.do, line 1601
twoway ///
|| connected imr_pub_bk event_time if event_time <= -.5 & event_time >= -6 , lw(.75) lcolor("230 65 115") lp(line) msymbol(none) ///
|| lfit imr_pub_bk event_time if event_time <= -.5 & event_time >= … |
twowayevent-study plot
|
connected + lfit + connected |
y imr_pub_wt
x event_time
|
xtitle Years since first capital appropriation from Duke Endowment · xline -0.5 · legend off |
Figure 4Cfigure_4c2_imr_by_event_time_white.pdf |
5_figures.do:1619duke-replication/analysis/scripts/code/5_figures.do, line 1619
twoway ///
|| connected imr_pub_wt event_time if event_time <= -.5 & event_time >= -6 , lw(.75) lcolor("230 65 115") lp(line) msymbol(none) ///
|| lfit imr_pub_wt event_time if event_time <= -.5 & event_time >= … |
twowayevent-study plot
|
rcap + scatter + scatter + rcap + scatter + scatter + rcap + scatter + scatter + rcap + scatter + scatter + +1 more |
y b
x modified_event_time
band ll, ul
|
xtitle Years since first capital appropriation from Duke Endowment · xline -.5 · ci rcap · legend order(3 Poisson 6 Stacked-Poisson 9 eTWFE 12 Callaway Sant'Anna) rows(1) position(6) region(style(none)) |
Figure 4Cfigure_4`panel'3_`depvar_title'_event_study_`race'.pdf (set at run time) |
5_figures.do:2101duke-replication/analysis/scripts/code/5_figures.do, line 2101
twoway ///
|| rcap ll ul modified_event_time if new_id == 1, fcol("230 65 115") lcol("230 65 115") msize(2) /// estimates
|| scatter b modified_event_time if new_id == 1, col(white) msize(3) msymbol(s) /// hi … |
ggplotmap
|
sf + sf |
Figure 1Bfigure_1b_duke_map.pdf |
5_maps.R:64duke-replication/analysis/scripts/code/5_maps.R, line 64
duke_map <- ggplot() + |
||
ggplotmap
|
sf + sf |
Figure 1Dfigure_1d_imr_map.pdf |
5_maps.R:79duke-replication/analysis/scripts/code/5_maps.R, line 79
imr_map <- ggplot() + |
||
twowayline
|
connected + connected |
y `depvar'
x year
(set at run time) |
xtitle Year · xline 1927 · legend off |
Figure B1Afigure_b1a`row'_`title'_by_year.pdf (set at run time) |
6.01_online_appendix_b_hospitals.do:298duke-replication/analysis/scripts/code/6.01_online_appendix_b_hospitals.do, line 298
twoway ///
|| connected `depvar' year if ever_treated == 0, lw(.5) lcolor("black") lp(longdash) msymbol(none) ///
|| connected `depvar' year if ever_treated == 1, lw(1) lcolor("230 65 115") lp(line) msymbol(no … |
twowayevent-study plot
|
rcap + scatter + scatter + rcap + scatter + scatter + rcap + scatter + scatter + rcap + scatter + scatter + +1 more |
y b
x modified_event_time
band ll, ul
|
xtitle Years since first capital appropriation from Duke Endowment · xline -.5 · ci rcap · legend order(3 TWFE 6 Stacked-TWFE 9 eTWFE 12 Callaway Sant'Anna) rows(1) position(6) region(style(none)) |
Figure B1Bfigure_b1b`row'_`title'_first_stage.pdf (set at run time) |
6.01_online_appendix_b_hospitals.do:730duke-replication/analysis/scripts/code/6.01_online_appendix_b_hospitals.do, line 730
twoway ///
|| rcap ll ul modified_event_time if new_id == 1, fcol("230 65 115") lcol("230 65 115") msize(2) /// estimates
|| scatter b modified_event_time if new_id == 1, col(white) msize(3) msymbol(s) /// hi … |
twowayline
|
connected + connected |
y rmd_black
x calendar_year
|
xtitle Year · xline 1927 · legend off |
Figure C1Afigure_c1a1_`race_group'_rMD_by_treatment_status.pdf (set at run time) |
6.02_online_appendix_c_doctors.do:776duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 776
twoway ///
|| connected rmd`race_suf' calendar_year if ever_treated == 0, lw(.5) lcolor("black") lp(longdash) msymbol(none) ///
|| connected rmd`race_suf' calendar_year if ever_treated == 1, lw(1) lcolor("230 6 … |
twowayline
|
connected + connected |
y rmd_good_2yr_black
x calendar_year
|
xtitle Year · xline 1927 · legend off |
Figure C1Afigure_c1a2_`race_group'_rMD_good_by_treatment_status.pdf (set at run time) |
6.02_online_appendix_c_doctors.do:796duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 796
twoway ///
|| connected rmd_good_2yr`race_suf' calendar_year if ever_treated == 0, lw(.5) lcolor("black") lp(longdash) msymbol(none) ///
|| connected rmd_good_2yr`race_suf' calendar_year if ever_treated == 1, l … |
twowayline
|
connected + connected |
y rmd_bad_2yr_black
x calendar_year
|
xtitle Year · xline 1927 · legend off |
Figure C1Afigure_c1a3_`race_group'_rMD_bad_by_treatment_status.pdf (set at run time) |
6.02_online_appendix_c_doctors.do:816duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 816
twoway ///
|| connected rmd_bad_2yr`race_suf' calendar_year if ever_treated == 0, lw(.5) lcolor("black") lp(longdash) msymbol(none) ///
|| connected rmd_bad_2yr`race_suf' calendar_year if ever_treated == 1, lw( … |
twowayline
|
connected + connected |
y rmd_white
x calendar_year
|
xtitle Year · xline 1927 · legend off |
Figure C2Afigure_c2a1_`race_group'_rMD_by_treatment_status.pdf (set at run time) |
6.02_online_appendix_c_doctors.do:850duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 850
twoway ///
|| connected rmd`race_suf' calendar_year if ever_treated == 0, lw(.5) lcolor("black") lp(longdash) msymbol(none) ///
|| connected rmd`race_suf' calendar_year if ever_treated == 1, lw(1) lcolor("230 6 … |
twowayline
|
connected + connected |
y rmd_good_2yr_white
x calendar_year
|
xtitle Year · xline 1927 · legend off |
Figure C2Afigure_c2a2_`race_group'_rMD_good_by_treatment_status.pdf (set at run time) |
6.02_online_appendix_c_doctors.do:870duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 870
twoway ///
|| connected rmd_good_2yr`race_suf' calendar_year if ever_treated == 0, lw(.5) lcolor("black") lp(longdash) msymbol(none) ///
|| connected rmd_good_2yr`race_suf' calendar_year if ever_treated == 1, l … |
twowayline
|
connected + connected |
y rmd_bad_2yr_white
x calendar_year
|
xtitle Year · xline 1927 · legend off |
Figure C2Afigure_c2a3_`race_group'_rMD_bad_by_treatment_status.pdf (set at run time) |
6.02_online_appendix_c_doctors.do:890duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 890
twoway ///
|| connected rmd_bad_2yr`race_suf' calendar_year if ever_treated == 0, lw(.5) lcolor("black") lp(longdash) msymbol(none) ///
|| connected rmd_bad_2yr`race_suf' calendar_year if ever_treated == 1, lw( … |
twowayevent-study plot
|
rcap + scatter + scatter + rcap + scatter + scatter + rcap + scatter + scatter + rcap + scatter + scatter + +1 more |
y b
x modified_event_time
band ll, ul
|
xtitle AMD waves since first capital appropriation from Duke Endowment · xline -.5 · ci rcap · legend order(3 TWFE 6 Stacked-TWFE 9 eTWFE 12 Callaway Sant'Anna) rows(1) position(6) region(style(none)) |
Figure C1Bfigure_c`figno'b`row'_`depvar_stub'_doctors_first_stage.pdf (set at run time) |
6.02_online_appendix_c_doctors.do:1325duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 1325
twoway ///
|| rcap ll ul modified_event_time if new_id == 1, fcol("230 65 115") lcol("230 65 115") msize(2) /// estimates
|| scatter b modified_event_time if new_id == 1, col(white) msize(3) msymbol(s) /// hi … |
twowayline
|
connected + connected |
y `occ'
x year
(set at run time) |
xtitle Year · xline 2.7 · legend off |
Figure C3Afigure_c3a`row'_med_profs_by_treatment_status_`occ'.pdf (set at run time) |
6.02_online_appendix_c_doctors.do:1400duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 1400
twoway connected `occ' year if year >= 2 & ever_treated == 0, lw(1) lcolor("black") lp(longdash) msymbol(S) msize(3) mcolor("black") ///
|| connected `occ' year if year >= 2 & ever_treated == 1, lw(1) lcolor("230 65 … |
event_plotevent-study plot
|
event_plot |
estimates cs_b#cs_v, ols
|
xtitle Census wave since first capital appropriation · ytitle Average causal effect · xline -0.5 · yline 0 · ci rcap · legend order(1 Callaway-Sant'Anna 3 TWFE OLS) rows(1) position(6) region(style(none)) |
Figure C3Bfigure_c3b`row'_event_study_hosp_staff_``i''.pdf (set at run time) |
6.02_online_appendix_c_doctors.do:1486duke-replication/analysis/scripts/code/6.02_online_appendix_c_doctors.do, line 1486
event_plot cs_b#cs_v ols, ///
stub_lag(Tp# L#event) stub_lead(Tm# F#event) ///
plottype(scatter) ciplottype(rcap) ///
together trimlead(2) trimlag(1) noautolegend ///
graph_opt( ///
subtitle("`: v … |
twowayevent-study plot
|
rarea + connected + connected + scatteri |
y b
x order
band ll, ul
|
xtitle Years since first capital appropriation from Duke Endowment · xline -.5 · ci rarea · legend off |
Figure D1Bfigure_d1`panel'_event_study_pooled_imr_stacked_poisson_kappa_`n_pre'_controls_`cntrl_type'.pdf (set at run time) |
6.03_online_appendix_d_infant_mortality.do:647duke-replication/analysis/scripts/code/6.03_online_appendix_d_infant_mortality.do, line 647
twoway ///
|| rarea ll ul order if new_id == 1, fcol(gs14) lcol(white) msize(3) /// estimates
|| connected b order if new_id == 1, lw(1.1) col(white) msize(7) msymbol(s) lp(solid) /// highlighting
|| conn … |
twowaybar
|
bar + bar + scatter |
y share
x years_until_rec
|
xtitle Years since first appropriation · legend off |
Figure E1figure_e1_share_rec_pay_by_years_since_app.pdf |
6.04_online_appendix_e_heterogeneity.do:336duke-replication/analysis/scripts/code/6.04_online_appendix_e_heterogeneity.do, line 336
twoway ///
|| bar share years_until_rec if years_until_rec < 4 , bcolor(gs7) ///
|| bar share years_until_rec if years_until_rec == 4 , bcolor(gs3) ///
|| scatter share years_until_rec, m(i) mlabel(str_amount … |
twowaycoefficient plot
|
rcap + scatter |
y bin_b
x specification_type
band bin_low, bin_high
|
title Intent to treat (Duke = 1) · yline 0 · ci rcap · legend off |
Figure E2Afigure_e2a_bin_pooled.pdf |
6.04_online_appendix_e_heterogeneity.do:474duke-replication/analysis/scripts/code/6.04_online_appendix_e_heterogeneity.do, line 474
twoway ///
|| rcap bin_low bin_high specification_type if race_label == "Pooled", lcol("230 65 115") lwidth(.75) msize(4) ///
|| scatter bin_b specification_type if race_label == "Pooled", msymbol(O) msize(3.5) m … |
twowaycoefficient plot
|
rcap + scatter |
y app_b
x specification_type
band app_low, app_high
|
title Appropriations, effect of $1 million from Duke · yline 0 · ci rcap · legend off |
Figure E2Bfigure_e2b_app_pooled.pdf |
6.04_online_appendix_e_heterogeneity.do:494duke-replication/analysis/scripts/code/6.04_online_appendix_e_heterogeneity.do, line 494
twoway ///
|| rcap app_low app_high specification_type if race_label == "Pooled", lcol("230 65 115") lwidth(.75) msize(4) ///
|| scatter app_b specification_type if race_label == "Pooled", msymbol(O) msize(3.5) m … |
twowaycoefficient plot
|
rcap + scatter |
y pay_b
x specification_type
band pay_low, pay_high
|
title Payments, effect of $1 million from Duke · yline 0 · ci rcap · legend off |
Figure E2Cfigure_e2c_pay_pooled.pdf |
6.04_online_appendix_e_heterogeneity.do:514duke-replication/analysis/scripts/code/6.04_online_appendix_e_heterogeneity.do, line 514
twoway ///
|| rcap pay_low pay_high specification_type if race_label == "Pooled", lcol("230 65 115") lwidth(.75) msize(4) ///
|| scatter pay_b specification_type if race_label == "Pooled", msymbol(O) msize(3.5) m … |
twowayline
|
connected + connected |
y imr_pub_bk
x year
|
title Black infant mortality by year comparing ever-treated NC to Duke-ineligible other southern counties · xtitle Year · xline 1927 · legend off |
Figure J1Afigure_j1a_imr_treated_vs_southern_bk.pdf |
6.06_online_appendix_j_non_nc.do:161duke-replication/analysis/scripts/code/6.06_online_appendix_j_non_nc.do, line 161
twoway ///
|| connected imr_pub_bk year if group == 1, msymbol(none) lw(1.0) col("230 65 115") msymbol(none) lp(solid) ///
|| connected imr_pub_bk year if group == 3, msymbol(none) lw(.5) col("black") msymbol(no … |
twowayline
|
connected + connected |
y imr_pub_wt
x year
|
title White infant mortality by year comparing ever-treated NC to Duke-ineligible other southern counties · xtitle Year · xline 1927 · legend off |
Figure J1Bfigure_j1b_imr_treated_vs_southern_wt.pdf |
6.06_online_appendix_j_non_nc.do:191duke-replication/analysis/scripts/code/6.06_online_appendix_j_non_nc.do, line 191
twoway ///
|| connected imr_pub_wt year if group == 1, msymbol(none) lw(1.0) col("230 65 115") msymbol(none) lp(solid) ///
|| connected imr_pub_wt year if group == 3, msymbol(none) lw(.5) col("black") msymbol(no … |
twowayevent-study plot
|
rarea + connected + connected + scatteri |
y b
x modified_event_time
band ll, ul
|
xtitle Years since first capital appropriation from Duke Endowment · xline -.5 · ci rarea · legend off |
Figure J2Cfigure_j2`panel'_es_other_southern_states_imr_`race'.pdf (set at run time) |
6.06_online_appendix_j_non_nc.do:452duke-replication/analysis/scripts/code/6.06_online_appendix_j_non_nc.do, line 452
twoway ///
|| rarea ll ul modified_event_time if new_id == 1, fcol(gs14) lcol(white) msize(3) /// estimates
|| connected b modified_event_time if new_id == 1, lw(1.1) col(white) msize(7) msymbol(s) lp(solid) … |
twowayline
|
scatteri + rarea + connected + connected + scatteri + pcarrow + pcarrow |
y le_white, le_black
x year
band min_age_numident, max_age_numident
|
title Life expectancy at birth is below age 65 for those born before 1940 · xtitle Birth year · ci rarea · legend off |
Figure F1figure_F1_life_exp_at_birth_with_numident_restrictions.pdf |
6.07_online_appendix_f_long_run.do:898duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 898
twoway ///
|| scatteri 80 1932 80 1941, recast(area) lcol(gs8) lp(l) lwidth(0.5) fcolor(blue%50) /// Birth year cohort
|| rarea min_age_numident max_age_numident year if year <= 2020 & min_age_numident <= 80 & … |
graph barbar
|
bar |
y y_value
by x_value
|
xtitle Years since first capital appropriation from Duke Endowment relative to birth year |
Figure F3figure_F3_unbalanced_event_time_long_run.pdf |
6.07_online_appendix_f_long_run.do:997duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 997
graph bar (sum) y_value, over(x_value) ///
b1title("Years since first capital appropriation from Duke Endowment relative to birth year", size(4) height(7)) ///
ytitle("") ///
subtitle("Number of observations … |
twowayevent-study plot
|
rcap + scatter + scatter + scatteri + pcarrow + pcarrow + pcarrow |
y b, (0)
x modified_event_time
band ll, ul
|
xtitle Years since first capital appropriation from Duke Endowment relative to birth year · xline .5 · ci rcap · legend off |
Figure F2figure_F2_long_run_unbalanced_event_study.pdf |
6.07_online_appendix_f_long_run.do:1169duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 1169
twoway ///
|| rcap ll ul modified_event_time if new_id == 1, fcol("230 65 115") lcol("230 65 115") msize(2) /// estimates
|| scatter b modified_event_time if new_id == 1, col(white) msize(3) msymbol(s) /// hi … |
twowayevent-study plot
|
rcap + scatter + scatter + scatteri + pcarrow + pcarrow + pcarrow |
y b, (0)
x modified_event_time
band ll, ul
|
xtitle Years since first capital appropriation from Duke Endowment relative to birth year · xline .5 · ci rcap · legend off |
Figure F4figure_F4_long_run_unbalanced_event_study_extended.pdf |
6.07_online_appendix_f_long_run.do:1412duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 1412
twoway ///
|| rcap ll ul modified_event_time if new_id == 1, fcol("230 65 115") lcol("230 65 115") msize(2) /// estimates
|| scatter b modified_event_time if new_id == 1, col(white) msize(3) msymbol(s) /// hi … |
graph barbar
|
bar |
y y_value
by x_value
|
xtitle Years since first capital appropriation from Duke Endowment relative to birth year |
Figure F5figure_F5_bot_balanced_event_time_long_run.pdf |
6.07_online_appendix_f_long_run.do:1542duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 1542
graph bar (sum) y_value, over(x_value) ///
b1title("Years since first capital appropriation from Duke Endowment relative to birth year", size(4) height(7)) ///
ytitle("") ///
subtitle("Number of observations … |
twowayevent-study plot
|
rcap + scatter + scatter + scatteri + pcarrow + pcarrow |
y b, (0)
x modified_event_time
band ll, ul
|
xtitle Years since first capital appropriation from Duke Endowment relative to birth year · xline .5 · ci rcap · legend off |
Figure F5figure_F5_balanced_event_study.pdf |
6.07_online_appendix_f_long_run.do:1714duke-replication/analysis/scripts/code/6.07_online_appendix_f_long_run.do, line 1714
twoway ///
|| rcap ll ul modified_event_time if new_id == 1, fcol("230 65 115") lcol("230 65 115") msize(2) /// estimates
|| scatter b modified_event_time if new_id == 1, col(white) msize(3) msymbol(s) /// hi … |
twowayhistogram
|
histogram |
x b
|
xtitle Coefficient on Duke exposure · ytitle Density · xline `b_main', `b_avg' (set at run time) · scheme s2mono |
Figure K1figure_k1_ri_all_cty_b.pdf |
6.09_online_appendix_k_ri.do:203duke-replication/analysis/scripts/code/6.09_online_appendix_k_ri.do, line 203
twoway ///
(histogram b, percent fcolor(none) lcolor(black)), ///
subtitle("{bf:Randomize set of treated counties (10,000 reps)}", position(11) justification(left) size(4)) ///
xline(`b_main', lstyle(foregrou … |
twowayevent-study plot
|
rcap + scatter + scatter + rcap + scatter + scatter + scatteri |
y b
x modified_event_time
band ll, ul
|
xtitle Years since first capital appropriation from Duke Endowment · xline -.5 · ci rcap · legend order(3 TWFE 6 Callaway Sant'Anna) rows(1) position(6) region(style(none)) |
Figure L1Cfigure_l1`panel'_`title'_first_stage_1922_1950.pdf (set at run time) |
6.10_online_appendix_l_extended_panel.do:703duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 703
twoway ///
|| rcap ll ul modified_event_time if new_id == 1, fcol("230 65 115") lcol("230 65 115") msize(2) /// estimates
|| scatter b modified_event_time if new_id == 1, col(white) msize(3) msymbol(s) /// hi … |
twowayline
|
connected + connected |
y imr_bailey, imr_bailey_NC_treated
x year
|
title Pooled infant mortality by year comparing ever-treated NC to Duke-ineligible other southern counties · xtitle Year · xline 1927 · legend off |
Figure L2Afigure_l2a_imr_bailey_treated_vs_bailey_south_1962.pdf |
6.10_online_appendix_l_extended_panel.do:853duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 853
twoway ///
|| connected imr_bailey year if year > 1924 & year < 1962, lcolor(black) lpattern(dash) lwidth(medthick) msymbol(none) ///
|| connected imr_bailey_NC_treated year if year > 1924 & year < 1962, lcolor( … |
twowayevent-study plot
|
rarea + connected + connected + scatteri |
y b
x modified_event_time
band ll, ul
|
xtitle Years since first capital appropriation from Duke Endowment · xline -.5 · ci rarea · legend off |
Figure L2Bfigure_l2b_pooled_other_southern_states_event_study_bailey.pdf |
6.10_online_appendix_l_extended_panel.do:1076duke-replication/analysis/scripts/code/6.10_online_appendix_l_extended_panel.do, line 1076
twoway ///
|| rarea ll ul modified_event_time if new_id == 1, fcol(gs14) lcol(white) msize(3) /// estimates
|| connected b modified_event_time if new_id == 1, lw(1.1) col(white) msize(7) msymbol(s) lp(solid) … |
twowayline
|
connected + connected |
y imr_pub
x year
|
title Comapre top 50% to bottom 50% · xtitle Year · legend pos(5) col(2) ring(0) label(1 Bottom 50%) label(2 Top 50%) size(7) |
Figure M1Cfigure_m1`panel'1_psm_top`bottom_trim'pct_fake_treat_clean_cntrls_pooled_imr_by_treatment_over_time.pdf (set at run time) |
6.11_online_appendix_m_psm.do:372duke-replication/analysis/scripts/code/6.11_online_appendix_m_psm.do, line 372
twoway connected imr_pub year if out_of_state_fake_treat == 0, lw(1.5) lcolor("black") lp(longdash) msymbol(none) ///
|| connected imr_pub year if out_of_state_fake_treat == 1, lw(1.5) lcolor("orange") lp(shortdash … |
twowayline
|
connected + connected |
y imr_pub_bk
x year
|
xtitle Year · legend pos(5) col(2) ring(0) label(1 Bottom 50%) label(2 Top 50%) size(6) |
Figure M1Cfigure_m1`panel'2_psm_top`bottom_trim'pct_fake_treat_clean_cntrls_black_imr_by_treatment_over_time.pdf (set at run time) |
6.11_online_appendix_m_psm.do:388duke-replication/analysis/scripts/code/6.11_online_appendix_m_psm.do, line 388
twoway connected imr_pub_bk year if out_of_state_fake_treat == 0, lw(1.5) lcolor("black") lp(longdash) msymbol(none) ///
|| connected imr_pub_bk year if out_of_state_fake_treat == 1, lw(1.5) lcolor("orange") lp(sho … |
twowayline
|
connected + connected |
y imr_pub_wt
x year
|
xtitle Year · legend pos(5) col(2) ring(0) label(1 Bottom 50%) label(2 Top 50%) size(7) |
Figure M1Cfigure_m1`panel'3_psm_top`bottom_trim'pct_fake_treat_clean_cntrls_white_imr_by_treatment_over_time.pdf (set at run time) |
6.11_online_appendix_m_psm.do:403duke-replication/analysis/scripts/code/6.11_online_appendix_m_psm.do, line 403
twoway connected imr_pub_wt year if out_of_state_fake_treat == 0, lw(1.5) lcolor("black") lp(longdash) msymbol(none) ///
|| connected imr_pub_wt year if out_of_state_fake_treat == 1, lw(1.5) lcolor("orange") lp(sho … |
ggplotcoefficient plot
|
linerange + point + point + linerange + point + point + segment + segment |
y b
x order
band low, high
|
title Pooled · ci geom_linerange · scheme theme_classic |
not saved | 7_combined_spec_chart.R:86duke-replication/analysis/scripts/code/7_combined_spec_chart.R, line 86
coef_plot = ggplot(data = regression_results
, aes(y = b, x = order)) + |
ggplotscatter
|
point + point + point + point + point + point + point + point + point + point + point + point + +12 more |
y 1, 0, -1, -2, -5, -6, +6 more
x order
by countyFE
|
scheme theme_classic · legend position=none |
not saved | 7_combined_spec_chart.R:126duke-replication/analysis/scripts/code/7_combined_spec_chart.R, line 126
dot_plot = ggplot(data = subset(regression_results,
notes != "sr, poisson, death_rate, Ycounty, Yyear, Ycontrols, Yweights")
, aes(y = 1, x = order, fill = as.factor(c … |
ggplotcoefficient plot
|
linerange + point + point + linerange + point + point + segment + segment |
y white_b
x order
band white_low, white_high
|
title White · ci geom_linerange · scheme theme_classic |
not saved | 7_combined_spec_chart.R:332duke-replication/analysis/scripts/code/7_combined_spec_chart.R, line 332
white_coef_plot = ggplot(data = regression_results
, aes(y = white_b, x = order)) + |
ggplotcoefficient plot
|
linerange + point + point + linerange + point + point + segment + segment |
y black_b
x order
band black_low, black_high
|
title Black · ci geom_linerange · scheme theme_classic |
Figure 5Afigure_5a_spec_chart_combined.pdf |
7_combined_spec_chart.R:374duke-replication/analysis/scripts/code/7_combined_spec_chart.R, line 374
black_coef_plot = ggplot(data = regression_results
, aes(y = black_b, x = order)) + |
ggplotscatter
|
linerange + point + point + linerange + point + point + segment + text + text + text |
y -order
x b
band low, high
|
ci geom_linerange · scheme theme_classic |
Figure 5Bfigure_5b_sample_chart.pdf |
7_sample_chart.R:86duke-replication/analysis/scripts/code/7_sample_chart.R, line 86
coef_plot = ggplot(data = regression_results
, aes(y = -order, x = b)) + |