Replication package 12601 · journal · open the deposit

How the code gets from data to results

Labor Market Effects of Spatial Licensing Requirements: Evidence from CPA Mobility

Code for: Labor Market Effects of Spatial Licensing Requirements: Evidence from CPA Mobility Journal of Accounting Research 2021

13
scripts
29
input files
3
file hand-offs
33
merges
116
sample steps
91
estimations

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

  • ./Data/Census/Data_QCEW/QCEW_RAWData/csv_qcew_cpas_datasets.dta Stata · read by 3 scripts
    03_CPAMob_QCEW_State.do:22
    STATA/03_CPAMob_QCEW_State.do, line 22 use "./Data/Census/Data_QCEW/QCEW_RAWData/csv_qcew_cpas_datasets.dta", clear
  • ./Data/Census/Data_QCEW/FIPSandNamesCrosswalk.dta Stata
    03_CPAMob_QCEW_State.do:68
    STATA/03_CPAMob_QCEW_State.do, line 68 merge m:1 area_fips using "./Data/Census/Data_QCEW/FIPSandNamesCrosswalk.dta"
Other input files 27 files
  • dirname + CSV · read by 5 scripts
    03_CPAMob_QCEW_State.do:28
    STATA/03_CPAMob_QCEW_State.do, line 28 import delimited using "`d'", stringcols(_all) clear
  • ./Data/Helper/LawDummiesCensusState.dta Stata · read by 3 scripts
    02_CPAMob_AdoptionPrediction.do:26
    STATA/02_CPAMob_AdoptionPrediction.do, line 26 use "./Data/Helper/LawDummiesCensusState.dta", clear
  • ./Data/AICPA/Data_MapSurvey/CPAMobility_Staffing/CPAMobility_Staffing_StataImport/MAPSurvey_Staffing_datasets.dta Stata
    07_CPAMob_AICPAMap.do:18
    STATA/07_CPAMob_AICPAMap.do, line 18 use "./Data/AICPA/Data_MapSurvey/CPAMobility_Staffing/CPAMobility_Staffing_StataImport/MAPSurvey_Staffing_datasets.dta", clear /*23 obs - correct*/
  • ./Data/Census/Data_SUSB/SUSB_6digitnaics/SUSB_datasets.dta Stata
    04_CPAMob_SUSB_State.do:22
    STATA/04_CPAMob_SUSB_State.do, line 22 use "./Data/Census/Data_SUSB/SUSB_6digitnaics/SUSB_datasets.dta", clear
  • ./Data/Controls/bea_gdp_annual_naicsall_msa_clean.csv CSV
    06_CPAMob_QCEW_MSA.do:64
    STATA/06_CPAMob_QCEW_MSA.do, line 64 import delimited "./Data/Controls/bea_gdp_annual_naicsall_msa_clean.csv", encoding(ISO-8859-1)clear stringc(_all)
  • ./Data/Controls/BEA_GDPbyState_clear.xls Excel
    01_CPAMob_ControlsPrep.do:14
    STATA/01_CPAMob_ControlsPrep.do, line 14 import excel "./Data/Controls/BEA_GDPbyState_clear.xls", sheet("Sheet0") firstrow clear
  • ./Data/Controls/CPAMobility_BLS_LAUS_CountyEmployment.dta Stata
    05_CPAMob_QCEW_BorderCounty.do:137
    STATA/05_CPAMob_QCEW_BorderCounty.do, line 137 use "./Data/Controls/CPAMobility_BLS_LAUS_CountyEmployment.dta", clear
  • ./Data/Controls/Data_ExtendedControls/usa_00015.dta Stata
    01_CPAMob_ControlsPrep.do:62
    STATA/01_CPAMob_ControlsPrep.do, line 62 use "./Data/Controls/Data_ExtendedControls/usa_00015.dta", clear /*downloaded IPUMS file*/
19 more
  • ./Data/Controls/UnemploymentState_cleanforimport.xlsx Excel
    01_CPAMob_ControlsPrep.do:32
    STATA/01_CPAMob_ControlsPrep.do, line 32 import excel "./Data/Controls/UnemploymentState_cleanforimport.xlsx", sheet("Sheet1") firstrow clear
  • ./Data/Helper/CPAMobility_AdjanctCountiesBorderIDs.dta Stata
    05_CPAMob_QCEW_BorderCounty.do:105
    STATA/05_CPAMob_QCEW_BorderCounty.do, line 105 merge m:1 area_fips using "./Data/Helper/CPAMobility_AdjanctCountiesBorderIDs.dta"
  • ./Data/Helper/CPAMobility_MAPSurvey_Adoption.xlsx Excel
    07_CPAMob_AICPAMap.do:104
    STATA/07_CPAMob_AICPAMap.do, line 104 import excel "./Data/Helper/CPAMobility_MAPSurvey_Adoption.xlsx", sheet("Mobility_Effective") firstrow clear
  • ./Data/Helper/DataCollectionFrame.xls Excel
    10_CPAMob_Qual2_EBSA.do:60
    STATA/10_CPAMob_Qual2_EBSA.do, line 60 import excel "./Data/Helper/DataCollectionFrame.xls", sheet("Sheet1") firstrow clear
  • ./Data/Helper/LawDummiesAICPAMisconduct.dta Stata
    09_CPAMob_Qual1_AICPAMisconduct.do:57
    STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 57 use "./Data/Helper/LawDummiesAICPAMisconduct.dta", clear
  • ./Data/Helper/LawDummiesCensusCounty.dta Stata
    05_CPAMob_QCEW_BorderCounty.do:74
    STATA/05_CPAMob_QCEW_BorderCounty.do, line 74 merge m:1 area_fips year using "./Data/Helper/LawDummiesCensusCounty.dta"
  • ./Data/Helper/LawDummiesPensionPlans.dta Stata
    08_CPAMob_PensionPlanFees.do:315
    STATA/08_CPAMob_PensionPlanFees.do, line 315 use "./Data/Helper/LawDummiesPensionPlans.dta", clear
  • ./Data/Helper/us_county_db.dta Stata
    05_CPAMob_QCEW_BorderCounty.do:117
    STATA/05_CPAMob_QCEW_BorderCounty.do, line 117 merge m:1 area_fips using "./Data/Helper/us_county_db.dta"
  • ./Data/LawPrediction/ColbertMurray.dta Stata
    02_CPAMob_AdoptionPrediction.do:107
    STATA/02_CPAMob_AdoptionPrediction.do, line 107 merge m:1 StatePostal using "./Data/LawPrediction/ColbertMurray.dta"
  • ./Data/LawPrediction/CPAMob_PoliticalEconomy.xlsx Excel
    02_CPAMob_AdoptionPrediction.do:77
    STATA/02_CPAMob_AdoptionPrediction.do, line 77 import excel "./Data/LawPrediction/CPAMob_PoliticalEconomy.xlsx", sheet("Sheet1") firstrow clear
  • ./Data/LawPrediction/Data_BDS/bds_e_st_release.csv CSV
    02_CPAMob_AdoptionPrediction.do:48
    STATA/02_CPAMob_AdoptionPrediction.do, line 48 import delimited "./Data/LawPrediction/Data_BDS/bds_e_st_release.csv", encoding(ISO-8859-1)clear
  • ./Data/LawPrediction/LawsByState.xls Excel
    02_CPAMob_AdoptionPrediction.do:18
    STATA/02_CPAMob_AdoptionPrediction.do, line 18 import excel "./Data/LawPrediction/LawsByState.xls", sheet("Sheet1") firstrow clear
  • ./Data/LawPrediction/macrocontrols.dta Stata
    02_CPAMob_AdoptionPrediction.do:40
    STATA/02_CPAMob_AdoptionPrediction.do, line 40 merge 1:1 area_fips year using "./Data/LawPrediction/macrocontrols.dta"
  • ./Data/LawPrediction/StatesPostalCodeCrosswald.xlsx Excel
    02_CPAMob_AdoptionPrediction.do:95
    STATA/02_CPAMob_AdoptionPrediction.do, line 95 import excel "./Data/LawPrediction/StatesPostalCodeCrosswald.xlsx", sheet("Sheet1") clear
  • ./Data/PensionPlans/Data_Form5500_AuditFees/RawData_Unzipped/f_5500_`i'_latest.csv CSV
    08_CPAMob_PensionPlanFees.do:238
    STATA/08_CPAMob_PensionPlanFees.do, line 238 import delimited "./Data/PensionPlans/Data_Form5500_AuditFees/RawData_Unzipped/f_5500_`i'_latest.csv", encoding(ISO-8859-1) clear
  • ./Data/PensionPlans/Data_Form5500_AuditFees/RawData_Unzipped/F_SCH_C_PART1_ITEM2_`i'_latest.csv CSV
    08_CPAMob_PensionPlanFees.do:160
    STATA/08_CPAMob_PensionPlanFees.do, line 160 import delimited "./Data/PensionPlans/Data_Form5500_AuditFees/RawData_Unzipped/F_SCH_C_PART1_ITEM2_`i'_latest.csv", encoding(ISO-8859-1) clear
  • ./Data/PensionPlans/Data_Form5500_AuditFees/RawData_Unzipped/F_SCH_H_`i'_latest.csv CSV
    08_CPAMob_PensionPlanFees.do:138
    STATA/08_CPAMob_PensionPlanFees.do, line 138 import delimited "./Data/PensionPlans/Data_Form5500_AuditFees/RawData_Unzipped/F_SCH_H_`i'_latest.csv", encoding(ISO-8859-1) clear
  • ./Data/Quality/CO_Quality/FRM_-_Public_Accounting_Firm_-_All_Statuses.csv CSV
    11_CPAMob_Qual3_CODiscAction.do:18
    STATA/11_CPAMob_Qual3_CODiscAction.do, line 18 import delimited "./Data/Quality/CO_Quality/FRM_-_Public_Accounting_Firm_-_All_Statuses.csv", encoding(ISO-8859-1) stringc(_all) clear /*Downloaded data on 31 August 2019*/
  • ./Data/Quality/Data_EBSA_Form5500_Enforcement/ebsa_ocats.csv CSV
    10_CPAMob_Qual2_EBSA.do:16
    STATA/10_CPAMob_Qual2_EBSA.do, line 16 import delimited "./Data/Quality/Data_EBSA_Form5500_Enforcement/ebsa_ocats.csv", encoding(ISO-8859-1)clear

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

13 scripts, in the order the master script runs them; 3 hand-offs through 1 intermediate files.

