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
Datasets this package uses (item detector / README):
BEA Regional Economic Accounts, IPUMS microdata (USA / CPS), BLS Quarterly Census of Employment and Wages
./Data/Census/Data_QCEW/QCEW_RAWData/csv_qcew_cpas_datasets.dtaStata · read by 3 scripts03_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.dtaStata03_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 scripts03_CPAMob_QCEW_State.do:28
STATA/03_CPAMob_QCEW_State.do, line 28 import delimited using "`d'", stringcols(_all) clear./Data/Helper/LawDummiesCensusState.dtaStata · read by 3 scripts02_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.dtaStata07_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.dtaStata04_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.csvCSV06_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.xlsExcel01_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.dtaStata05_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.dtaStata01_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.xlsxExcel01_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.dtaStata05_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.xlsxExcel07_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.xlsExcel10_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.dtaStata09_CPAMob_Qual1_AICPAMisconduct.do:57
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 57 use "./Data/Helper/LawDummiesAICPAMisconduct.dta", clear./Data/Helper/LawDummiesCensusCounty.dtaStata05_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.dtaStata08_CPAMob_PensionPlanFees.do:315
STATA/08_CPAMob_PensionPlanFees.do, line 315 use "./Data/Helper/LawDummiesPensionPlans.dta", clear./Data/Helper/us_county_db.dtaStata05_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.dtaStata02_CPAMob_AdoptionPrediction.do:107
STATA/02_CPAMob_AdoptionPrediction.do, line 107 merge m:1 StatePostal using "./Data/LawPrediction/ColbertMurray.dta"./Data/LawPrediction/CPAMob_PoliticalEconomy.xlsxExcel02_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.csvCSV02_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.xlsExcel02_CPAMob_AdoptionPrediction.do:18
STATA/02_CPAMob_AdoptionPrediction.do, line 18 import excel "./Data/LawPrediction/LawsByState.xls", sheet("Sheet1") firstrow clear./Data/LawPrediction/macrocontrols.dtaStata02_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.xlsxExcel02_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.csvCSV08_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.csvCSV08_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.csvCSV08_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.csvCSV11_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.csvCSV10_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.
-
1.
STATA/00_CPAMob_Master.domaster script -
2.
STATA/01_CPAMob_ControlsPrep.dorun by STATA/00_CPAMob_Master.do line 27 reads 3 input files · 2 merges ·writesextendedstatecontrols.dta→ read by03_CPAMob_QCEW_State.do,04_CPAMob_SUSB_State.do,05_CPAMob_QCEW_BorderCounty.do -
3.
STATA/02_CPAMob_AdoptionPrediction.dorun by STATA/00_CPAMob_Master.do line 32 reads 7 input files · 8 merges · 6 estimations -
4.
STATA/03_CPAMob_QCEW_State.dorun by STATA/00_CPAMob_Master.do line 37 reads 4 input files · 5 merges · 18 estimationsreads what01_CPAMob_ControlsPrep.dowrote -
5.
STATA/reltimedummmies.dorun by STATA/03_CPAMob_QCEW_State.do line 147 -
6.
STATA/04_CPAMob_SUSB_State.dorun by STATA/00_CPAMob_Master.do line 42 reads 3 input files · 3 merges · 13 estimationsreads what01_CPAMob_ControlsPrep.dowrote -
7.
STATA/05_CPAMob_QCEW_BorderCounty.dorun by STATA/00_CPAMob_Master.do line 47 reads 6 input files · 6 merges · 9 estimationsreads what01_CPAMob_ControlsPrep.dowrote -
8.
STATA/06_CPAMob_QCEW_MSA.dorun by STATA/00_CPAMob_Master.do line 52 reads 3 input files · 2 merges · 7 estimations -
9.
STATA/07_CPAMob_AICPAMap.dorun by STATA/00_CPAMob_Master.do line 57 reads 3 input files · 2 merges · 4 estimations -
10.
STATA/08_CPAMob_PensionPlanFees.dorun by STATA/00_CPAMob_Master.do line 62 reads 4 input files · 13 merges · 7 estimations -
11.
STATA/09_CPAMob_Qual1_AICPAMisconduct.dorun by STATA/00_CPAMob_Master.do line 67 reads 1 input file · 1 merge · 13 estimations -
12.
STATA/10_CPAMob_Qual2_EBSA.dorun by STATA/00_CPAMob_Master.do line 72 reads 2 input files · 2 merges · 12 estimations -
13.
STATA/11_CPAMob_Qual3_CODiscAction.dorun 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
| Joins | How | On keys | Check that follows | Where |
|---|---|---|---|---|
unemploymentstate_cleanforimport ← gdp |
merge 1:1 | area_fips year |
keep if _merge == 3 |
01_CPAMob_ControlsPrep.do:44STATA/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:85STATA/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:33STATA/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:40STATA/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:68STATA/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:85STATA/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:101STATA/02_CPAMob_AdoptionPrediction.do, line 101
merge m:1 State using `postcode' |
postcode ← colbertmurray |
merge m:1 | StatePostal |
none | 02_CPAMob_AdoptionPrediction.do:107STATA/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:226STATA/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:68STATA/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:92STATA/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:115STATA/03_CPAMob_QCEW_State.do, line 115
merge m:1 occ_year_id using `emptotal' |
(data in memory) ← mobilitydummies |
merge m:1 | area_fips year |
drop if _merge == 2 |
03_CPAMob_QCEW_State.do:134STATA/03_CPAMob_QCEW_State.do, line 134
merge m:1 area_fips year using `mobilitydummies' |
(data in memory) ← mobilitydummies |
merge m:1 | area_fips year |
keep if _merge == 3 |
04_CPAMob_SUSB_State.do:110STATA/04_CPAMob_SUSB_State.do, line 110
merge m:1 area_fips year using `mobilitydummies' |
mobilitydummies ← extendedstatecontrols |
merge m:1 | area_fips year |
assert _merge != 1 |
04_CPAMob_SUSB_State.do:235STATA/04_CPAMob_SUSB_State.do, line 235
merge m:1 area_fips year using "./Data/Controls/extendedstatecontrols.dta" |
`save1' ← lawdummiescensuscounty |
merge m:1 | area_fips year |
none | 05_CPAMob_QCEW_BorderCounty.do:74STATA/05_CPAMob_QCEW_BorderCounty.do, line 74
merge m:1 area_fips year using "./Data/Helper/LawDummiesCensusCounty.dta" |
`save1' ← cpamobility_adjanctcountiesborderids |
merge m:1 | area_fips |
tab statepair if _merge == 2 |
05_CPAMob_QCEW_BorderCounty.do:105STATA/05_CPAMob_QCEW_BorderCounty.do, line 105
merge m:1 area_fips using "./Data/Helper/CPAMobility_AdjanctCountiesBorderIDs.dta" |
`save1' ← us_county_db |
merge m:1 | area_fips |
tab NAME if _merge == 2 |
05_CPAMob_QCEW_BorderCounty.do:117STATA/05_CPAMob_QCEW_BorderCounty.do, line 117
merge m:1 area_fips using "./Data/Helper/us_county_db.dta" |
`save1' ← extendedstatecontrols |
merge m:1 | area_fips year |
drop if _merge != 3 |
05_CPAMob_QCEW_BorderCounty.do:128STATA/05_CPAMob_QCEW_BorderCounty.do, line 128
merge m:1 area_fips year using "./Data/Controls/extendedstatecontrols.dta" |
(data in memory) ← unempcounty |
merge 1:1 | area_fips year |
keep if _merge ==3 |
05_CPAMob_QCEW_BorderCounty.do:148STATA/05_CPAMob_QCEW_BorderCounty.do, line 148
merge 1:1 area_fips year using `unempcounty' |
(data in memory) ← msagdp |
merge m:1 | area_fips year |
drop if _merge == 2 |
06_CPAMob_QCEW_MSA.do:77STATA/06_CPAMob_QCEW_MSA.do, line 77
merge m:1 area_fips year using `msagdp' |
(data in memory) ← dummies |
merge m:1 | area_fips year |
tab STATE if _merge == 2 |
07_CPAMob_AICPAMap.do:127STATA/07_CPAMob_AICPAMap.do, line 127
merge m:1 area_fips year using `dummies' /*all matched from master*/ |
schedule_h_0308 ← schedule_c_0308 |
merge 1:m | filing_id provider_01_ein year |
keep if _merge == 3 |
08_CPAMob_PensionPlanFees.do:70STATA/08_CPAMob_PensionPlanFees.do, line 70
merge 1:m filing_id provider_01_ein year using "./Data/PensionPlans/Data_Form5500_AuditFees/schedule_c_0308.dta" |
form5500_0308 ← planauditors_0308 |
merge m:1 | filing_id year |
keep if _merge == 3 |
08_CPAMob_PensionPlanFees.do:121STATA/08_CPAMob_PensionPlanFees.do, line 121
merge m:1 filing_id year using "./Data/PensionPlans/Data_Form5500_AuditFees/planauditors_0308.dta" |
schedule_h_0915 ← schedule_c_0915 |
merge 1:m | ack_id provider_01_ein year |
keep if _merge == 3 |
08_CPAMob_PensionPlanFees.do:204STATA/08_CPAMob_PensionPlanFees.do, line 204
merge 1:m ack_id provider_01_ein year using "./Data/PensionPlans/Data_Form5500_AuditFees/schedule_c_0915.dta" |
form5500_0915 ← planauditors_0915 |
merge m:1 | ack_id year |
keep if _merge == 3 |
08_CPAMob_PensionPlanFees.do:271STATA/08_CPAMob_PensionPlanFees.do, line 271
merge m:1 ack_id year using "./Data/PensionPlans/Data_Form5500_AuditFees/planauditors_0915.dta" /*all merged*/ |
(data in memory) ← lawdummies |
merge m:1 | state year |
keep if _merge == 3 |
08_CPAMob_PensionPlanFees.do:321STATA/08_CPAMob_PensionPlanFees.do, line 321
merge m:1 state year using `lawdummies' |
(data in memory) ← national |
merge m:1 | state_national_year_id |
rename _merge nationalbalancedstate |
08_CPAMob_PensionPlanFees.do:464STATA/08_CPAMob_PensionPlanFees.do, line 464
merge m:1 state_national_year_id using `national' |
lawdummiesaicpamisconduct ← aicpa_misc |
merge 1:1 | ST year |
drop if _merge ==2 |
09_CPAMob_Qual1_AICPAMisconduct.do:58STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 58
merge 1:1 ST year using `aicpa_misc' |
datacollectionframe ← ebsa_total |
merge 1:1 | state year |
replace casecount_total = 0 if _merge == 1 |
10_CPAMob_Qual2_EBSA.do:73STATA/10_CPAMob_Qual2_EBSA.do, line 73
merge 1:1 state year using `ebsa_total' /*zero from using --> correct*/ |
datacollectionframe ← `ebsa_`i'' |
merge 1:1 | state year |
assert _merge != 2 |
10_CPAMob_Qual2_EBSA.do:79STATA/10_CPAMob_Qual2_EBSA.do, line 79
merge 1:1 state year using `ebsa_`i'' |
(data in memory) ← codisc |
merge 1:1 | firmlicensenumber year |
drop if _merge == 2 |
11_CPAMob_Qual3_CODiscAction.do:95STATA/11_CPAMob_Qual3_CODiscAction.do, line 95
merge 1:1 firmlicensenumber year using `codisc' |
(data in memory) ← age |
merge m:1 | firmlicensenumber |
none | 11_CPAMob_Qual3_CODiscAction.do:117STATA/11_CPAMob_Qual3_CODiscAction.do, line 117
merge m:1 firmlicensenumber using `age' |
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 <= 201502_CPAMob_AdoptionPrediction.do:56
STATA/02_CPAMob_AdoptionPrediction.do, line 56 keep if year >= 2003 & year <= 2015 - keep if
year == 200502_CPAMob_AdoptionPrediction.do:216
STATA/02_CPAMob_AdoptionPrediction.do, line 216 keep if year == 2005 /*calc diffs to national */ - keep if
year >= 200303_CPAMob_QCEW_State.do:87
STATA/03_CPAMob_QCEW_State.do, line 87 keep if year >= 2003 - keep if
year >= 200305_CPAMob_QCEW_BorderCounty.do:62
STATA/05_CPAMob_QCEW_BorderCounty.do, line 62 keep if year >= 2003 - drop if
year <= 200205_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 < 200309_CPAMob_Qual1_AICPAMisconduct.do:18
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 18 drop if year < 2003 - drop if
year < 200309_CPAMob_Qual1_AICPAMisconduct.do:73
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 73 drop if year < 2003 - drop if
year < 200310_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 >= 506_CPAMob_QCEW_MSA.do:131
STATA/06_CPAMob_QCEW_MSA.do, line 131 keep if totalinclobs >= 5 - keep if
includedobs >= 508_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 == 102_CPAMob_AdoptionPrediction.do:193
STATA/02_CPAMob_AdoptionPrediction.do, line 193 drop if excludestate == 1 /*align with main sample*/ - drop if
excludestate == 103_CPAMob_QCEW_State.do:84
STATA/03_CPAMob_QCEW_State.do, line 84 drop if excludestate == 1 - keep if
inclfirm == 104_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 == 104_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 == 104_CPAMob_SUSB_State.do:222
STATA/04_CPAMob_SUSB_State.do, line 222 keep if cpa == 1 - keep if
diff_adoption == 105_CPAMob_QCEW_BorderCounty.do:207
STATA/05_CPAMob_QCEW_BorderCounty.do, line 207 keep if diff_adoption == 1 - keep if
cpa == 1 | lawyer == 106_CPAMob_QCEW_MSA.do:106
STATA/06_CPAMob_QCEW_MSA.do, line 106 keep if cpa == 1 | lawyer == 1 - keep if
estperiod == 106_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) == 201_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 == 004_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 == 2608_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 == 107_CPAMob_AICPAMap.do:30
STATA/07_CPAMob_AICPAMap.do, line 30 drop if _n == 1 /*drop empty row -- collection notes*/ - keep if
counter == 108_CPAMob_PensionPlanFees.do:85
STATA/08_CPAMob_PensionPlanFees.do, line 85 keep if counter == 1 /*keep main role*/ - keep if
counter == 108_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 > 005_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 == 301_CPAMob_ControlsPrep.do:45
STATA/01_CPAMob_ControlsPrep.do, line 45 keep if _merge == 3 - keep if
_merge == 301_CPAMob_ControlsPrep.do:86
STATA/01_CPAMob_ControlsPrep.do, line 86 keep if _merge == 3 - keep if
_merge == 302_CPAMob_AdoptionPrediction.do:34
STATA/02_CPAMob_AdoptionPrediction.do, line 34 keep if _merge == 3 /*all merged from master*/ - keep if
_merge == 302_CPAMob_AdoptionPrediction.do:41
STATA/02_CPAMob_AdoptionPrediction.do, line 41 keep if _merge == 3 /*all from master are merged*/ - keep if
_merge == 302_CPAMob_AdoptionPrediction.do:70
STATA/02_CPAMob_AdoptionPrediction.do, line 70 keep if _merge == 3 - keep if
_merge == 302_CPAMob_AdoptionPrediction.do:86
STATA/02_CPAMob_AdoptionPrediction.do, line 86 keep if _merge == 3 - keep if
_merge == 302_CPAMob_AdoptionPrediction.do:103
STATA/02_CPAMob_AdoptionPrediction.do, line 103 keep if _merge == 3 - keep if
_merge == 302_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 income2assets08_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)) == 104_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→008_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→008_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→008_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→008_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→009_CPAMob_Qual1_AICPAMisconduct.do:65
STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 65 replace `var' = 0 if missing(`var')suspended_count→009_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→200611_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")
| Variable | Used in models as | Built by |
|---|---|---|
logpay |
outcome in 20 | logpay = log(pay) (gen) 02_CPAMob_AdoptionPrediction.do:208STATA/02_CPAMob_AdoptionPrediction.do, line 208
gen logpay = log(pay) logpay = log(pay) (gen) 03_CPAMob_QCEW_State.do:104STATA/03_CPAMob_QCEW_State.do, line 104
gen logpay = log(pay) logpay = log(pay) (gen) 04_CPAMob_SUSB_State.do:118STATA/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:209STATA/02_CPAMob_AdoptionPrediction.do, line 209
gen logemp = log(emp) logemp = log(emp) (gen) 03_CPAMob_QCEW_State.do:105STATA/03_CPAMob_QCEW_State.do, line 105
gen logemp = log(emp) logemp = log(emp) (gen) 05_CPAMob_QCEW_BorderCounty.do:164STATA/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:37STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 37
gen total_count = . total_count = 1 (replace) 09_CPAMob_Qual1_AICPAMisconduct.do:38STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 38
replace total_count = 1 if admonished_count == 1 total_count = 1 (replace) 09_CPAMob_Qual1_AICPAMisconduct.do:39STATA/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:74STATA/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:97STATA/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:43STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 43
gen weighted_count = total_count weighted_count = 1 (replace) 09_CPAMob_Qual1_AICPAMisconduct.do:44STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 44
replace weighted_count = 1 if admonished_count == 1 weighted_count = 2 (replace) 09_CPAMob_Qual1_AICPAMisconduct.do:45STATA/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:122STATA/04_CPAMob_SUSB_State.do, line 122
gen logemp2estb = log(emp2estb) |
logempl |
outcome in 3 | logempl = log(empl) (gen) 04_CPAMob_SUSB_State.do:119STATA/04_CPAMob_SUSB_State.do, line 119
gen logempl = log(empl) |
logestb |
outcome in 3 | logestb = log(estb) (gen) 04_CPAMob_SUSB_State.do:120STATA/04_CPAMob_SUSB_State.do, line 120
gen logestb = log(estb) |
discipline |
outcome in 2 | discipline = (_merge == 3) (gen) 11_CPAMob_Qual3_CODiscAction.do:97STATA/11_CPAMob_Qual3_CODiscAction.do, line 97
gen discipline = (_merge == 3) |
logempl2estab |
outcome in 1 | logempl2estab = log(empl2estab) (gen) 03_CPAMob_QCEW_State.do:160STATA/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:156STATA/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:139STATA/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:161STATA/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:69STATA/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 |
L1_CPAMobility_Effec_longpanel |
regressor in 22 | L1_CPAMobility_Effec_longpanel = 1 (replace) 05_CPAMob_QCEW_BorderCounty.do:87STATA/05_CPAMob_QCEW_BorderCounty.do, line 87
replace L1_CPAMobility_Effec_longpanel = 1 if year >= 2015 |
year |
regressor in 13 | year = Year (rename) 02_CPAMob_AdoptionPrediction.do:24STATA/02_CPAMob_AdoptionPrediction.do, line 24
rename Year year year = year2 (rename) 02_CPAMob_AdoptionPrediction.do:63STATA/02_CPAMob_AdoptionPrediction.do, line 63
rename year2 year year = substr(source, -8, 4) (gen) 04_CPAMob_SUSB_State.do:51STATA/04_CPAMob_SUSB_State.do, line 51
gen year = substr(source, -8, 4) +19 more statements set it |
L1_abroadmigration |
regressor in 9 | L1_abroadmigration = abroadmigration (rename) 01_CPAMob_ControlsPrep.do:78STATA/01_CPAMob_ControlsPrep.do, line 78
rename abroadmigration L1_abroadmigration |
L1_betweenstatemigration |
regressor in 9 | L1_betweenstatemigration = betweenstatemigration (rename) 01_CPAMob_ControlsPrep.do:79STATA/01_CPAMob_ControlsPrep.do, line 79
rename betweenstatemigration L1_betweenstatemigration |
L1_gdp |
regressor in 9 | L1_gdp = gdp (rename) 01_CPAMob_ControlsPrep.do:52STATA/01_CPAMob_ControlsPrep.do, line 52
rename gdp L1_gdp |
L1_CPAMob_small_cpa |
regressor in 8 | L1_CPAMob_small_cpa = L1_CPAMob * smallfirm * cpa (gen) 04_CPAMob_SUSB_State.do:164STATA/04_CPAMob_SUSB_State.do, line 164
capture gen L1_CPAMob_small_cpa = L1_CPAMob * smallfirm * cpa |
contribution2assets_w |
regressor in 7 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
hardtoaudit_w |
regressor in 7 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
income2assets_w |
regressor in 7 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
investfees2assets_w |
regressor in 7 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
logassets_w |
regressor in 7 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
participants2assets_w |
regressor in 7 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
cpa |
regressor in 6 | cpa = (industry_code == "541211") (gen) 03_CPAMob_QCEW_State.do:121STATA/03_CPAMob_QCEW_State.do, line 121
capture gen cpa = (industry_code == "541211") cpa = (industry_code == "541211") (gen) reltimedummmies.do:2STATA/reltimedummmies.do, line 2
capture gen cpa = (industry_code == "541211") cpa = (naics == "541211") (gen) 04_CPAMob_SUSB_State.do:138STATA/04_CPAMob_SUSB_State.do, line 138
gen cpa = (naics == "541211") +1 more statements set it |
postperiod |
regressor in 6 | postperiod = (year >= 2014) (gen) 06_CPAMob_QCEW_MSA.do:114STATA/06_CPAMob_QCEW_MSA.do, line 114
gen postperiod = (year >= 2014) |
L1_unemp |
regressor in 5 | L1_unemp = unemp (rename) 01_CPAMob_ControlsPrep.do:53STATA/01_CPAMob_ControlsPrep.do, line 53
rename unemp L1_unemp |
CPAMob |
regressor in 4 | CPAMob = (_n ==_N) (gen) 02_CPAMob_AdoptionPrediction.do:122STATA/02_CPAMob_AdoptionPrediction.do, line 122
by State: gen CPAMob = (_n ==_N) CPAMob = L1_CPAMobility_Effec_longpanel (gen) 08_CPAMob_PensionPlanFees.do:432STATA/08_CPAMob_PensionPlanFees.do, line 432
gen CPAMob = L1_CPAMobility_Effec_longpanel CPAMob = (year - adoption_year >=0) (gen) 10_CPAMob_Qual2_EBSA.do:68STATA/10_CPAMob_Qual2_EBSA.do, line 68
gen CPAMob = (year - adoption_year >=0) |
CPAMobility_Effec_longpanel |
regressor in 4 | CPAMobility_Effec_longpanel = 0 (gen) 07_CPAMob_AICPAMap.do:110STATA/07_CPAMob_AICPAMap.do, line 110
gen CPAMobility_Effec_longpanel = 0 CPAMobility_Effec_longpanel = 1 (replace) 07_CPAMob_AICPAMap.do:111STATA/07_CPAMob_AICPAMap.do, line 111
replace CPAMobility_Effec_longpanel = 1 if v_ == 1 CPAMobility_Effec_longpanel = 1 (replace) 07_CPAMob_AICPAMap.do:113STATA/07_CPAMob_AICPAMap.do, line 113
by ST: replace CPAMobility_Effec_longpanel = 1 if CPAMobility_Effec_longpanel[_n-1] == 1 |
L1_CPAMob_cpa |
regressor in 4 | L1_CPAMob_cpa = L1_CPAMob * cpa (gen) 03_CPAMob_QCEW_State.do:143STATA/03_CPAMob_QCEW_State.do, line 143
gen L1_CPAMob_cpa = L1_CPAMob * cpa |
L1_CPAMob_small |
regressor in 4 | L1_CPAMob_small = L1_CPAMob * smallfirm * cpa (gen) 04_CPAMob_SUSB_State.do:163STATA/04_CPAMob_SUSB_State.do, line 163
capture gen L1_CPAMob_small = L1_CPAMob * smallfirm * cpa |
L1_unemp_county |
regressor in 4 | L1_unemp_county = L1_unemploymentrate (rename) 05_CPAMob_QCEW_BorderCounty.do:142STATA/05_CPAMob_QCEW_BorderCounty.do, line 142
rename L1_unemploymentrate L1_unemp_county |
cpapost |
regressor in 4 | cpapost = postperiod * cpa (gen) 06_CPAMob_QCEW_MSA.do:212STATA/06_CPAMob_QCEW_MSA.do, line 212
gen cpapost = postperiod * cpa cpapost = postperiod * cpa (gen) 06_CPAMob_QCEW_MSA.do:221STATA/06_CPAMob_QCEW_MSA.do, line 221
gen cpapost = postperiod * cpa cpapost = postperiod * cpa (gen) 06_CPAMob_QCEW_MSA.do:238STATA/06_CPAMob_QCEW_MSA.do, line 238
gen cpapost = postperiod * cpa +1 more statements set it |
state_id |
regressor in 4 | state_id = group(area_fips) (egen group) 02_CPAMob_AdoptionPrediction.do:206STATA/02_CPAMob_AdoptionPrediction.do, line 206
egen state_id = group(area_fips) state_id = group(area_fips) (egen group) 03_CPAMob_QCEW_State.do:153STATA/03_CPAMob_QCEW_State.do, line 153
egen state_id = group(area_fips) state_id = group(area_fips) (egen group) 04_CPAMob_SUSB_State.do:145STATA/04_CPAMob_SUSB_State.do, line 145
egen state_id = group(area_fips) +5 more statements set it |
House_Dem_Share |
regressor in 3 | House_Dem_Share = House_Dem / House_Total (gen) 02_CPAMob_AdoptionPrediction.do:150STATA/02_CPAMob_AdoptionPrediction.do, line 150
gen House_Dem_Share = House_Dem / House_Total House_Dem_Share = 0.5 (replace) 02_CPAMob_AdoptionPrediction.do:153STATA/02_CPAMob_AdoptionPrediction.do, line 153
replace House_Dem_Share = 0.5 if State == "Nebraska" |
L1_firm_birth |
regressor in 3 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
L1_jobcreation_netbirth |
regressor in 3 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
6 · Models, by the table or figure they feed — 91 estimations, 47 traced into 7 exhibits
Table 1
· 5 estimations → Table1_PanelB.csv
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
stcoxhazard |
— |
logpaydiff logempdiff d5logpay d5logemp
|
— | cluster: id | 02_CPAMob_AdoptionPrediction.do:237STATA/02_CPAMob_AdoptionPrediction.do, line 237
eststo: stcox logpaydiff logempdiff d5logpay d5logemp, cluster(id) written at 02_CPAMob_AdoptionPrediction.do:242 |
stcoxhazard |
— |
pubprac localCPAs i.mobilitytaskforce i.fundingautonomy
|
— | cluster: id | 02_CPAMob_AdoptionPrediction.do:238STATA/02_CPAMob_AdoptionPrediction.do, line 238
eststo: stcox pubprac localCPAs i.mobilitytaskforce i.fundingautonomy, cluster(id) written at 02_CPAMob_AdoptionPrediction.do:242 |
stcoxhazard |
— |
L1_unemprate L1_realgdp L1_firm_birth L1_jobcreation_netbirth
|
— | default | 02_CPAMob_AdoptionPrediction.do:239STATA/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 |
stcoxhazard |
— |
Senate_Dem_Share House_Dem_Share logbills logenact
|
— | cluster: id | 02_CPAMob_AdoptionPrediction.do:240STATA/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 |
stcoxhazard |
— |
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:241STATA/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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
logpay |
L1_CPAMob
|
state_occ_id, cpa_year | cluster: state_id | 03_CPAMob_QCEW_State.do:216STATA/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 |
reghdfepanel fe |
logpay |
L1_CPAMob L1_unemp
|
state_occ_id, cpa_year | cluster: state_id | 03_CPAMob_QCEW_State.do:217STATA/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 |
reghdfepanel fe |
logpay |
L1_CPAMob L1_gdp
|
state_occ_id, cpa_year | cluster: state_id | 03_CPAMob_QCEW_State.do:218STATA/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 |
reghdfepanel fe |
logpay |
L1_CPAMob L1_betweenstatemigration
|
state_occ_id, cpa_year | cluster: state_id | 03_CPAMob_QCEW_State.do:219STATA/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 |
reghdfepanel fe |
logpay |
L1_CPAMob L1_abroadmigration
|
state_occ_id, cpa_year | cluster: state_id | 03_CPAMob_QCEW_State.do:220STATA/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 |
reghdfepanel 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:221STATA/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 |
reghdfepanel fe |
logemp |
L1_CPAMob
|
state_occ_id, cpa_year | cluster: state_id | 03_CPAMob_QCEW_State.do:228STATA/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 |
reghdfepanel fe |
logemp |
L1_CPAMob L1_unemp
|
state_occ_id, cpa_year | cluster: state_id | 03_CPAMob_QCEW_State.do:229STATA/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 |
reghdfepanel fe |
logemp |
L1_CPAMob L1_gdp
|
state_occ_id, cpa_year | cluster: state_id | 03_CPAMob_QCEW_State.do:230STATA/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 |
reghdfepanel fe |
logemp |
L1_CPAMob L1_betweenstatemigration
|
state_occ_id, cpa_year | cluster: state_id | 03_CPAMob_QCEW_State.do:231STATA/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 |
reghdfepanel fe |
logemp |
L1_CPAMob L1_abroadmigration
|
state_occ_id, cpa_year | cluster: state_id | 03_CPAMob_QCEW_State.do:232STATA/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 |
reghdfepanel 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:233STATA/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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
logpay |
L1_CPAMob_cpa
|
cpa_year, state_year, state_occ_id | cluster: state_id | 03_CPAMob_QCEW_State.do:241STATA/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 |
reghdfepanel fe |
logemp |
L1_CPAMob_cpa
|
cpa_year, state_year, state_occ_id | cluster: state_id | 03_CPAMob_QCEW_State.do:242STATA/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 |
reghdfepanel fe |
logempl2estab |
L1_CPAMob_cpa
|
cpa_year, state_year, state_occ_id | cluster: state_id | 03_CPAMob_QCEW_State.do:243STATA/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 |
reghdfepanel fe |
logestab |
L1_CPAMob_cpa
|
cpa_year, state_year, state_occ_id | cluster: state_id | 03_CPAMob_QCEW_State.do:244STATA/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 |
reghdfepanel 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:211STATA/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 |
reghdfepanel 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:212STATA/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 |
reghdfepanel 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:213STATA/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 |
reghdfepanel 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:214STATA/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 |
reghdfepanel fe |
logpay |
L1_CPAMob_small
|
state_size_id, size_year_id, state_year_id | cluster: state_id | 04_CPAMob_SUSB_State.do:242STATA/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 |
reghdfepanel fe |
logempl |
L1_CPAMob_small
|
state_size_id, size_year_id, state_year_id | cluster: state_id | 04_CPAMob_SUSB_State.do:243STATA/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 |
reghdfepanel fe |
logemp2estb |
L1_CPAMob_small
|
state_size_id, size_year_id, state_year_id | cluster: state_id | 04_CPAMob_SUSB_State.do:244STATA/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 |
reghdfepanel fe |
logestb |
L1_CPAMob_small
|
state_size_id, size_year_id, state_year_id | cluster: state_id | 04_CPAMob_SUSB_State.do:245STATA/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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
logpay |
L1_CPAMobility_Effec_longpanel
|
county_id, i.border_id#i.year | cluster: state_id | 05_CPAMob_QCEW_BorderCounty.do:242STATA/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 |
reghdfepanel 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:243STATA/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 |
reghdfepanel 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:244STATA/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 |
reghdfepanel 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:245STATA/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 |
reghdfepanel fe |
logemp |
L1_CPAMobility_Effec_longpanel
|
county_id, i.border_id#i.year | cluster: state_id | 05_CPAMob_QCEW_BorderCounty.do:247STATA/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 |
reghdfepanel 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:248STATA/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 |
reghdfepanel 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:249STATA/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 |
reghdfepanel 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:250STATA/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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
regols |
d1logpay |
d1logmsagdp_post d1logmsagdp postperiod
|
— | cluster: msa_id | 06_CPAMob_QCEW_MSA.do:187STATA/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 |
regols |
d1logpay |
d1logmsagdp_post d1logmsagdp postperiod
|
— | cluster: msa_id | 06_CPAMob_QCEW_MSA.do:188STATA/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 |
regols |
d1logpay |
cpapost cpa post
|
— | robust | 06_CPAMob_QCEW_MSA.do:213STATA/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 |
regols |
d1logpay |
cpapost cpa post
|
— | robust | 06_CPAMob_QCEW_MSA.do:222STATA/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 |
regols |
logpay |
cpapost cpa postperiod
|
— | robust | 06_CPAMob_QCEW_MSA.do:239STATA/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 |
regols |
logpay |
cpapost cpa postperiod
|
— | robust | 06_CPAMob_QCEW_MSA.do:248STATA/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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel 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:490STATA/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 |
reghdfepanel 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:491STATA/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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
discipline |
L1_CPAMob_young
|
young, year | cluster: firm_id | 11_CPAMob_Qual3_CODiscAction.do:137STATA/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 |
reghdfepanel fe |
discipline |
L1_CPAMob_young
|
firm_id, year | cluster: firm_id | 11_CPAMob_Qual3_CODiscAction.do:138STATA/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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
stcoxhazard |
— |
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:234STATA/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) |
reghdfepanel 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:181STATA/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 … |
reghdfepanel 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:194STATA/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 … |
reghdfepanel 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:196STATA/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) |
reghdfepanel 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:198STATA/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) |
reghdfepanel 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:200STATA/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) |
reghdfepanel 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:202STATA/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) |
reghdfepanel 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:276STATA/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) |
reghdfepanel fe |
logpay |
L1_CPAMobility_Effec_longpanel
|
county_id, i.border_id#i.year | cluster: state_id | 05_CPAMob_QCEW_BorderCounty.do:237STATA/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) |
regols |
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:197STATA/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) |
reghdfepanel fe |
`var' |
i.CPAMobility_Effec_longpanel
|
state_id, year | cluster: state_id | 07_CPAMob_AICPAMap.do:223STATA/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)
|
reghdfepanel fe |
`var' |
i.CPAMobility_Effec_longpanel
|
state_id, year | cluster: state_id | 07_CPAMob_AICPAMap.do:234STATA/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)
|
reghdfepanel fe |
`var' |
i.CPAMobility_Effec_longpanel
|
state_id, year | cluster: state_id | 07_CPAMob_AICPAMap.do:246STATA/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)
|
reghdfepanel fe |
`var' |
i.CPAMobility_Effec_longpanel
|
state_id, year | cluster: state_id | 07_CPAMob_AICPAMap.do:257STATA/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)
|
reghdfepanel 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:450STATA/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) |
reghdfepanel 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:472STATA/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) |
reghdfepanel 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:474STATA/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) |
reghdfepanel 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:476STATA/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) |
reghdfepanel 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:478STATA/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) |
xtpoissoncount |
total_count |
L1_CPAMobility_Effec_longpanel i.year
|
state_id | robust | 09_CPAMob_Qual1_AICPAMisconduct.do:85STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 85
qui xtpoisson total_count L1_CPAMobility_Effec_longpanel i.year, fe i(state_id) vce(robust) |
reghdfepanel fe |
total_count |
L1_CPAMobility_Effec_longpanel
|
year | cluster: state_id | 09_CPAMob_Qual1_AICPAMisconduct.do:92STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 92
qui eststo: reghdfe total_count L1_CPAMobility_Effec_longpanel if estsample == 1, a(year) cluster(state_id) |
reghdfepanel fe |
total_count |
L1_CPAMobility_Effec_longpanel
|
state_id, year | cluster: state_id | 09_CPAMob_Qual1_AICPAMisconduct.do:93STATA/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) |
xtpoissoncount |
total_count |
L1_CPAMobility_Effec_longpanel
|
year | robust | 09_CPAMob_Qual1_AICPAMisconduct.do:94STATA/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)*/ |
xtpoissoncount |
total_count |
L1_CPAMobility_Effec_longpanel i.year
|
state_id | robust | 09_CPAMob_Qual1_AICPAMisconduct.do:95STATA/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) |
reghdfepanel fe |
weighted_count |
L1_CPAMobility_Effec_longpanel
|
year | cluster: state_id | 09_CPAMob_Qual1_AICPAMisconduct.do:96STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 96
qui eststo: reghdfe weighted_count L1_CPAMobility_Effec_longpanel if estsample == 1, a(year) cluster(state_id) |
reghdfepanel fe |
weighted_count |
L1_CPAMobility_Effec_longpanel
|
state_id, year | cluster: state_id | 09_CPAMob_Qual1_AICPAMisconduct.do:97STATA/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) |
xtpoissoncount |
weighted_count |
L1_CPAMobility_Effec_longpanel
|
year | default | 09_CPAMob_Qual1_AICPAMisconduct.do:98STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 98
qui eststo: xtpoisson weighted_count L1_CPAMobility_Effec_longpanel if estsample == 1, fe i(year) |
xtpoissoncount |
weighted_count |
L1_CPAMobility_Effec_longpanel i.year
|
state_id | default | 09_CPAMob_Qual1_AICPAMisconduct.do:99STATA/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) |
poissoncount |
total_count |
L1_CPAMobility_Effec_longpanel i.year
|
— | robust | 09_CPAMob_Qual1_AICPAMisconduct.do:105STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 105
qui eststo: poisson total_count L1_CPAMobility_Effec_longpanel i.year if estsample == 1, vce(robust) |
poissoncount |
total_count |
L1_CPAMobility_Effec_longpanel i.year i.state_id
|
— | robust | 09_CPAMob_Qual1_AICPAMisconduct.do:106STATA/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) |
poissoncount |
weighted_count |
L1_CPAMobility_Effec_longpanel i.year
|
— | robust | 09_CPAMob_Qual1_AICPAMisconduct.do:107STATA/09_CPAMob_Qual1_AICPAMisconduct.do, line 107
qui eststo: poisson weighted_count L1_CPAMobility_Effec_longpanel i.year if estsample == 1, vce(robust) |
poissoncount |
weighted_count |
L1_CPAMobility_Effec_longpanel i.year i.state_id
|
— | robust | 09_CPAMob_Qual1_AICPAMisconduct.do:108STATA/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) |
reghdfepanel fe |
casecount_total |
L1_CPAMob
|
year | cluster: state_id | 10_CPAMob_Qual2_EBSA.do:105STATA/10_CPAMob_Qual2_EBSA.do, line 105
qui eststo: reghdfe casecount_total L1_CPAMob, a(year) cluster(state_id) |
reghdfepanel fe |
casecount_total |
L1_CPAMob
|
year, state_id | cluster: state_id | 10_CPAMob_Qual2_EBSA.do:106STATA/10_CPAMob_Qual2_EBSA.do, line 106
qui eststo: reghdfe casecount_total L1_CPAMob, a(year state_id) cluster(state_id) |
xtpoissoncount |
casecount_total |
L1_CPAMob
|
year | robust | 10_CPAMob_Qual2_EBSA.do:107STATA/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)*/ |
xtpoissoncount |
casecount_total |
L1_CPAMob i.year
|
state_id | robust | 10_CPAMob_Qual2_EBSA.do:108STATA/10_CPAMob_Qual2_EBSA.do, line 108
qui eststo: xtpoisson casecount_total L1_CPAMob i.year, fe i(state_id) vce(robust) |
reghdfepanel fe |
casecount_weighted |
L1_CPAMob
|
year | cluster: state_id | 10_CPAMob_Qual2_EBSA.do:109STATA/10_CPAMob_Qual2_EBSA.do, line 109
qui eststo: reghdfe casecount_weighted L1_CPAMob, a(year) cluster(state_id) |
reghdfepanel fe |
casecount_weighted |
L1_CPAMob
|
year, state_id | cluster: state_id | 10_CPAMob_Qual2_EBSA.do:110STATA/10_CPAMob_Qual2_EBSA.do, line 110
qui eststo: reghdfe casecount_weighted L1_CPAMob, a(year state_id) cluster(state_id) |
xtpoissoncount |
casecount_weighted |
L1_CPAMob
|
year | robust | 10_CPAMob_Qual2_EBSA.do:111STATA/10_CPAMob_Qual2_EBSA.do, line 111
qui eststo: xtpoisson casecount_weighted L1_CPAMob, fe i(year) vce(robust) |
xtpoissoncount |
casecount_weighted |
L1_CPAMob i.year
|
state_id | robust | 10_CPAMob_Qual2_EBSA.do:112STATA/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 · Table 2 · Table 2 · Table 3 · Table 3 · Table 3 · Table 4 · Table 5 · Table 5 · Table 5 · Table 6 · Table 6 · Table 6 · Table 6 · Table 7 · Table 8 · Table 8 · Table 8 · Table 8 · Table 8 · Figure 1 · Figure 1 · Figure 1 · Figure 2 · Figure 3 · Figure 3 · Figure 3 · Figure 3
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
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
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
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
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
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
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
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
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
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
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)
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)
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)
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)
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
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
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
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
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
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
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
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
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
Figure2.pdf 05_CPAMob_QCEW_BorderCounty.do:202
STATA/05_CPAMob_QCEW_BorderCounty.do, line 202
graph export "./Output/Figure2.pdf", as(pdf) replace
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
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
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
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
| command | layers | variables | options | saved as | where |
|---|---|---|---|---|---|
coefplotevent-study plot
|
coefplot |
xline 4.5 · ci rcap · vertical yes |
Figure 1Figure1_PanelA.pdf |
03_CPAMob_QCEW_State.do:184STATA/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 … |
|
coefplotevent-study plot
|
coefplot |
xline 4.5 · ci rcap · vertical yes |
Figure 1Figure1_PanelC.pdf |
03_CPAMob_QCEW_State.do:196STATA/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 … |
|
coefplotevent-study plot
|
coefplot |
xline 2.5 · ci rcap · vertical yes |
Figure 1Figure1_PanelB.pdf |
04_CPAMob_SUSB_State.do:278STATA/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 … |
|
spmapmap
|
spmap |
Figure 2Figure2.pdf |
05_CPAMob_QCEW_BorderCounty.do:201STATA/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) |
||
binscatterbinscatter
|
binscatter |
y d1logpay
x d1logmsagdp
|
title CPAs: Pre-Period · xtitle ∆LogGDP · ytitle ∆LogWage |
Figure 3Figure3_PanelA-1.pdf |
06_CPAMob_QCEW_MSA.do:142STATA/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") … |
binscatterbinscatter
|
binscatter |
y d1logpay
x d1logmsagdp
|
title CPAs: Post-Period · xtitle ∆LogGDP · ytitle ∆LogWage |
Figure 3Figure3_PanelA-2.pdf |
06_CPAMob_QCEW_MSA.do:148STATA/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") … |
binscatterbinscatter
|
binscatter |
y d1logpay
x d1logmsagdp
|
title Lawyers: Pre-Period · xtitle ∆LogGDP · ytitle ∆LogWage |
Figure 3Figure3_PanelB-1.pdf |
06_CPAMob_QCEW_MSA.do:154STATA/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 … |
binscatterbinscatter
|
binscatter |
y d1logpay
x d1logmsagdp
|
title Lawyers: Post-Period · xtitle ∆LogGDP · ytitle ∆LogWage |
Figure 3Figure3_PanelB-2.pdf |
06_CPAMob_QCEW_MSA.do:160STATA/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 … |