STATA/01_CPAMob_ControlsPrep.do → STATA/03_CPAMob_QCEW_State.do: extendedstatecontrols.dtaSTATA/01_CPAMob_ControlsPrep.do → STATA/04_CPAMob_SUSB_State.do: extendedstatecontrols.dtaSTATA/01_CPAMob_ControlsPrep.do → STATA/05_CPAMob_QCEW_BorderCounty.do: extendedstatecontrols.dta STATA/00_CPAMob_Master.do 1. 00_CPAMob_Master.do STATA/01_CPAMob_ControlsPrep.do · reads 3 input files 2. 01_CPAMob_ControlsPrep.do STATA/02_CPAMob_AdoptionPrediction.do · reads 7 input files · 6 estimations 3. 02_CPAMob_AdoptionPrediction.do 6 est.STATA/03_CPAMob_QCEW_State.do · reads 4 input files · 18 estimations 4. 03_CPAMob_QCEW_State.do 18 est.STATA/reltimedummmies.do 5. reltimedummmies.do STATA/04_CPAMob_SUSB_State.do · reads 3 input files · 13 estimations 6. 04_CPAMob_SUSB_State.do 13 est.STATA/05_CPAMob_QCEW_BorderCounty.do · reads 6 input files · 9 estimations 7. 05_CPAMob_QCEW_BorderCounty.do 9 est.STATA/06_CPAMob_QCEW_MSA.do · reads 3 input files · 7 estimations 8. 06_CPAMob_QCEW_MSA.do 7 est.STATA/07_CPAMob_AICPAMap.do · reads 3 input files · 4 estimations 9. 07_CPAMob_AICPAMap.do 4 est.STATA/08_CPAMob_PensionPlanFees.do · reads 4 input files · 7 estimations 10. 08_CPAMob_PensionPlanFees.do 7 est.STATA/09_CPAMob_Qual1_AICPAMisconduct.do · reads 1 input files · 13 estimations 11. 09_CPAMob_Qual1_AICPAMisconduct.do 13 est.STATA/10_CPAMob_Qual2_EBSA.do · reads 2 input files · 12 estimations 12. 10_CPAMob_Qual2_EBSA.do 12 est.STATA/11_CPAMob_Qual3_CODiscAction.do · reads 1 input files · 2 estimations 13. 11_CPAMob_Qual3_CODiscAction.do 2 est.
  1. 1.STATA/00_CPAMob_Master.do master script
  2. 2.STATA/01_CPAMob_ControlsPrep.do run by STATA/00_CPAMob_Master.do line 27 reads 3 input files · 2 merges ·
    writes extendedstatecontrols.dta → read by 03_CPAMob_QCEW_State.do, 04_CPAMob_SUSB_State.do, 05_CPAMob_QCEW_BorderCounty.do
  3. 3.STATA/02_CPAMob_AdoptionPrediction.do run by STATA/00_CPAMob_Master.do line 32 reads 7 input files · 8 merges · 6 estimations
  4. 4.STATA/03_CPAMob_QCEW_State.do run by STATA/00_CPAMob_Master.do line 37 reads 4 input files · 5 merges · 18 estimations
    reads what 01_CPAMob_ControlsPrep.do wrote
  5. 5.STATA/reltimedummmies.do run by STATA/03_CPAMob_QCEW_State.do line 147
  6. 6.STATA/04_CPAMob_SUSB_State.do run by STATA/00_CPAMob_Master.do line 42 reads 3 input files · 3 merges · 13 estimations
    reads what 01_CPAMob_ControlsPrep.do wrote
  7. 7.STATA/05_CPAMob_QCEW_BorderCounty.do run by STATA/00_CPAMob_Master.do line 47 reads 6 input files · 6 merges · 9 estimations
    reads what 01_CPAMob_ControlsPrep.do wrote
  8. 8.STATA/06_CPAMob_QCEW_MSA.do run by STATA/00_CPAMob_Master.do line 52 reads 3 input files · 2 merges · 7 estimations
  9. 9.STATA/07_CPAMob_AICPAMap.do run by STATA/00_CPAMob_Master.do line 57 reads 3 input files · 2 merges · 4 estimations
  10. 10.STATA/08_CPAMob_PensionPlanFees.do run by STATA/00_CPAMob_Master.do line 62 reads 4 input files · 13 merges · 7 estimations
  11. 11.STATA/09_CPAMob_Qual1_AICPAMisconduct.do run by STATA/00_CPAMob_Master.do line 67 reads 1 input file · 1 merge · 13 estimations
  12. 12.STATA/10_CPAMob_Qual2_EBSA.do run by STATA/00_CPAMob_Master.do line 72 reads 2 input files · 2 merges · 12 estimations
  13. 13.STATA/11_CPAMob_Qual3_CODiscAction.do run by STATA/00_CPAMob_Master.do line 77 reads 1 input file · 2 merges · 2 estimations

3 · Merges — 33 joins, 30 followed by a check of the merge result; 13 appends

JoinsHowOn keysCheck that followsWhere
unemploymentstate_cleanforimport ← gdp merge 1:1 area_fips year keep if _merge == 3
01_CPAMob_ControlsPrep.do:44
STATA/01_CPAMob_ControlsPrep.do, line 44 merge 1:1 area_fips year using `gdp'
usa_00015 ← macrocontrols merge 1:1 area_fips year keep if _merge == 3
01_CPAMob_ControlsPrep.do:85
STATA/01_CPAMob_ControlsPrep.do, line 85 merge 1:1 area_fips year using `macrocontrols'
(data in memory) ← merger merge 1:1 State year keep if _merge == 3
02_CPAMob_AdoptionPrediction.do:33
STATA/02_CPAMob_AdoptionPrediction.do, line 33 merge 1:1 State year using `merger'
merger ← macrocontrols merge 1:1 area_fips year keep if _merge == 3
02_CPAMob_AdoptionPrediction.do:40
STATA/02_CPAMob_AdoptionPrediction.do, line 40 merge 1:1 area_fips year using "./Data/LawPrediction/macrocontrols.dta"
(data in memory) ← bds merge 1:1 area_fips year assert _merge != 1
02_CPAMob_AdoptionPrediction.do:68
STATA/02_CPAMob_AdoptionPrediction.do, line 68 merge 1:1 area_fips year using `bds'
(data in memory) ← polecon merge m:1 State keep if _merge == 3
02_CPAMob_AdoptionPrediction.do:85
STATA/02_CPAMob_AdoptionPrediction.do, line 85 merge m:1 State using `polecon'
(data in memory) ← postcode merge m:1 State assert _merge != 1
02_CPAMob_AdoptionPrediction.do:101
STATA/02_CPAMob_AdoptionPrediction.do, line 101 merge m:1 State using `postcode'
postcode ← colbertmurray merge m:1 StatePostal none
02_CPAMob_AdoptionPrediction.do:107
STATA/02_CPAMob_AdoptionPrediction.do, line 107 merge m:1 StatePostal using "./Data/LawPrediction/ColbertMurray.dta"
(data in memory) ← qcewcontrols merge m:1 area_fips keep if _merge == 3
02_CPAMob_AdoptionPrediction.do:226
STATA/02_CPAMob_AdoptionPrediction.do, line 226 merge m:1 area_fips using `qcewcontrols'
`save1' ← fipsandnamescrosswalk merge m:1 area_fips assert _merge != 1
03_CPAMob_QCEW_State.do:68
STATA/03_CPAMob_QCEW_State.do, line 68 merge m:1 area_fips using "./Data/Census/Data_QCEW/FIPSandNamesCrosswalk.dta"
`save1' ← extendedstatecontrols merge m:1 area_fips year keep if _merge == 3
03_CPAMob_QCEW_State.do:92
STATA/03_CPAMob_QCEW_State.do, line 92 merge m:1 area_fips year using "./Data/Controls/extendedstatecontrols.dta"
(data in memory) ← emptotal merge m:1 occ_year_id assert _merge == 3
03_CPAMob_QCEW_State.do:115
STATA/03_CPAMob_QCEW_State.do, line 115 merge m:1 occ_year_id using `emptotal'

4 · The sample — 108 keep/drop steps, 8 variables winsorized or trimmed

Filters, by kind
industry screens ×5
  • keep if industry_code == "541211"
    02_CPAMob_AdoptionPrediction.do:189
    STATA/02_CPAMob_AdoptionPrediction.do, line 189 keep if industry_code == "541211" /*keep CPAs only*/
  • keep if industry_code == "541211" | industry_code == "541110"
    03_CPAMob_QCEW_State.do:32
    STATA/03_CPAMob_QCEW_State.do, line 32 keep if industry_code == "541211" | industry_code == "541110" /*keep only CPAs and lawyers*/
  • keep if naics == "541211" | naics == "541110"
    04_CPAMob_SUSB_State.do:29
    STATA/04_CPAMob_SUSB_State.do, line 29 keep if naics == "541211" | naics == "541110" /*keep CPAs and Lawyers for triple and quadruple diff*/
  • keep if industry_code == "541211"
    05_CPAMob_QCEW_BorderCounty.do:30
    STATA/05_CPAMob_QCEW_BorderCounty.do, line 30 keep if industry_code == "541211" /*keep only CPAs*/
  • keep if industry_code == "541211" | industry_code == "541110"
    06_CPAMob_QCEW_MSA.do:30
    STATA/06_CPAMob_QCEW_MSA.do, line 30 keep if industry_code == "541211" | industry_code == "541110" /*keep only CPAs and lawyers*/
time period ×12
  • keep if year >= 2003 & year <= 2015
    02_CPAMob_AdoptionPrediction.do:56
    STATA/02_CPAMob_AdoptionPrediction.do, line 56 keep if year >= 2003 & year <= 2015
  • keep if year == 2005
    02_CPAMob_AdoptionPrediction.do:216
    STATA/02_CPAMob_AdoptionPrediction.do, line 216 keep if year == 2005 /*calc diffs to national */
  • keep if year >= 2003
    03_CPAMob_QCEW_State.do:87
    STATA/03_CPAMob_QCEW_State.do, line 87 keep if year >= 2003
  • keep if year >= 2003
    05_CPAMob_QCEW_BorderCounty.do:62
    STATA/05_CPAMob_QCEW_BorderCounty.do, line 62 keep if year >= 2003
  • drop if year <= 2002
    05_CPAMob_QCEW_BorderCounty.do:79
    STATA/05_CPAMob_QCEW_BorderCounty.do, line 79 drop if year <= 2002 /*consistency with State-level and Dummy file*/
  • drop if year < 2003
    09_CPAMob_Qual1_AICPAMisconduct.do:18
    STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 18 drop if year < 2003
  • drop if year < 2003
    09_CPAMob_Qual1_AICPAMisconduct.do:73
    STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 73 drop if year < 2003
  • drop if year < 2003
    10_CPAMob_Qual2_EBSA.do:30
    STATA/10_CPAMob_Qual2_EBSA.do, line 30 drop if year < 2003
  • first 8 of 12
value ranges ×3
  • keep if totalobs == `r(max)'
    04_CPAMob_SUSB_State.do:178
    STATA/04_CPAMob_SUSB_State.do, line 178 keep if totalobs == `r(max)'
  • keep if totalinclobs >= 5
    06_CPAMob_QCEW_MSA.do:131
    STATA/06_CPAMob_QCEW_MSA.do, line 131 keep if totalinclobs >= 5
  • keep if includedobs >= 5
    08_CPAMob_PensionPlanFees.do:455
    STATA/08_CPAMob_PensionPlanFees.do, line 455 keep if includedobs >= 5 /*minimum level of obs to identify groups*/
category values ×22
  • keep if own_code == "5"
    02_CPAMob_AdoptionPrediction.do:190
    STATA/02_CPAMob_AdoptionPrediction.do, line 190 keep if own_code == "5" /*keep only privately owned*/
  • keep if agglvl_code == "58"
    02_CPAMob_AdoptionPrediction.do:191
    STATA/02_CPAMob_AdoptionPrediction.do, line 191 keep if agglvl_code == "58" /*keep only state-level 6 digits*/
  • keep if agglvl_code == "58"
    03_CPAMob_QCEW_State.do:30
    STATA/03_CPAMob_QCEW_State.do, line 30 keep if agglvl_code == "58" /*keep only State-level 6 digits*/
  • keep if own_code == "5"
    03_CPAMob_QCEW_State.do:31
    STATA/03_CPAMob_QCEW_State.do, line 31 keep if own_code == "5" /*keep only privately owned*/
  • keep if agglvl_code == "78"
    05_CPAMob_QCEW_BorderCounty.do:28
    STATA/05_CPAMob_QCEW_BorderCounty.do, line 28 keep if agglvl_code == "78" /*keep only 6 digits naics county-level variables*/
  • keep if own_code == "5"
    05_CPAMob_QCEW_BorderCounty.do:29
    STATA/05_CPAMob_QCEW_BorderCounty.do, line 29 keep if own_code == "5" /*keep only privately owned*/
  • drop if area_fips_merge_temp == "15000"
    05_CPAMob_QCEW_BorderCounty.do:82
    STATA/05_CPAMob_QCEW_BorderCounty.do, line 82 drop if area_fips_merge_temp == "15000" /*Hawaii*/
  • drop if area_fips_merge_temp == "72000"
    05_CPAMob_QCEW_BorderCounty.do:83
    STATA/05_CPAMob_QCEW_BorderCounty.do, line 83 drop if area_fips_merge_temp == "72000" /*Puerto Rico*/
  • first 8 of 22
indicator subsets ×14
  • drop if excludestate == 1
    02_CPAMob_AdoptionPrediction.do:193
    STATA/02_CPAMob_AdoptionPrediction.do, line 193 drop if excludestate == 1 /*align with main sample*/
  • drop if excludestate == 1
    03_CPAMob_QCEW_State.do:84
    STATA/03_CPAMob_QCEW_State.do, line 84 drop if excludestate == 1
  • keep if inclfirm == 1
    04_CPAMob_SUSB_State.do:133
    STATA/04_CPAMob_SUSB_State.do, line 133 keep if inclfirm == 1
  • keep if incl1 == 1 & incl2 == 1 & incl3 == 1 & incl4 == 1
    04_CPAMob_SUSB_State.do:204
    STATA/04_CPAMob_SUSB_State.do, line 204 keep if incl1 == 1 & incl2 == 1 & incl3 == 1 & incl4 == 1
  • keep if cpa == 1
    04_CPAMob_SUSB_State.do:222
    STATA/04_CPAMob_SUSB_State.do, line 222 keep if cpa == 1
  • keep if diff_adoption == 1
    05_CPAMob_QCEW_BorderCounty.do:207
    STATA/05_CPAMob_QCEW_BorderCounty.do, line 207 keep if diff_adoption == 1
  • keep if cpa == 1 | lawyer == 1
    06_CPAMob_QCEW_MSA.do:106
    STATA/06_CPAMob_QCEW_MSA.do, line 106 keep if cpa == 1 | lawyer == 1
  • keep if estperiod == 1
    06_CPAMob_QCEW_MSA.do:209
    STATA/06_CPAMob_QCEW_MSA.do, line 209 keep if estperiod == 1
  • first 8 of 14
geography ×12
  • keep if strlen(statefips) == 2
    01_CPAMob_ControlsPrep.do:34
    STATA/01_CPAMob_ControlsPrep.do, line 34 keep if strlen(statefips) == 2
  • drop if State =="Dist. of Columbia"
    02_CPAMob_AdoptionPrediction.do:19
    STATA/02_CPAMob_AdoptionPrediction.do, line 19 drop if State =="Dist. of Columbia" /*no available data*/
  • drop if State == "DC"
    02_CPAMob_AdoptionPrediction.do:80
    STATA/02_CPAMob_AdoptionPrediction.do, line 80 drop if State == "DC" /*no legislation vars, as before*/
  • drop if state == 0
    04_CPAMob_SUSB_State.do:47
    STATA/04_CPAMob_SUSB_State.do, line 47 drop if state == 0 /*drop national-level variables */
  • drop if statename == "Ohio" | statename == "Virginia"
    04_CPAMob_SUSB_State.do:173
    STATA/04_CPAMob_SUSB_State.do, line 173 drop if statename == "Ohio" | statename == "Virginia"
  • keep if stateyears == 26
    08_CPAMob_PensionPlanFees.do:458
    STATA/08_CPAMob_PensionPlanFees.do, line 458 keep if stateyears == 26 /*time-group balancing*/
  • drop if plan_admin_state == " "
    10_CPAMob_Qual2_EBSA.do:19
    STATA/10_CPAMob_Qual2_EBSA.do, line 19 drop if plan_admin_state == " "
  • drop if plan_admin_state == "Ohio"
    10_CPAMob_Qual2_EBSA.do:20
    STATA/10_CPAMob_Qual2_EBSA.do, line 20 drop if plan_admin_state == "Ohio"
  • first 8 of 12
row position (_n, first / last row) ×3
  • drop if _n == 1
    07_CPAMob_AICPAMap.do:30
    STATA/07_CPAMob_AICPAMap.do, line 30 drop if _n == 1 /*drop empty row -- collection notes*/
  • keep if counter == 1
    08_CPAMob_PensionPlanFees.do:85
    STATA/08_CPAMob_PensionPlanFees.do, line 85 keep if counter == 1 /*keep main role*/
  • keep if counter == 1
    08_CPAMob_PensionPlanFees.do:219
    STATA/08_CPAMob_PensionPlanFees.do, line 219 keep if counter == 1
missing values ×11
  • drop if State == ""
    02_CPAMob_AdoptionPrediction.do:79
    STATA/02_CPAMob_AdoptionPrediction.do, line 79 drop if State == "" /*drop empty lines in hand collection sheet*/
  • keep if counter == 15 & neighbor_county == 1 & border_id != 74 & diff_adoption == 1 & !missing(logpay) & minemp > 0
    05_CPAMob_QCEW_BorderCounty.do:234
    STATA/05_CPAMob_QCEW_BorderCounty.do, line 234 keep if counter == 15 & neighbor_county == 1 & border_id != 74 & diff_adoption == 1 & !missing(logpay) & minemp > 0 /*BorderID 74 is Lake Michigan*/
  • drop if missing(A)
    07_CPAMob_AICPAMap.do:25
    STATA/07_CPAMob_AICPAMap.do, line 25 drop if missing(A) /*drop empty columns in collection sheet*/
  • drop if missing(size_class)
    07_CPAMob_AICPAMap.do:33
    STATA/07_CPAMob_AICPAMap.do, line 33 drop if missing(size_class) /*drop empty cells*/
  • drop if missing(accountant_firm_ein)
    08_CPAMob_PensionPlanFees.do:31
    STATA/08_CPAMob_PensionPlanFees.do, line 31 drop if missing(accountant_firm_ein)
  • drop if missing(provider_01_ein)
    08_CPAMob_PensionPlanFees.do:49
    STATA/08_CPAMob_PensionPlanFees.do, line 49 drop if missing(provider_01_ein)
  • drop if missing(accountant_firm_ein)
    08_CPAMob_PensionPlanFees.do:141
    STATA/08_CPAMob_PensionPlanFees.do, line 141 drop if missing(accountant_firm_ein)
  • drop if missing(state)
    08_CPAMob_PensionPlanFees.do:310
    STATA/08_CPAMob_PensionPlanFees.do, line 310 drop if missing(state) /*required for merge*/
  • first 8 of 11
drops after a merge (_merge) ×26
  • keep if _merge == 3
    01_CPAMob_ControlsPrep.do:45
    STATA/01_CPAMob_ControlsPrep.do, line 45 keep if _merge == 3
  • keep if _merge == 3
    01_CPAMob_ControlsPrep.do:86
    STATA/01_CPAMob_ControlsPrep.do, line 86 keep if _merge == 3
  • keep if _merge == 3
    02_CPAMob_AdoptionPrediction.do:34
    STATA/02_CPAMob_AdoptionPrediction.do, line 34 keep if _merge == 3 /*all merged from master*/
  • keep if _merge == 3
    02_CPAMob_AdoptionPrediction.do:41
    STATA/02_CPAMob_AdoptionPrediction.do, line 41 keep if _merge == 3 /*all from master are merged*/
  • keep if _merge == 3
    02_CPAMob_AdoptionPrediction.do:70
    STATA/02_CPAMob_AdoptionPrediction.do, line 70 keep if _merge == 3
  • keep if _merge == 3
    02_CPAMob_AdoptionPrediction.do:86
    STATA/02_CPAMob_AdoptionPrediction.do, line 86 keep if _merge == 3
  • keep if _merge == 3
    02_CPAMob_AdoptionPrediction.do:103
    STATA/02_CPAMob_AdoptionPrediction.do, line 103 keep if _merge == 3
  • keep if _merge == 3
    02_CPAMob_AdoptionPrediction.do:227
    STATA/02_CPAMob_AdoptionPrediction.do, line 227 keep if _merge == 3
  • first 8 of 26
Outliers
winsorize at 1/99 · 8 variables
fees logfees logassets contribution2assets participants2assets hardtoaudit investfees2assets income2assets
08_CPAMob_PensionPlanFees.do:334
STATA/08_CPAMob_PensionPlanFees.do, line 334 winsor2 fees, suffix(_w) cuts(1 99)
08_CPAMob_PensionPlanFees.do:336
STATA/08_CPAMob_PensionPlanFees.do, line 336 winsor2 logfees, suffix(_w) cuts(1 99)
08_CPAMob_PensionPlanFees.do:343
STATA/08_CPAMob_PensionPlanFees.do, line 343 winsor2 logassets, suffix(_w) cuts (1 99)
08_CPAMob_PensionPlanFees.do:347
STATA/08_CPAMob_PensionPlanFees.do, line 347 winsor2 contribution2assets, suffix(_w) cuts(1 99)
Missing values
common sample across variables (listwise) ×12
  • 05_CPAMob_QCEW_BorderCounty.do:238
    STATA/05_CPAMob_QCEW_BorderCounty.do, line 238 keep if (e(sample)) == 1
  • 04_CPAMob_SUSB_State.do:197
    STATA/04_CPAMob_SUSB_State.do, line 197 gen incl1 = (e(sample) == 1)
  • 04_CPAMob_SUSB_State.do:199
    STATA/04_CPAMob_SUSB_State.do, line 199 gen incl2 = (e(sample) == 1)
  • 04_CPAMob_SUSB_State.do:201
    STATA/04_CPAMob_SUSB_State.do, line 201 gen incl3 = (e(sample) == 1)
  • 04_CPAMob_SUSB_State.do:203
    STATA/04_CPAMob_SUSB_State.do, line 203 gen incl4 = (e(sample) == 1)
  • 02_CPAMob_AdoptionPrediction.do:235
    STATA/02_CPAMob_AdoptionPrediction.do, line 235 keep if (e(sample)) == 1 /*estimate full model to ascertain equal obs across specs*/
dropped ×10
  • 05_CPAMob_QCEW_BorderCounty.do:234
    STATA/05_CPAMob_QCEW_BorderCounty.do, line 234 keep if counter == 15 & neighbor_county == 1 & border_id != 74 & diff_adoption == 1 & !missing(logpay) & minemp > 0 /*BorderID 74 is Lake Michigan*/
  • 11_CPAMob_Qual3_CODiscAction.do:30
    STATA/11_CPAMob_Qual3_CODiscAction.do, line 30 drop if missing(firmentryyear)
  • 11_CPAMob_Qual3_CODiscAction.do:35
    STATA/11_CPAMob_Qual3_CODiscAction.do, line 35 drop if missing(firmexityear)
  • 11_CPAMob_Qual3_CODiscAction.do:48
    STATA/11_CPAMob_Qual3_CODiscAction.do, line 48 keep if !missing(casenumber)
  • 07_CPAMob_AICPAMap.do:25
    STATA/07_CPAMob_AICPAMap.do, line 25 drop if missing(A) /*drop empty columns in collection sheet*/
  • 07_CPAMob_AICPAMap.do:33
    STATA/07_CPAMob_AICPAMap.do, line 33 drop if missing(size_class) /*drop empty cells*/
set to zero ×9
  • provider_01_salary_amt → 0
    08_CPAMob_PensionPlanFees.do:330
    STATA/08_CPAMob_PensionPlanFees.do, line 330 replace provider_01_salary_amt = 0 if missing(provider_01_salary_amt)
  • provider_01_fees_amt → 0
    08_CPAMob_PensionPlanFees.do:331
    STATA/08_CPAMob_PensionPlanFees.do, line 331 replace provider_01_fees_amt = 0 if missing(provider_01_fees_amt)
  • joint_venture_boy_amt → 0
    08_CPAMob_PensionPlanFees.do:355
    STATA/08_CPAMob_PensionPlanFees.do, line 355 replace joint_venture_boy_amt = 0 if missing(joint_venture_boy_amt) /*true zeros according to DoL plan lookup*/
  • real_estate_boy_amt → 0
    08_CPAMob_PensionPlanFees.do:356
    STATA/08_CPAMob_PensionPlanFees.do, line 356 replace real_estate_boy_amt = 0 if missing(real_estate_boy_amt) /*true zeros according to DoL plan lookup*/
  • admonished_count → 0
    09_CPAMob_Qual1_AICPAMisconduct.do:65
    STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 65 replace `var' = 0 if missing(`var')
  • suspended_count → 0
    09_CPAMob_Qual1_AICPAMisconduct.do:65
    STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 65 replace `var' = 0 if missing(`var')
filled with a value ×2
  • adoption_year → r(max)
    05_CPAMob_QCEW_BorderCounty.do:186
    STATA/05_CPAMob_QCEW_BorderCounty.do, line 186 replace adoption_year = r(max) if statefip == `s' & missing(adoption_year)
  • caseyear → 2006
    11_CPAMob_Qual3_CODiscAction.do:54
    STATA/11_CPAMob_Qual3_CODiscAction.do, line 54 replace caseyear = 2006 if missing(caseyear) /*manually checked these individuals*/

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

Standard measures computed here: Big 4 Auditor (big4
08_CPAMob_PensionPlanFees.do:375
STATA/08_CPAMob_PensionPlanFees.do, line 375 replace big4 = 1 if strpos(auditor_name, "kpmg")
)
VariableUsed in models asBuilt by
logpay outcome in 20
logpay = log(pay) (gen)
02_CPAMob_AdoptionPrediction.do:208
STATA/02_CPAMob_AdoptionPrediction.do, line 208 gen logpay = log(pay)
logpay = log(pay) (gen)
03_CPAMob_QCEW_State.do:104
STATA/03_CPAMob_QCEW_State.do, line 104 gen logpay = log(pay)
logpay = log(pay) (gen)
04_CPAMob_SUSB_State.do:118
STATA/04_CPAMob_SUSB_State.do, line 118 gen logpay = log(pay)
+2 more statements set it
logemp outcome in 11
logemp = log(emp) (gen)
02_CPAMob_AdoptionPrediction.do:209
STATA/02_CPAMob_AdoptionPrediction.do, line 209 gen logemp = log(emp)
logemp = log(emp) (gen)
03_CPAMob_QCEW_State.do:105
STATA/03_CPAMob_QCEW_State.do, line 105 gen logemp = log(emp)
logemp = log(emp) (gen)
05_CPAMob_QCEW_BorderCounty.do:164
STATA/05_CPAMob_QCEW_BorderCounty.do, line 164 gen logemp = log(emp)
+1 more statements set it
logfees_w outcome in 7 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
total_count outcome in 7
total_count = . (gen)
09_CPAMob_Qual1_AICPAMisconduct.do:37
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 37 gen total_count = .
total_count = 1 (replace)
09_CPAMob_Qual1_AICPAMisconduct.do:38
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 38 replace total_count = 1 if admonished_count == 1
total_count = 1 (replace)
09_CPAMob_Qual1_AICPAMisconduct.do:39
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 39 replace total_count = 1 if suspended_count == 1
+1 more statements set it
casecount_total outcome in 6
casecount_total = 0 (replace)
10_CPAMob_Qual2_EBSA.do:74
STATA/10_CPAMob_Qual2_EBSA.do, line 74 replace casecount_total = 0 if _merge == 1
casecount_weighted outcome in 6
casecount_weighted = casecount_1 * 1 + casecount_2 * 2 + casecount_3 * 3 + casecount_4 * 4 (gen)
10_CPAMob_Qual2_EBSA.do:97
STATA/10_CPAMob_Qual2_EBSA.do, line 97 gen casecount_weighted = casecount_1 * 1 + casecount_2 * 2 + casecount_3 * 3 + casecount_4 * 4
weighted_count outcome in 6
weighted_count = total_count (gen)
09_CPAMob_Qual1_AICPAMisconduct.do:43
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 43 gen weighted_count = total_count
weighted_count = 1 (replace)
09_CPAMob_Qual1_AICPAMisconduct.do:44
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 44 replace weighted_count = 1 if admonished_count == 1
weighted_count = 2 (replace)
09_CPAMob_Qual1_AICPAMisconduct.do:45
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 45 replace weighted_count = 2 if suspended_count == 1
+1 more statements set it
d1logpay outcome in 5 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
logemp2estb outcome in 3
logemp2estb = log(emp2estb) (gen)
04_CPAMob_SUSB_State.do:122
STATA/04_CPAMob_SUSB_State.do, line 122 gen logemp2estb = log(emp2estb)
logempl outcome in 3
logempl = log(empl) (gen)
04_CPAMob_SUSB_State.do:119
STATA/04_CPAMob_SUSB_State.do, line 119 gen logempl = log(empl)
logestb outcome in 3
logestb = log(estb) (gen)
04_CPAMob_SUSB_State.do:120
STATA/04_CPAMob_SUSB_State.do, line 120 gen logestb = log(estb)
discipline outcome in 2
discipline = (_merge == 3) (gen)
11_CPAMob_Qual3_CODiscAction.do:97
STATA/11_CPAMob_Qual3_CODiscAction.do, line 97 gen discipline = (_merge == 3)
logempl2estab outcome in 1
logempl2estab = log(empl2estab) (gen)
03_CPAMob_QCEW_State.do:160
STATA/03_CPAMob_QCEW_State.do, line 160 gen logempl2estab = log(empl2estab)
logestab outcome in 1
logestab = log(annual_avg_estabs) (gen)
03_CPAMob_QCEW_State.do:156
STATA/03_CPAMob_QCEW_State.do, line 156 gen logestab = log(annual_avg_estabs)
L1_CPAMob regressor in 24
L1_CPAMob = L1_CPAMobility_Effec_longpanel (rename)
03_CPAMob_QCEW_State.do:139
STATA/03_CPAMob_QCEW_State.do, line 139 rename L1_CPAMobility_Effec_longpanel L1_CPAMob
L1_CPAMob = L1_CPAMobility_Effec_longpanel (rename)
04_CPAMob_SUSB_State.do:161
STATA/04_CPAMob_SUSB_State.do, line 161 rename L1_CPAMobility_Effec_longpanel L1_CPAMob
L1_CPAMob = (year - adoption_year > 0) (gen)
10_CPAMob_Qual2_EBSA.do:69
STATA/10_CPAMob_Qual2_EBSA.do, line 69 gen L1_CPAMob = (year - adoption_year > 0) /*here the name is Dist of Columbia - in merge file the state is named*/
+1 more statements set it

6 · Models, by the table or figure they feed — 91 estimations, 47 traced into 7 exhibits

Table 1 · 5 estimations → Table1_PanelB.csv
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
stcox
hazard
— logpaydiff logempdiff d5logpay d5logemp — cluster: id
02_CPAMob_AdoptionPrediction.do:237
STATA/02_CPAMob_AdoptionPrediction.do, line 237 eststo: stcox logpaydiff logempdiff d5logpay d5logemp, cluster(id)
written at 02_CPAMob_AdoptionPrediction.do:242
stcox
hazard
— pubprac localCPAs i.mobilitytaskforce i.fundingautonomy — cluster: id
02_CPAMob_AdoptionPrediction.do:238
STATA/02_CPAMob_AdoptionPrediction.do, line 238 eststo: stcox pubprac localCPAs i.mobilitytaskforce i.fundingautonomy, cluster(id)
written at 02_CPAMob_AdoptionPrediction.do:242
stcox
hazard
— L1_unemprate L1_realgdp L1_firm_birth L1_jobcreation_netbirth — default
02_CPAMob_AdoptionPrediction.do:239
STATA/02_CPAMob_AdoptionPrediction.do, line 239 eststo: stcox L1_unemprate L1_realgdp L1_firm_birth L1_jobcreation_netbirth
written at 02_CPAMob_AdoptionPrediction.do:242
stcox
hazard
— Senate_Dem_Share House_Dem_Share logbills logenact — cluster: id
02_CPAMob_AdoptionPrediction.do:240
STATA/02_CPAMob_AdoptionPrediction.do, line 240 eststo: stcox Senate_Dem_Share House_Dem_Share logbills logenact, cluster(id)
written at 02_CPAMob_AdoptionPrediction.do:242
stcox
hazard
— logpaydiff logempdiff d5logpay d5logemp pubprac localCPAs i.mobilitytaskforce i.fundingautonomy L1_unemprate L1_realgdp L1_firm_birth L1_jobcreation_netbirth +4 more — cluster: id
02_CPAMob_AdoptionPrediction.do:241
STATA/02_CPAMob_AdoptionPrediction.do, line 241 eststo: stcox logpaydiff logempdiff d5logpay d5logemp pubprac localCPAs i.mobilitytaskforce i.fundingautonomy L1_unemprate L1_realgdp L1_firm_birth L1_jobcreation_netbirth Senate_Dem_Share House_Dem_Share logbills logenact, cluster(id)
written at 02_CPAMob_AdoptionPrediction.do:242
Table 2 · 12 estimations → Table2_PanelB.csv, Table2_PanelC.csv
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
logpay L1_CPAMob state_occ_id, cpa_year cluster: state_id
03_CPAMob_QCEW_State.do:216
STATA/03_CPAMob_QCEW_State.do, line 216 eststo: reghdfe logpay L1_CPAMob if cpa == 1 [aw = empshare], a(state_occ_id cpa_year) cluster(state_id)
written at 03_CPAMob_QCEW_State.do:222
reghdfe
panel fe
logpay L1_CPAMob L1_unemp state_occ_id, cpa_year cluster: state_id
03_CPAMob_QCEW_State.do:217
STATA/03_CPAMob_QCEW_State.do, line 217 eststo: reghdfe logpay L1_CPAMob L1_unemp if cpa == 1 [aw = empshare], a(state_occ_id cpa_year) cluster(state_id)
written at 03_CPAMob_QCEW_State.do:222
reghdfe
panel fe
logpay L1_CPAMob L1_gdp state_occ_id, cpa_year cluster: state_id
03_CPAMob_QCEW_State.do:218
STATA/03_CPAMob_QCEW_State.do, line 218 eststo: reghdfe logpay L1_CPAMob L1_gdp if cpa == 1 [aw = empshare], a(state_occ_id cpa_year) cluster(state_id)
written at 03_CPAMob_QCEW_State.do:222
reghdfe
panel fe
logpay L1_CPAMob L1_betweenstatemigration state_occ_id, cpa_year cluster: state_id
03_CPAMob_QCEW_State.do:219
STATA/03_CPAMob_QCEW_State.do, line 219 eststo: reghdfe logpay L1_CPAMob L1_betweenstatemigration if cpa == 1 [aw = empshare], a(state_occ_id cpa_year) cluster(state_id)
written at 03_CPAMob_QCEW_State.do:222
reghdfe
panel fe
logpay L1_CPAMob L1_abroadmigration state_occ_id, cpa_year cluster: state_id
03_CPAMob_QCEW_State.do:220
STATA/03_CPAMob_QCEW_State.do, line 220 eststo: reghdfe logpay L1_CPAMob L1_abroadmigration if cpa == 1 [aw = empshare], a(state_occ_id cpa_year) cluster(state_id)
written at 03_CPAMob_QCEW_State.do:222
reghdfe
panel fe
logpay L1_CPAMob L1_unemp L1_gdp L1_betweenstatemigration L1_abroadmigration state_occ_id, cpa_year cluster: state_id
03_CPAMob_QCEW_State.do:221
STATA/03_CPAMob_QCEW_State.do, line 221 eststo: reghdfe logpay L1_CPAMob L1_unemp L1_gdp L1_betweenstatemigration L1_abroadmigration if cpa == 1 [aw = empshare], a(state_occ_id cpa_year) cluster(state_id)
written at 03_CPAMob_QCEW_State.do:222
reghdfe
panel fe
logemp L1_CPAMob state_occ_id, cpa_year cluster: state_id
03_CPAMob_QCEW_State.do:228
STATA/03_CPAMob_QCEW_State.do, line 228 eststo: reghdfe logemp L1_CPAMob if cpa == 1, a(state_occ_id cpa_year) cluster(state_id)
written at 03_CPAMob_QCEW_State.do:234
reghdfe
panel fe
logemp L1_CPAMob L1_unemp state_occ_id, cpa_year cluster: state_id
03_CPAMob_QCEW_State.do:229
STATA/03_CPAMob_QCEW_State.do, line 229 eststo: reghdfe logemp L1_CPAMob L1_unemp if cpa == 1, a(state_occ_id cpa_year) cluster(state_id)
written at 03_CPAMob_QCEW_State.do:234
reghdfe
panel fe
logemp L1_CPAMob L1_gdp state_occ_id, cpa_year cluster: state_id
03_CPAMob_QCEW_State.do:230
STATA/03_CPAMob_QCEW_State.do, line 230 eststo: reghdfe logemp L1_CPAMob L1_gdp if cpa == 1, a(state_occ_id cpa_year) cluster(state_id)
written at 03_CPAMob_QCEW_State.do:234
reghdfe
panel fe
logemp L1_CPAMob L1_betweenstatemigration state_occ_id, cpa_year cluster: state_id
03_CPAMob_QCEW_State.do:231
STATA/03_CPAMob_QCEW_State.do, line 231 eststo: reghdfe logemp L1_CPAMob L1_betweenstatemigration if cpa == 1, a(state_occ_id cpa_year) cluster(state_id)
written at 03_CPAMob_QCEW_State.do:234
reghdfe
panel fe
logemp L1_CPAMob L1_abroadmigration state_occ_id, cpa_year cluster: state_id
03_CPAMob_QCEW_State.do:232
STATA/03_CPAMob_QCEW_State.do, line 232 eststo: reghdfe logemp L1_CPAMob L1_abroadmigration if cpa == 1, a(state_occ_id cpa_year) cluster(state_id)
written at 03_CPAMob_QCEW_State.do:234
reghdfe
panel fe
logemp L1_CPAMob L1_unemp L1_gdp L1_betweenstatemigration L1_abroadmigration state_occ_id, cpa_year cluster: state_id
03_CPAMob_QCEW_State.do:233
STATA/03_CPAMob_QCEW_State.do, line 233 eststo: reghdfe logemp L1_CPAMob L1_unemp L1_gdp L1_betweenstatemigration L1_abroadmigration if cpa == 1, a(state_occ_id cpa_year) cluster(state_id)
written at 03_CPAMob_QCEW_State.do:234
Table 3 · 12 estimations → Table3_PanelB.csv, Table3_PanelC.csv, Table3_PanelA.csv
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
logpay L1_CPAMob_cpa cpa_year, state_year, state_occ_id cluster: state_id
03_CPAMob_QCEW_State.do:241
STATA/03_CPAMob_QCEW_State.do, line 241 eststo: reghdfe logpay L1_CPAMob_cpa if cpalawyer == 1 [aw = empshare], a(cpa_year state_year state_occ_id) cluster(state_id)
written at 03_CPAMob_QCEW_State.do:245
reghdfe
panel fe
logemp L1_CPAMob_cpa cpa_year, state_year, state_occ_id cluster: state_id
03_CPAMob_QCEW_State.do:242
STATA/03_CPAMob_QCEW_State.do, line 242 eststo: reghdfe logemp L1_CPAMob_cpa if cpalawyer == 1, a(cpa_year state_year state_occ_id) cluster(state_id)
written at 03_CPAMob_QCEW_State.do:245
reghdfe
panel fe
logempl2estab L1_CPAMob_cpa cpa_year, state_year, state_occ_id cluster: state_id
03_CPAMob_QCEW_State.do:243
STATA/03_CPAMob_QCEW_State.do, line 243 eststo: reghdfe logempl2estab L1_CPAMob_cpa if cpalawyer == 1 [aw = estabshare], a(cpa_year state_year state_occ_id) cluster(state_id)
written at 03_CPAMob_QCEW_State.do:245
reghdfe
panel fe
logestab L1_CPAMob_cpa cpa_year, state_year, state_occ_id cluster: state_id
03_CPAMob_QCEW_State.do:244
STATA/03_CPAMob_QCEW_State.do, line 244 eststo: reghdfe logestab L1_CPAMob_cpa if cpalawyer == 1, a(cpa_year state_year state_occ_id) cluster(state_id)
written at 03_CPAMob_QCEW_State.do:245
reghdfe
panel fe
logpay L1_CPAMob_small_cpa state_naics_size_id, state_naics_year_id, state_size_year_id, naics_size_year_id cluster: state_id
04_CPAMob_SUSB_State.do:211
STATA/04_CPAMob_SUSB_State.do, line 211 eststo: reghdfe logpay L1_CPAMob_small_cpa [aw = emplshare], a(state_naics_size_id state_naics_year_id state_size_year_id naics_size_year_id) cluster(state_id)
written at 04_CPAMob_SUSB_State.do:215
reghdfe
panel fe
logempl L1_CPAMob_small_cpa state_naics_size_id, state_naics_year_id, state_size_year_id, naics_size_year_id cluster: state_id
04_CPAMob_SUSB_State.do:212
STATA/04_CPAMob_SUSB_State.do, line 212 eststo: reghdfe logempl L1_CPAMob_small_cpa, a(state_naics_size_id state_naics_year_id state_size_year_id naics_size_year_id) cluster(state_id)
written at 04_CPAMob_SUSB_State.do:215
reghdfe
panel fe
logemp2estb L1_CPAMob_small_cpa state_naics_size_id, state_naics_year_id, state_size_year_id, naics_size_year_id cluster: state_id
04_CPAMob_SUSB_State.do:213
STATA/04_CPAMob_SUSB_State.do, line 213 eststo: reghdfe logemp2estb L1_CPAMob_small_cpa [aw = estbshare], a(state_naics_size_id state_naics_year_id state_size_year_id naics_size_year_id) cluster(state_id)
written at 04_CPAMob_SUSB_State.do:215
reghdfe
panel fe
logestb L1_CPAMob_small_cpa state_naics_size_id, state_naics_year_id, state_size_year_id, naics_size_year_id cluster: state_id
04_CPAMob_SUSB_State.do:214
STATA/04_CPAMob_SUSB_State.do, line 214 eststo: reghdfe logestb L1_CPAMob_small_cpa, a(state_naics_size_id state_naics_year_id state_size_year_id naics_size_year_id) cluster(state_id)
written at 04_CPAMob_SUSB_State.do:215
reghdfe
panel fe
logpay L1_CPAMob_small state_size_id, size_year_id, state_year_id cluster: state_id
04_CPAMob_SUSB_State.do:242
STATA/04_CPAMob_SUSB_State.do, line 242 eststo: reghdfe logpay L1_CPAMob_small if cpa == 1 [aw = empshare], a(state_size_id size_year_id state_year_id) cluster(state_id)
written at 04_CPAMob_SUSB_State.do:246
reghdfe
panel fe
logempl L1_CPAMob_small state_size_id, size_year_id, state_year_id cluster: state_id
04_CPAMob_SUSB_State.do:243
STATA/04_CPAMob_SUSB_State.do, line 243 eststo: reghdfe logempl L1_CPAMob_small if cpa == 1 , a(state_size_id size_year_id state_year_id) cluster(state_id)
written at 04_CPAMob_SUSB_State.do:246
reghdfe
panel fe
logemp2estb L1_CPAMob_small state_size_id, size_year_id, state_year_id cluster: state_id
04_CPAMob_SUSB_State.do:244
STATA/04_CPAMob_SUSB_State.do, line 244 eststo: reghdfe logemp2estb L1_CPAMob_small [aw = estbshare] if cpa == 1 , a(state_size_id size_year_id state_year_id) cluster(state_id)
written at 04_CPAMob_SUSB_State.do:246
reghdfe
panel fe
logestb L1_CPAMob_small state_size_id, size_year_id, state_year_id cluster: state_id
04_CPAMob_SUSB_State.do:245
STATA/04_CPAMob_SUSB_State.do, line 245 eststo: reghdfe logestb L1_CPAMob_small if cpa == 1 , a(state_size_id size_year_id state_year_id) cluster(state_id)
written at 04_CPAMob_SUSB_State.do:246
Table 4 · 8 estimations → Table4_PanelB.csv
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
logpay L1_CPAMobility_Effec_longpanel county_id, i.border_id#i.year cluster: state_id
05_CPAMob_QCEW_BorderCounty.do:242
STATA/05_CPAMob_QCEW_BorderCounty.do, line 242 eststo: reghdfe logpay L1_CPAMobility_Effec_longpanel [aw = empshare], a(county_id i.border_id#i.year) cluster(state_id)
written at 05_CPAMob_QCEW_BorderCounty.do:251
reghdfe
panel fe
logpay L1_CPAMobility_Effec_longpanel L1_unemp_county L1_gdp county_id, i.border_id#i.year cluster: state_id
05_CPAMob_QCEW_BorderCounty.do:243
STATA/05_CPAMob_QCEW_BorderCounty.do, line 243 eststo: reghdfe logpay L1_CPAMobility_Effec_longpanel L1_unemp_county L1_gdp [aw = empshare], a(county_id i.border_id#i.year) cluster(state_id)
written at 05_CPAMob_QCEW_BorderCounty.do:251
reghdfe
panel fe
logpay L1_CPAMobility_Effec_longpanel L1_betweenstatemigration L1_abroadmigration county_id, i.border_id#i.year cluster: state_id
05_CPAMob_QCEW_BorderCounty.do:244
STATA/05_CPAMob_QCEW_BorderCounty.do, line 244 eststo: reghdfe logpay L1_CPAMobility_Effec_longpanel L1_betweenstatemigration L1_abroadmigration [aw = empshare], a(county_id i.border_id#i.year) cluster(state_id)
written at 05_CPAMob_QCEW_BorderCounty.do:251
reghdfe
panel fe
logpay L1_CPAMobility_Effec_longpanel L1_unemp_county L1_gdp L1_betweenstatemigration L1_abroadmigration county_id, i.border_id#i.year cluster: state_id
05_CPAMob_QCEW_BorderCounty.do:245
STATA/05_CPAMob_QCEW_BorderCounty.do, line 245 eststo: reghdfe logpay L1_CPAMobility_Effec_longpanel L1_unemp_county L1_gdp L1_betweenstatemigration L1_abroadmigration [aw = empshare], a(county_id i.border_id#i.year) cluster(state_id)
written at 05_CPAMob_QCEW_BorderCounty.do:251
reghdfe
panel fe
logemp L1_CPAMobility_Effec_longpanel county_id, i.border_id#i.year cluster: state_id
05_CPAMob_QCEW_BorderCounty.do:247
STATA/05_CPAMob_QCEW_BorderCounty.do, line 247 eststo: reghdfe logemp L1_CPAMobility_Effec_longpanel, a(county_id i.border_id#i.year) cluster(state_id)
written at 05_CPAMob_QCEW_BorderCounty.do:251
reghdfe
panel fe
logemp L1_CPAMobility_Effec_longpanel L1_unemp_county L1_gdp county_id, i.border_id#i.year cluster: state_id
05_CPAMob_QCEW_BorderCounty.do:248
STATA/05_CPAMob_QCEW_BorderCounty.do, line 248 eststo: reghdfe logemp L1_CPAMobility_Effec_longpanel L1_unemp_county L1_gdp, a(county_id i.border_id#i.year) cluster(state_id)
written at 05_CPAMob_QCEW_BorderCounty.do:251
reghdfe
panel fe
logemp L1_CPAMobility_Effec_longpanel L1_betweenstatemigration L1_abroadmigration county_id, i.border_id#i.year cluster: state_id
05_CPAMob_QCEW_BorderCounty.do:249
STATA/05_CPAMob_QCEW_BorderCounty.do, line 249 eststo: reghdfe logemp L1_CPAMobility_Effec_longpanel L1_betweenstatemigration L1_abroadmigration, a(county_id i.border_id#i.year) cluster(state_id)
written at 05_CPAMob_QCEW_BorderCounty.do:251
reghdfe
panel fe
logemp L1_CPAMobility_Effec_longpanel L1_unemp_county L1_gdp L1_betweenstatemigration L1_abroadmigration county_id, i.border_id#i.year cluster: state_id
05_CPAMob_QCEW_BorderCounty.do:250
STATA/05_CPAMob_QCEW_BorderCounty.do, line 250 eststo: reghdfe logemp L1_CPAMobility_Effec_longpanel L1_unemp_county L1_gdp L1_betweenstatemigration L1_abroadmigration, a(county_id i.border_id#i.year) cluster(state_id)
written at 05_CPAMob_QCEW_BorderCounty.do:251
Table 5 · 6 estimations → Table5_PanelA.csv, Table5_PanelB.csv, Table5_PanelC.csv
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reg
ols
d1logpay d1logmsagdp_post d1logmsagdp postperiod — cluster: msa_id
06_CPAMob_QCEW_MSA.do:187
STATA/06_CPAMob_QCEW_MSA.do, line 187 eststo: reg d1logpay d1logmsagdp_post d1logmsagdp postperiod [aw = empshare] if cpa == 1 & estperiod == 1, cluster(msa_id)
written at 06_CPAMob_QCEW_MSA.do:189
reg
ols
d1logpay d1logmsagdp_post d1logmsagdp postperiod — cluster: msa_id
06_CPAMob_QCEW_MSA.do:188
STATA/06_CPAMob_QCEW_MSA.do, line 188 eststo: reg d1logpay d1logmsagdp_post d1logmsagdp postperiod [aw = empshare] if lawyer == 1 & estperiod == 1, cluster(msa_id)
written at 06_CPAMob_QCEW_MSA.do:189
reg
ols
d1logpay cpapost cpa post — robust
06_CPAMob_QCEW_MSA.do:213
STATA/06_CPAMob_QCEW_MSA.do, line 213 eststo: reg `testvar' cpapost cpa post, vce(robust) as we read it (macros filled in / loop expanded): eststo: reg d1logpay cpapost cpa post, vce(robust)
written at 06_CPAMob_QCEW_MSA.do:224
reg
ols
d1logpay cpapost cpa post — robust
06_CPAMob_QCEW_MSA.do:222
STATA/06_CPAMob_QCEW_MSA.do, line 222 eststo: reg `testvar' cpapost cpa post, vce(robust) as we read it (macros filled in / loop expanded): eststo: reg d1logpay cpapost cpa post, vce(robust)
written at 06_CPAMob_QCEW_MSA.do:224
reg
ols
logpay cpapost cpa postperiod — robust
06_CPAMob_QCEW_MSA.do:239
STATA/06_CPAMob_QCEW_MSA.do, line 239 eststo: reg `testvar' cpapost cpa postperiod, vce(robust) as we read it (macros filled in / loop expanded): eststo: reg logpay cpapost cpa postperiod, vce(robust)
written at 06_CPAMob_QCEW_MSA.do:250
reg
ols
logpay cpapost cpa postperiod — robust
06_CPAMob_QCEW_MSA.do:248
STATA/06_CPAMob_QCEW_MSA.do, line 248 eststo: reg `testvar' cpapost cpa postperiod, vce(robust) as we read it (macros filled in / loop expanded): eststo: reg logpay cpapost cpa postperiod, vce(robust)
written at 06_CPAMob_QCEW_MSA.do:250
Table 7 · 2 estimations → Table7_PanelB.csv
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
logfees_w CPAMob contribution2assets_w income2assets_w hardtoaudit_w logassets_w investfees2assets_w participants2assets_w auditfirm_state_id, year cluster: state_id
08_CPAMob_PensionPlanFees.do:490
STATA/08_CPAMob_PensionPlanFees.do, line 490 eststo: reghdfe logfees_w CPAMob ${controls} if nationalbalancedstate == 3, a(auditfirm_state_id year) cluster(state_id) as we read it (macros filled in / loop expanded): eststo: reghdfe logfees_w CPAMob contribution2assets_w income2assets_w hardtoaudit_w logassets_w investfees2assets_w participants2assets_w if nationalbalancedstate == 3, a(auditfirm_state_id year) cluster(state_id)
written at 08_CPAMob_PensionPlanFees.do:493
reghdfe
panel fe
logfees_w CPAMob_small CPAMob_big contribution2assets_w income2assets_w hardtoaudit_w logassets_w investfees2assets_w participants2assets_w auditfirm_state_id, national_year_id cluster: state_id
08_CPAMob_PensionPlanFees.do:491
STATA/08_CPAMob_PensionPlanFees.do, line 491 eststo: reghdfe logfees_w CPAMob_small CPAMob_big ${controls} if nationalbalancedstate == 3, a(auditfirm_state_id national_year_id) cluster(state_id) as we read it (macros filled in / loop expanded): eststo: reghdfe logfees_w CPAMob_small CPAMob_big contribution2assets_w income2assets_w hardtoaudit_w logassets_w investfees2assets_w participants2assets_w if nationalbalancedstate == 3, a(auditfirm_state_id national_year_id) cluster(state_ …
written at 08_CPAMob_PensionPlanFees.do:493
Table 8 · 2 estimations → Table8_PanelC.csv
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
discipline L1_CPAMob_young young, year cluster: firm_id
11_CPAMob_Qual3_CODiscAction.do:137
STATA/11_CPAMob_Qual3_CODiscAction.do, line 137 eststo: reghdfe discipline L1_CPAMob_young if oldyoung == 1, a(young year) cluster(firm_id)
written at 11_CPAMob_Qual3_CODiscAction.do:139
reghdfe
panel fe
discipline L1_CPAMob_young firm_id, year cluster: firm_id
11_CPAMob_Qual3_CODiscAction.do:138
STATA/11_CPAMob_Qual3_CODiscAction.do, line 138 eststo: reghdfe discipline L1_CPAMob_young if oldyoung == 1, a(firm_id year) cluster(firm_id)
written at 11_CPAMob_Qual3_CODiscAction.do:139
Estimations not traced to a table or figure · 44
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
stcox
hazard
— logpaydiff logempdiff d5logpay d5logemp pubprac localCPAs i.mobilitytaskforce i.fundingautonomy L1_unemprate L1_realgdp L1_firm_birth L1_jobcreation_netbirth +4 more — cluster: id
02_CPAMob_AdoptionPrediction.do:234
STATA/02_CPAMob_AdoptionPrediction.do, line 234 qui stcox logpaydiff logempdiff d5logpay d5logemp pubprac localCPAs i.mobilitytaskforce i.fundingautonomy L1_unemprate L1_realgdp L1_firm_birth L1_jobcreation_netbirth Senate_Dem_Share House_Dem_Share logbills logenact, cluster(id)
reghdfe
panel fe
logpay reltimeleadlarger3_cpa reltimelead3_cpa reltimelead2_cpa zero reltime0_cpa reltimelag1_cpa reltimelag2_cpa reltimelag3_cpa reltimelaglarger3_cpa L1_unemp L1_gdp L1_abroadmigration +1 more state_id, year cluster: state_id
03_CPAMob_QCEW_State.do:181
STATA/03_CPAMob_QCEW_State.do, line 181 reghdfe logpay reltimeleadlarger3_cpa reltimelead3_cpa reltimelead2_cpa zero /*reltimelead1_cpa */ reltime0_cpa reltimelag1_cpa /// reltimelag2_cpa reltimelag3_cpa reltimelaglarger3_cpa /// L1_unemp L1_gdp L1_abroadmigration L1_bet …
reghdfe
panel fe
logpay reltimeleadlarger3_cpa reltimelead3_cpa reltimelead2_cpa zero reltime0_cpa reltimelag1_cpa reltimelag2_cpa reltimelag3_cpa reltimelaglarger3_cpa cpa_year, state_year, state_occ_id cluster: state_id
03_CPAMob_QCEW_State.do:194
STATA/03_CPAMob_QCEW_State.do, line 194 reghdfe logpay reltimeleadlarger3_cpa reltimelead3_cpa reltimelead2_cpa zero /* reltimelead1_cpa */ reltime0_cpa reltimelag1_cpa /// reltimelag2_cpa reltimelag3_cpa reltimelaglarger3_cpa if cpalawyer == 1 [aw = empshare], a(cpa_year sta …
reghdfe
panel fe
logpay L1_CPAMob_small_cpa state_naics_size_id, state_naics_year_id, state_size_year_id, naics_size_year_id cluster: state_id
04_CPAMob_SUSB_State.do:196
STATA/04_CPAMob_SUSB_State.do, line 196 qui reghdfe logpay L1_CPAMob_small_cpa [aw = emplshare], a(state_naics_size_id state_naics_year_id state_size_year_id naics_size_year_id) cluster(state_id)
reghdfe
panel fe
logempl L1_CPAMob_small_cpa state_naics_size_id, state_naics_year_id, state_size_year_id, naics_size_year_id cluster: state_id
04_CPAMob_SUSB_State.do:198
STATA/04_CPAMob_SUSB_State.do, line 198 qui reghdfe logempl L1_CPAMob_small_cpa, a(state_naics_size_id state_naics_year_id state_size_year_id naics_size_year_id) cluster(state_id)
reghdfe
panel fe
logemp2estb L1_CPAMob_small_cpa state_naics_size_id, state_naics_year_id, state_size_year_id, naics_size_year_id cluster: state_id
04_CPAMob_SUSB_State.do:200
STATA/04_CPAMob_SUSB_State.do, line 200 qui reghdfe logemp2estb L1_CPAMob_small_cpa [aw = estbshare], a(state_naics_size_id state_naics_year_id state_size_year_id naics_size_year_id) cluster(state_id)
reghdfe
panel fe
logestb L1_CPAMob_small_cpa state_naics_size_id, state_naics_year_id, state_size_year_id, naics_size_year_id cluster: state_id
04_CPAMob_SUSB_State.do:202
STATA/04_CPAMob_SUSB_State.do, line 202 qui reghdfe logestb L1_CPAMob_small_cpa, a(state_naics_size_id state_naics_year_id state_size_year_id naics_size_year_id) cluster(state_id)
reghdfe
panel fe
logpay leadlarger2small zero lag0small lag1small lag2small lag3small laglarger4small state_year_id, state_size_id, size_year_id cluster: state_id
04_CPAMob_SUSB_State.do:276
STATA/04_CPAMob_SUSB_State.do, line 276 reghdfe logpay leadlarger2small zero /* lead1small */ lag0small lag1small lag2small lag3small laglarger4small if cpa == 1 [aw = empshare], /// a(state_year_id state_size_id size_year_id) cluster(state_id)
reghdfe
panel fe
logpay L1_CPAMobility_Effec_longpanel county_id, i.border_id#i.year cluster: state_id
05_CPAMob_QCEW_BorderCounty.do:237
STATA/05_CPAMob_QCEW_BorderCounty.do, line 237 qui reghdfe logpay L1_CPAMobility_Effec_longpanel [aw = empshare], a(county_id i.border_id#i.year) cluster(state_id)
reg
ols
d1logpay d1logmsagdp_cpa_post d1logmsagdp_cpa d1logmsagdp_lawyer_post d1logmsagdp_lawyer i.cpa i.postperiod i.postperiod#i.cpa — cluster: msa_id
06_CPAMob_QCEW_MSA.do:197
STATA/06_CPAMob_QCEW_MSA.do, line 197 reg d1logpay d1logmsagdp_cpa_post d1logmsagdp_cpa d1logmsagdp_lawyer_post d1logmsagdp_lawyer i.cpa i.postperiod i.postperiod#i.cpa [aw = empshare] if estperiod == 1, cluster(msa_id)
reghdfe
panel fe
`var' i.CPAMobility_Effec_longpanel state_id, year cluster: state_id
07_CPAMob_AICPAMap.do:223
STATA/07_CPAMob_AICPAMap.do, line 223 qui eststo: reghdfe `var' i.CPAMobility_Effec_longpanel if triple_condition == 1 & year <= 2014 & size_class =="all" [aw = number_firms], a(state_id year) cluster(state_id)
run 3× in a loop (var=logcomp_all; var=avgbill_all; var=logavgcharg_all)
reghdfe
panel fe
`var' i.CPAMobility_Effec_longpanel state_id, year cluster: state_id
07_CPAMob_AICPAMap.do:234
STATA/07_CPAMob_AICPAMap.do, line 234 qui eststo: reghdfe `var' i.CPAMobility_Effec_longpanel if triple_condition == 1 & year <= 2015 & size_class =="all" [aw = number_firms], a(state_id year) cluster(state_id)
run 3× in a loop (var=logseniorlow; var=logseniormid; var=logmidlow)
reghdfe
panel fe
`var' i.CPAMobility_Effec_longpanel state_id, year cluster: state_id
07_CPAMob_AICPAMap.do:246
STATA/07_CPAMob_AICPAMap.do, line 246 qui eststo: reghdfe `var' i.CPAMobility_Effec_longpanel if triple_condition == 1 & year <= 2015 & size_class =="all" [aw = number_firms], a(state_id year) cluster(state_id)
run 3× in a loop (var=logbill_seniorlow; var=logbill_seniormid; var=logbill_midlow)
reghdfe
panel fe
`var' i.CPAMobility_Effec_longpanel state_id, year cluster: state_id
07_CPAMob_AICPAMap.do:257
STATA/07_CPAMob_AICPAMap.do, line 257 qui eststo: reghdfe `var' i.CPAMobility_Effec_longpanel if triple_condition == 1 & year <= 2015 & size_class =="all" [aw = number_firms], a(state_id year) cluster(state_id)
run 3× in a loop (var=loghour_seniorlow; var=loghour_seniormid; var=loghour_midlow)
reghdfe
panel fe
logfees_w contribution2assets_w income2assets_w hardtoaudit_w logassets_w investfees2assets_w participants2assets_w state_national_year_id, auditfirm_state_id default
08_CPAMob_PensionPlanFees.do:450
STATA/08_CPAMob_PensionPlanFees.do, line 450 reghdfe logfees_w ${controls}, a(state_national_year_id auditfirm_state_id, savefe) as we read it (macros filled in / loop expanded): reghdfe logfees_w contribution2assets_w income2assets_w hardtoaudit_w logassets_w investfees2assets_w participants2assets_w, a(state_national_year_id auditfirm_state_id, savefe)
reghdfe
panel fe
logfees_w CPAMob contribution2assets_w income2assets_w hardtoaudit_w logassets_w investfees2assets_w participants2assets_w auditfirm_state_id, year cluster: state_id
08_CPAMob_PensionPlanFees.do:472
STATA/08_CPAMob_PensionPlanFees.do, line 472 qui reghdfe logfees_w CPAMob ${controls} if nationalbalancedstate == 3, a(auditfirm_state_id year) cluster(state_id) /*2.3% decline*/ as we read it (macros filled in / loop expanded): qui reghdfe logfees_w CPAMob contribution2assets_w income2assets_w hardtoaudit_w logassets_w investfees2assets_w participants2assets_w if nationalbalancedstate == 3, a(auditfirm_state_id year) cluster(state_id)
reghdfe
panel fe
logfees_w CPAMob contribution2assets_w income2assets_w hardtoaudit_w logassets_w investfees2assets_w participants2assets_w auditfirm_state_id, year cluster: state_id
08_CPAMob_PensionPlanFees.do:474
STATA/08_CPAMob_PensionPlanFees.do, line 474 qui reghdfe logfees_w CPAMob ${controls} if national == 1 & nationalbalancedstate == 3, a(auditfirm_state_id year) cluster(state_id) as we read it (macros filled in / loop expanded): qui reghdfe logfees_w CPAMob contribution2assets_w income2assets_w hardtoaudit_w logassets_w investfees2assets_w participants2assets_w if national == 1 & nationalbalancedstate == 3, a(auditfirm_state_id year) cluster(state_id)
reghdfe
panel fe
logfees_w CPAMob contribution2assets_w income2assets_w hardtoaudit_w logassets_w investfees2assets_w participants2assets_w auditfirm_state_id, year cluster: state_id
08_CPAMob_PensionPlanFees.do:476
STATA/08_CPAMob_PensionPlanFees.do, line 476 qui reghdfe logfees_w CPAMob ${controls} if national == 0 & nationalbalancedstate == 3, a(auditfirm_state_id year) cluster(state_id) as we read it (macros filled in / loop expanded): qui reghdfe logfees_w CPAMob contribution2assets_w income2assets_w hardtoaudit_w logassets_w investfees2assets_w participants2assets_w if national == 0 & nationalbalancedstate == 3, a(auditfirm_state_id year) cluster(state_id)
reghdfe
panel fe
logfees_w CPAMob_small CPAMob_big contribution2assets_w income2assets_w hardtoaudit_w logassets_w investfees2assets_w participants2assets_w auditfirm_state_id, national_year_id cluster: state_id
08_CPAMob_PensionPlanFees.do:478
STATA/08_CPAMob_PensionPlanFees.do, line 478 qui reghdfe logfees_w CPAMob_small CPAMob_big ${controls} if nationalbalancedstate == 3, a(auditfirm_state_id national_year_id) cluster(state_id) as we read it (macros filled in / loop expanded): qui reghdfe logfees_w CPAMob_small CPAMob_big contribution2assets_w income2assets_w hardtoaudit_w logassets_w investfees2assets_w participants2assets_w if nationalbalancedstate == 3, a(auditfirm_state_id national_year_id) cluster(state_id)
xtpoisson
count
total_count L1_CPAMobility_Effec_longpanel i.year state_id robust
09_CPAMob_Qual1_AICPAMisconduct.do:85
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 85 qui xtpoisson total_count L1_CPAMobility_Effec_longpanel i.year, fe i(state_id) vce(robust)
reghdfe
panel fe
total_count L1_CPAMobility_Effec_longpanel year cluster: state_id
09_CPAMob_Qual1_AICPAMisconduct.do:92
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 92 qui eststo: reghdfe total_count L1_CPAMobility_Effec_longpanel if estsample == 1, a(year) cluster(state_id)
reghdfe
panel fe
total_count L1_CPAMobility_Effec_longpanel state_id, year cluster: state_id
09_CPAMob_Qual1_AICPAMisconduct.do:93
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 93 qui eststo: reghdfe total_count L1_CPAMobility_Effec_longpanel if estsample == 1, a(state_id year) cluster(state_id)
xtpoisson
count
total_count L1_CPAMobility_Effec_longpanel year robust
09_CPAMob_Qual1_AICPAMisconduct.do:94
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 94 qui eststo: xtpoisson total_count L1_CPAMobility_Effec_longpanel if estsample == 1, fe i(year) vce(robust) /*vce(robust) with specified panel id clusters standard error on the panel id level in xtpoisson (Stata default)*/
xtpoisson
count
total_count L1_CPAMobility_Effec_longpanel i.year state_id robust
09_CPAMob_Qual1_AICPAMisconduct.do:95
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 95 qui eststo: xtpoisson total_count L1_CPAMobility_Effec_longpanel i.year if estsample == 1, fe i(state_id) vce(robust)
reghdfe
panel fe
weighted_count L1_CPAMobility_Effec_longpanel year cluster: state_id
09_CPAMob_Qual1_AICPAMisconduct.do:96
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 96 qui eststo: reghdfe weighted_count L1_CPAMobility_Effec_longpanel if estsample == 1, a(year) cluster(state_id)
reghdfe
panel fe
weighted_count L1_CPAMobility_Effec_longpanel state_id, year cluster: state_id
09_CPAMob_Qual1_AICPAMisconduct.do:97
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 97 qui eststo: reghdfe weighted_count L1_CPAMobility_Effec_longpanel if estsample == 1, a(state_id year) cluster(state_id)
xtpoisson
count
weighted_count L1_CPAMobility_Effec_longpanel year default
09_CPAMob_Qual1_AICPAMisconduct.do:98
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 98 qui eststo: xtpoisson weighted_count L1_CPAMobility_Effec_longpanel if estsample == 1, fe i(year)
xtpoisson
count
weighted_count L1_CPAMobility_Effec_longpanel i.year state_id default
09_CPAMob_Qual1_AICPAMisconduct.do:99
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 99 qui eststo: xtpoisson weighted_count L1_CPAMobility_Effec_longpanel i.year if estsample == 1, fe i(state_id)
poisson
count
total_count L1_CPAMobility_Effec_longpanel i.year — robust
09_CPAMob_Qual1_AICPAMisconduct.do:105
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 105 qui eststo: poisson total_count L1_CPAMobility_Effec_longpanel i.year if estsample == 1, vce(robust)
poisson
count
total_count L1_CPAMobility_Effec_longpanel i.year i.state_id — robust
09_CPAMob_Qual1_AICPAMisconduct.do:106
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 106 qui eststo: poisson total_count L1_CPAMobility_Effec_longpanel i.year i.state_id if estsample == 1, vce(robust)
poisson
count
weighted_count L1_CPAMobility_Effec_longpanel i.year — robust
09_CPAMob_Qual1_AICPAMisconduct.do:107
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 107 qui eststo: poisson weighted_count L1_CPAMobility_Effec_longpanel i.year if estsample == 1, vce(robust)
poisson
count
weighted_count L1_CPAMobility_Effec_longpanel i.year i.state_id — robust
09_CPAMob_Qual1_AICPAMisconduct.do:108
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 108 qui eststo: poisson weighted_count L1_CPAMobility_Effec_longpanel i.year i.state_id if estsample == 1, vce(robust)
reghdfe
panel fe
casecount_total L1_CPAMob year cluster: state_id
10_CPAMob_Qual2_EBSA.do:105
STATA/10_CPAMob_Qual2_EBSA.do, line 105 qui eststo: reghdfe casecount_total L1_CPAMob, a(year) cluster(state_id)
reghdfe
panel fe
casecount_total L1_CPAMob year, state_id cluster: state_id
10_CPAMob_Qual2_EBSA.do:106
STATA/10_CPAMob_Qual2_EBSA.do, line 106 qui eststo: reghdfe casecount_total L1_CPAMob, a(year state_id) cluster(state_id)
xtpoisson
count
casecount_total L1_CPAMob year robust
10_CPAMob_Qual2_EBSA.do:107
STATA/10_CPAMob_Qual2_EBSA.do, line 107 qui eststo: xtpoisson casecount_total L1_CPAMob , fe i(year) vce(robust) /*vce(robust) with specified panel id clusters standard error on the panel id level (Stata default)*/
xtpoisson
count
casecount_total L1_CPAMob i.year state_id robust
10_CPAMob_Qual2_EBSA.do:108
STATA/10_CPAMob_Qual2_EBSA.do, line 108 qui eststo: xtpoisson casecount_total L1_CPAMob i.year, fe i(state_id) vce(robust)
reghdfe
panel fe
casecount_weighted L1_CPAMob year cluster: state_id
10_CPAMob_Qual2_EBSA.do:109
STATA/10_CPAMob_Qual2_EBSA.do, line 109 qui eststo: reghdfe casecount_weighted L1_CPAMob, a(year) cluster(state_id)
reghdfe
panel fe
casecount_weighted L1_CPAMob year, state_id cluster: state_id
10_CPAMob_Qual2_EBSA.do:110
STATA/10_CPAMob_Qual2_EBSA.do, line 110 qui eststo: reghdfe casecount_weighted L1_CPAMob, a(year state_id) cluster(state_id)
xtpoisson
count
casecount_weighted L1_CPAMob year robust
10_CPAMob_Qual2_EBSA.do:111
STATA/10_CPAMob_Qual2_EBSA.do, line 111 qui eststo: xtpoisson casecount_weighted L1_CPAMob, fe i(year) vce(robust)
xtpoisson
count
casecount_weighted L1_CPAMob i.year state_id robust
10_CPAMob_Qual2_EBSA.do:112
STATA/10_CPAMob_Qual2_EBSA.do, line 112 qui eststo: xtpoisson casecount_weighted L1_CPAMob i.year, fe i(state_id) vce(robust)
Tables and figures the code writes: Table 1 Table1_PanelB.csv
02_CPAMob_AdoptionPrediction.do:242
STATA/02_CPAMob_AdoptionPrediction.do, line 242 esttab using "./Output/Table1_PanelB.csv", label b(3) se(3) pa star(* 0.10 ** 0.05 *** 0.01) pr2 nodep nonote nomti noli nogap alignment(c) replace eform
· Table 2 Table2_PanelB.csv
03_CPAMob_QCEW_State.do:222
STATA/03_CPAMob_QCEW_State.do, line 222 esttab using "./Output/Table2_PanelB.csv", label b(3) se(3) pa star(* 0.10 ** 0.05 *** 0.01) ar2 nodep nonote nomti noli nogap alignment(c) replace
· Table 2 Table2_PanelC.csv
03_CPAMob_QCEW_State.do:234
STATA/03_CPAMob_QCEW_State.do, line 234 esttab using "./Output/Table2_PanelC.csv", label b(3) se(3) pa star(* 0.10 ** 0.05 *** 0.01) ar2 nodep nonote nomti noli nogap alignment(c) replace
· Table 3 Table3_PanelB.csv
03_CPAMob_QCEW_State.do:245
STATA/03_CPAMob_QCEW_State.do, line 245 esttab using "./Output/Table3_PanelB.csv", label b(3) se(3) pa star(* 0.10 ** 0.05 *** 0.01) ar2 nodep nonote nomti noli nogap alignment(c) replace
· Table 3 Table3_PanelC.csv
04_CPAMob_SUSB_State.do:215
STATA/04_CPAMob_SUSB_State.do, line 215 esttab using "./Output/Table3_PanelC.csv", label b(3) se(3) pa star(* 0.10 ** 0.05 *** 0.01) ar2 nodep nonote nomti noli nogap alignment(c) replace
· Table 3 Table3_PanelA.csv
04_CPAMob_SUSB_State.do:246
STATA/04_CPAMob_SUSB_State.do, line 246 esttab using "./Output/Table3_PanelA.csv", label b(3) se(3) pa star(* 0.10 ** 0.05 *** 0.01) ar2 nodep nonote nomti noli nogap alignment(c) replace
· Table 4 Table4_PanelB.csv
05_CPAMob_QCEW_BorderCounty.do:251
STATA/05_CPAMob_QCEW_BorderCounty.do, line 251 esttab using "./Output/Table4_PanelB.csv", label b(3) se(3) pa star(* 0.10 ** 0.05 *** 0.01) ar2 nodep nonote nomti noli nogap alignment(c) replace
· Table 5 Table5_PanelA.csv
06_CPAMob_QCEW_MSA.do:189
STATA/06_CPAMob_QCEW_MSA.do, line 189 esttab using "./Output/Table5_PanelA.csv", label b(3) se(3) pa star(* 0.10 ** 0.05 *** 0.01) ar2 nodep nonote nomti noli nogap alignment(c) replace
· Table 5 Table5_PanelB.csv
06_CPAMob_QCEW_MSA.do:224
STATA/06_CPAMob_QCEW_MSA.do, line 224 esttab using "./Output/Table5_PanelB.csv", label b(3) se(3) pa star(* 0.10 ** 0.05 *** 0.01) ar2 nodep nonote nomti noli nogap alignment(c) replace
· Table 5 Table5_PanelC.csv
06_CPAMob_QCEW_MSA.do:250
STATA/06_CPAMob_QCEW_MSA.do, line 250 esttab using "./Output/Table5_PanelC.csv", label b(3) se(3) pa star(* 0.10 ** 0.05 *** 0.01) ar2 nodep nonote nomti noli nogap alignment(c) replace
· Table 6 Table6_PanelB.csv
07_CPAMob_AICPAMap.do:225
STATA/07_CPAMob_AICPAMap.do, line 225 esttab using "./Output/Table6_PanelB.csv", replace b(3) se(3) ar2 star(* 0.10 ** 0.05 *** 0.01)
· Table 6 Table6_PanelC.csv
07_CPAMob_AICPAMap.do:236
STATA/07_CPAMob_AICPAMap.do, line 236 esttab using "./Output/Table6_PanelC.csv", replace b(3) se(3) ar2 star(* 0.10 ** 0.05 *** 0.01)
· Table 6 Table6_PanelD.csv
07_CPAMob_AICPAMap.do:248
STATA/07_CPAMob_AICPAMap.do, line 248 esttab using "./Output/Table6_PanelD.csv", replace b(3) se(3) ar2 star(* 0.10 ** 0.05 *** 0.01)
· Table 6 Table6_PanelE.csv
07_CPAMob_AICPAMap.do:259
STATA/07_CPAMob_AICPAMap.do, line 259 esttab using "./Output/Table6_PanelE.csv", replace b(3) se(3) ar2 star(* 0.10 ** 0.05 *** 0.01)
· Table 7 Table7_PanelB.csv
08_CPAMob_PensionPlanFees.do:493
STATA/08_CPAMob_PensionPlanFees.do, line 493 esttab using "./Output/Table7_PanelB.csv", label b(3) se(3) pa star(* 0.10 ** 0.05 *** 0.01) ar2 nodep nonote nomti noli nogap alignment(c) replace
· Table 8 Table8_PanelA.csv
09_CPAMob_Qual1_AICPAMisconduct.do:101
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 101 esttab using "./Output/Table8_PanelA.csv", keep(L1_CPAMobility_Effec_longpanel) label b(3) se(3) pa star(* 0.10 ** 0.05 *** 0.01) ar2 nodep nonote nomti noli nogap alignment(c) replace
· Table 8 Table8_PanelA_R-Squared.csv
09_CPAMob_Qual1_AICPAMisconduct.do:110
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 110 esttab using "./Output/Table8_PanelA_R-Squared.csv", keep(L1_CPAMobility_Effec_longpanel) label b(3) se(3) pa star(* 0.10 ** 0.05 *** 0.01) pr2 nodep nonote nomti noli nogap alignment(c) replace
· Table 8 Table8_PanelB.csv
10_CPAMob_Qual2_EBSA.do:114
STATA/10_CPAMob_Qual2_EBSA.do, line 114 esttab using "./Output/Table8_PanelB.csv", keep(L1_CPAMob) label b(3) se(3) pa star(* 0.10 ** 0.05 *** 0.01) ar2 nodep nonote nomti noli nogap alignment(c) replace
· Table 8 Table8_PanelB_R-Squared.csv
10_CPAMob_Qual2_EBSA.do:124
STATA/10_CPAMob_Qual2_EBSA.do, line 124 esttab using "./Output/Table8_PanelB_R-Squared.csv", keep(L1_CPAMob) label b(3) se(3) pa star(* 0.10 ** 0.05 *** 0.01) pr2 nodep nonote nomti noli nogap alignment(c) replace
· Table 8 Table8_PanelC.csv
11_CPAMob_Qual3_CODiscAction.do:139
STATA/11_CPAMob_Qual3_CODiscAction.do, line 139 esttab using "./Output/Table8_PanelC.csv", label b(3) se(3) pa star(* 0.10 ** 0.05 *** 0.01) ar2 nodep nonote nomti noli nogap alignment(c) replace
· Figure 1 Figure1_PanelA.pdf
03_CPAMob_QCEW_State.do:186
STATA/03_CPAMob_QCEW_State.do, line 186 graph export "./Output/Figure1_PanelA.pdf", as(pdf) replace
· Figure 1 Figure1_PanelC.pdf
03_CPAMob_QCEW_State.do:198
STATA/03_CPAMob_QCEW_State.do, line 198 graph export "./Output/Figure1_PanelC.pdf", as(pdf) replace
· Figure 1 Figure1_PanelB.pdf
04_CPAMob_SUSB_State.do:280
STATA/04_CPAMob_SUSB_State.do, line 280 graph export "./Output/Figure1_PanelB.pdf", as(pdf) replace
· Figure 2 Figure2.pdf
05_CPAMob_QCEW_BorderCounty.do:202
STATA/05_CPAMob_QCEW_BorderCounty.do, line 202 graph export "./Output/Figure2.pdf", as(pdf) replace
· Figure 3 Figure3_PanelA-1.pdf
06_CPAMob_QCEW_MSA.do:145
STATA/06_CPAMob_QCEW_MSA.do, line 145 graph export "./Output/Figure3_PanelA-1.pdf", as(pdf) replace
· Figure 3 Figure3_PanelA-2.pdf
06_CPAMob_QCEW_MSA.do:151
STATA/06_CPAMob_QCEW_MSA.do, line 151 graph export "./Output/Figure3_PanelA-2.pdf", as(pdf) replace
· Figure 3 Figure3_PanelB-1.pdf
06_CPAMob_QCEW_MSA.do:157
STATA/06_CPAMob_QCEW_MSA.do, line 157 graph export "./Output/Figure3_PanelB-1.pdf", as(pdf) replace
· Figure 3 Figure3_PanelB-2.pdf
06_CPAMob_QCEW_MSA.do:163
STATA/06_CPAMob_QCEW_MSA.do, line 163 graph export "./Output/Figure3_PanelB-2.pdf", as(pdf) replace

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

binscatter 4 · event-study plot 3 · map 1
commandlayersvariables optionssaved aswhere
coefplot
event-study plot
coefplot xline 4.5 · ci rcap · vertical yes Figure 1
Figure1_PanelA.pdf
03_CPAMob_QCEW_State.do:184
STATA/03_CPAMob_QCEW_State.do, line 184 coefplot, keep(reltime* zero) omitted vertical /// yscale(r(-0.1 0.1)) ylabel(-0.1(.05)0.1) ci(95) ciopt(recast(rcap) lcolor(gs0)) mcolor(gs0) lcolor(gs0) mcolor(gs0) xline(4.5, lpattern(dash) lcolor(gs0)) graphregio …
–185
coefplot
event-study plot
coefplot xline 4.5 · ci rcap · vertical yes Figure 1
Figure1_PanelC.pdf
03_CPAMob_QCEW_State.do:196
STATA/03_CPAMob_QCEW_State.do, line 196 coefplot, keep(reltime* zero) omitted vertical /// yscale(r(-0.1 0.1)) ylabel(-0.1(.05)0.1) ci(95) ciopt(recast(rcap) lcolor(gs0)) mcolor(gs0) lcolor(gs0) mcolor(gs0) xline(4.5, lpattern(dash) lcolor(gs0)) graphregio …
–197
coefplot
event-study plot
coefplot xline 2.5 · ci rcap · vertical yes Figure 1
Figure1_PanelB.pdf
04_CPAMob_SUSB_State.do:278
STATA/04_CPAMob_SUSB_State.do, line 278 coefplot, keep(*small zero) vert omit /// yscale(r(-0.1 0.1)) ylabel(-0.1(.05)0.1) ci(95) ciopt(recast(rcap) lcolor(gs0)) mcolor(gs0) lcolor(gs0) mcolor(gs0) xline(2.5, lpattern(dash) lcolor(gs0)) graphregion(color(w …
–279
spmap
map
spmap Figure 2
Figure2.pdf
05_CPAMob_QCEW_BorderCounty.do:201
STATA/05_CPAMob_QCEW_BorderCounty.do, line 201 spmap neighbor_county using us_county_coord if year == 2005 & stateicp != 81, id(id) fcolor(Blues) clmethod(unique)
binscatter
binscatter
binscatter y d1logpay x d1logmsagdp title CPAs: Pre-Period · xtitle ∆LogGDP · ytitle ∆LogWage Figure 3
Figure3_PanelA-1.pdf
06_CPAMob_QCEW_MSA.do:142
STATA/06_CPAMob_QCEW_MSA.do, line 142 binscatter d1logpay d1logmsagdp [aw = empshare] if prepreriod == 1 & cpa == 1 /// , reportreg yscale(r(0.01 0.06)) ylabel(0.01(0.01)0.06) xscale(r(-0.05 0.1)) xlabel(-0.05(0.05)0.1) /// title("CPAs: Pre-Period") …
–144
binscatter
binscatter
binscatter y d1logpay x d1logmsagdp title CPAs: Post-Period · xtitle ∆LogGDP · ytitle ∆LogWage Figure 3
Figure3_PanelA-2.pdf
06_CPAMob_QCEW_MSA.do:148
STATA/06_CPAMob_QCEW_MSA.do, line 148 binscatter d1logpay d1logmsagdp [aw = empshare] if postperiod == 1 & cpa == 1 /// , reportreg yscale(r(0.01 0.06)) ylabel(0.01(0.01)0.06) xscale(r(-0.05 0.1)) xlabel(-0.05(0.05)0.1) /// title("CPAs: Post-Period") …
–150
binscatter
binscatter
binscatter y d1logpay x d1logmsagdp title Lawyers: Pre-Period · xtitle ∆LogGDP · ytitle ∆LogWage Figure 3
Figure3_PanelB-1.pdf
06_CPAMob_QCEW_MSA.do:154
STATA/06_CPAMob_QCEW_MSA.do, line 154 binscatter d1logpay d1logmsagdp [aw = empshare] if prepreriod == 1 & lawyer == 1 /// , reportreg yscale(r(0.01 0.06)) ylabel(0.01(0.01)0.06) xscale(r(-0.05 0.1)) xlabel(-0.05(0.05)0.1) /// title("Lawyers: Pre-Per …
–156
binscatter
binscatter
binscatter y d1logpay x d1logmsagdp title Lawyers: Post-Period · xtitle ∆LogGDP · ytitle ∆LogWage Figure 3
Figure3_PanelB-2.pdf
06_CPAMob_QCEW_MSA.do:160
STATA/06_CPAMob_QCEW_MSA.do, line 160 binscatter d1logpay d1logmsagdp [aw = empshare] if postperiod == 1 & lawyer == 1 /// , reportreg yscale(r(0.01 0.06)) ylabel(0.01(0.01)0.06) xscale(r(-0.05 0.1)) xlabel(-0.05(0.05)0.1) /// title("Lawyers: Post-Pe …
–162