Journal of Accounting Research · 2025 · 10.1111/1475-679x.12627

Does U.S. Immigration Policy Facilitate Financial Misconduct?

Ruiting Dai; Xuanjun Dong; Nemit Shroff; Qin Tan

Review history

Received 1 Dec 2023 → accepted 17.4 months later.
Received: 1 Dec 2023Accepted: 13 May 2025
Received → accepted. Journal of Accounting Research, papers printed 2023–2026: median 23.1 months (middle half 16.8–33.1), 182 papers measured. This paper: 17.4 months, shorter than the median.
Dates as printed on the paper's first page; read from the paper's text, not from publisher metadata. Journal medians leave out: under 14 days, out of order, special issue / invited, implausible year — the same papers /review-times leaves out.

The research recipe, read from the replication code

journal · package · stata
2001–2019
sample period in the code
99
keep/drop statements
29
winsorizations
67
missing-data rules
19
de-duplications
3
distinct estimations
Sample period in the code: the window the code writes most often — P1_Firm Year Sample.do:199 and 1 other file; other windows in the code: 1990–2021, 1995–2014, 1999–2010, 2001–2007, 2001–2009.
These tiles count distinct estimations (one per command, method, inference, fixed effects and file) and keep/drop statements. "How the code gets from data to results" below counts every estimating statement (20) and keep/drop statements plus winsorized variables (128).
1 · Data and structure
Panel declared as: xid × fyear (annual); xid × $year; cik × fyear (annual); id × yq (quarterly); mgrno × yq (quarterly); state_no × fyear (annual)
2 · How the sample is built
  • keep time period ×15
  • keep value range ×13
  • keep missing data ×6
  • keep category value ×5
  • keep indicator subset ×5
  • keep observation position ×3
  • drop missing data ×3
  • drop geography ×2
Reshaping: drop duplicate rows ×19; reshape long/wide ×2; collapse to a coarser unit ×2
3 · Design and validation
Identification: difference in differences
Outcome transforms: log plus one
4 · What it estimates
CommandMethodFixed effects absorbedInferenceFile
reg
capture reg w_tac_at w_at_1_rev w_salech_at w_ppe_at if reggrp==`a' & minnum==1
ols default P5_Other Dependent Variables.do
reghdfe
qui reghdfe max_res_s_irr H1B_Post H1B Post if miss==0 & H1B_All==1, keepsing absorb(xid fyear) noomit vce(cluster msa)
panel fexid, fyear cluster by msa P9_Generate Results.do
reghdfe
qui reghdfe max_res_s_irr H1B_Post H1B Post l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom l1_loss l1_cash l1_accrual l1_std4_roe l1_std4_cfo l1_foreign l1_merge l1_restructure l1_busyseason l1_reportlag ln_l1_analyst l1_Sub_ChinaIndian l1_Dependent_ba_city_Census_
panel fexid, msa_ind_yr cluster by msa P9_Generate Results.do
5 · What it produces
9 table files and 0 figure files (xls 8, ? 1); 19 estimates traced from the model that produced them into the exhibit that reports them.
table3_p1.xlstable3_p2.xlstable4.xlstable5.xlstable6.xlstable7.xlstable8.xlstable9.xls
How the code gets from data to results own page
9
scripts
26
input files
13
file hand-offs
52
merges
128
sample steps
20
estimations

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

Datasets this package uses (item detector / README): Compustat, CRSP/Compustat Merged (CCM), CRSP US Stock Database
  • input/ThomsonReuters13F_Summary_1980-2019.dta Stata
    P7_Cross-sectional Variables.do:304
    Code/P7_Cross-sectional Variables.do, line 304 joinby cusip rdate using "input/ThomsonReuters13F_Summary_1980-2019.dta"
  • input/Identifiers_CompustataAnnual_1980_2023 Stata
    P1_Firm Year Sample.do:171
    Code/P1_Firm Year Sample.do, line 171 use "input/Identifiers_CompustataAnnual_1980_2023", clear
  • input/KLD_MSCI.dta Stata
    P7_Cross-sectional Variables.do:598
    Code/P7_Cross-sectional Variables.do, line 598 use "input/KLD_MSCI.dta", clear
Other input files 23 files
  • input/compvars Stata · read by 2 scripts
    P1_Firm Year Sample.do:157
    Code/P1_Firm Year Sample.do, line 157 use "input/compvars", clear
  • input/H1B_CS.xlsx Excel · read by 2 scripts
    P6_Control Variables.do:95
    Code/P6_Control Variables.do, line 95 import excel using "input/H1B_CS.xlsx", sheet("Per capita personal income") firstrow case(lower) clear
  • input/LCA_COMP_2001_2009.dta Stata · read by 2 scripts
    P2_Independent Variable of Interest.do:12
    Code/P2_Independent Variable of Interest.do, line 12 use "input/LCA_COMP_2001_2009.dta", clear
  • input/auditsox302.dta Stata
    P7_Cross-sectional Variables.do:473
    Code/P7_Cross-sectional Variables.do, line 473 use "input/auditsox302.dta", clear
  • input/CCMA_NCUSIP_Link.dta Stata
    P7_Cross-sectional Variables.do:617
    Code/P7_Cross-sectional Variables.do, line 617 use "input/CCMA_NCUSIP_Link.dta", clear
  • input/country31may2015.dta Stata
    P6_Control Variables.do:164
    Code/P6_Control Variables.do, line 164 use "input/country31may2015.dta", clear
  • input/dependency_check.dta Stata
    P6_Control Variables.do:195
    Code/P6_Control Variables.do, line 195 use "input/dependency_check.dta", clear
  • input/Industry_Classification Stata
    P1_Firm Year Sample.do:190
    Code/P1_Firm Year Sample.do, line 190 merge 1:1 gvkey $year using "input/Industry_Classification", keepusing(sic_num ff12_sic_num)
15 more
  • input/InstitutionHold_1980_2018.dta Stata
    P7_Cross-sectional Variables.do:301
    Code/P7_Cross-sectional Variables.do, line 301 use "input/InstitutionHold_1980_2018.dta",clear
  • input/JobTitle.dta Stata
    P2_Independent Variable of Interest.do:21
    Code/P2_Independent Variable of Interest.do, line 21 merge m:1 job_title1 using "input/JobTitle.dta", keepusing(Acct_JobTitle Mgr_Acct_JobTitle Egr_JobTitle HR_JobTitle)
  • input/MSA Stata
    P1_Firm Year Sample.do:194
    Code/P1_Firm Year Sample.do, line 194 merge m:1 cik $year using "input/MSA", keepusing(ba_state ba_county ba_city ba_latitude ba_longitude msa_ba_fips_ND)
  • input/NonCompIdx Stata
    P7_Cross-sectional Variables.do:150
    Code/P7_Cross-sectional Variables.do, line 150 use "input/NonCompIdx", clear
  • input/resperiod_m1.dta Stata
    P3_Main Dependent Variables.do:73
    Code/P3_Main Dependent Variables.do, line 73 use "input/resperiod_m1.dta", clear
  • input/Russell 1000-2000 Recon.csv CSV
    P7_Cross-sectional Variables.do:415
    Code/P7_Cross-sectional Variables.do, line 415 insheet using "input/Russell 1000-2000 Recon.csv", clear
  • input/Russell 2000.csv CSV
    P7_Cross-sectional Variables.do:407
    Code/P7_Cross-sectional Variables.do, line 407 insheet using "input/Russell 2000.csv", clear
  • input/US_Coordinates.dta Stata
    P7_Cross-sectional Variables.do:7
    Code/P7_Cross-sectional Variables.do, line 7 use "input/US_Coordinates.dta", clear
  • input/WB Allegations.xlsx Excel
    P4_Whistleblowing Variables.do:15
    Code/P4_Whistleblowing Variables.do, line 15 import excel using "input/WB Allegations.xlsx", sheet("Sheet1") firstrow case(lower) clear
  • input/WB.xls Excel
    P4_Whistleblowing Variables.do:6
    Code/P4_Whistleblowing Variables.do, line 6 import excel using "input/WB.xls", sheet("Sheet1") firstrow case(lower) clear
  • output/AnalystCoverage Stata
    P6_Control Variables.do:136
    Code/P6_Control Variables.do, line 136 use "output/AnalystCoverage", clear
  • output/h1b_working_check.dta Stata
    P7_Cross-sectional Variables.do:567
    Code/P7_Cross-sectional Variables.do, line 567 use "output/h1b_working_check.dta", clear
  • output/location_hq_check.dta Stata
    P7_Cross-sectional Variables.do:570
    Code/P7_Cross-sectional Variables.do, line 570 merge m:1 gvkey fyear using "output/location_hq_check.dta", keepusing(ba_lat_hq ba_lng_hq)
  • output/ShortTermInvestor.dta Stata
    P7_Cross-sectional Variables.do:384
    Code/P7_Cross-sectional Variables.do, line 384 use "output/ShortTermInvestor.dta", clear
  • output/US_Coordinates.dta Stata
    P7_Cross-sectional Variables.do:539
    Code/P7_Cross-sectional Variables.do, line 539 merge m:1 ba_state_hq ba_city_hq using "output/US_Coordinates.dta", keepusing(lat lng)

2 · The file pipeline — which script writes which file that a later script reads

9 scripts, in the order the README lists them (Code/ReadMe.docx); 13 hand-offs through 24 intermediate files; 3 files written and never read back (outputs).

Code/P1_Firm Year Sample.do → Code/P2_Independent Variable of Interest.do: Identifiers_CompustatAnnual_2001_2019.dtaCode/P1_Firm Year Sample.do → Code/P4_Whistleblowing Variables.do: Identifiers_CompustatAnnual_2001_2019.dtaCode/P1_Firm Year Sample.do → Code/P5_Other Dependent Variables.do: compvars.dtaCode/P1_Firm Year Sample.do → Code/P6_Control Variables.do: Identifiers_CompustatAnnual_1980_2023_tmp.dta, Identifiers_CompustatAnnual_2001_2019.dta, compvars.dtaCode/P2_Independent Variable of Interest.do → Code/P7_Cross-sectional Variables.do: TotLCA_Acct.dtaCode/P1_Firm Year Sample.do → Code/P7_Cross-sectional Variables.do: Identifiers_CompustatAnnual_1980_2023_tmp.dta, Identifiers_CompustatAnnual_2001_2019.dta, compvars.dtaCode/P2_Independent Variable of Interest.do → Code/P8_Merge Datasets to Construct Final Sample.do: H1B_Vars_CapShock.dtaCode/P3_Main Dependent Variables.do → Code/P8_Merge Datasets to Construct Final Sample.do: restatement.dtaCode/P5_Other Dependent Variables.do → Code/P8_Merge Datasets to Construct Final Sample.do: abs_tot_accruals.dta, accrualibsicc210.dta, small_profitbeat.dtaCode/P4_Whistleblowing Variables.do → Code/P8_Merge Datasets to Construct Final Sample.do: WB.dtaCode/P6_Control Variables.do → Code/P8_Merge Datasets to Construct Final Sample.do: AnalystFollow.dta, PerCapitaIncome.dta, Subsidiary_Dyreng_tmp.dta, ctrl_vars.dta, dependency.dtaCode/P7_Cross-sectional Variables.do → Code/P8_Merge Datasets to Construct Final Sample.do: ICW_Pre.dta, MoveInRU_Pre.dta, NonCompete_Pre.dta, PR_Pre.dta, ShortTermInvestor_Pre.dta, TotLCA_Acct_50miles_Pre.dta, WeakRel_Pre.dta, Working_h1b_hq_Pre.dtaCode/P8_Merge Datasets to Construct Final Sample.do → Code/P9_Generate Results.do: Working_Data_CapShock_Run.dta Code/P1_Firm Year Sample.do · reads 4 input files 1. P1_Firm Year Sample.do Code/P2_Independent Variable of Interest.do · reads 2 input files 2. P2_Independent Variable of Interest.do Code/P3_Main Dependent Variables.do · reads 1 input files 3. P3_Main Dependent Variables.do Code/P4_Whistleblowing Variables.do · reads 2 input files 4. P4_Whistleblowing Variables.do Code/P5_Other Dependent Variables.do · 1 estimation 5. P5_Other Dependent Variables.do 1 est.Code/P6_Control Variables.do · reads 4 input files 6. P6_Control Variables.do Code/P7_Cross-sectional Variables.do · reads 16 input files 7. P7_Cross-sectional Variables.do Code/P8_Merge Datasets to Construct Final Sample.do 8. P8_Merge Datasets to Construct Final Sample… Code/P9_Generate Results.do · 19 estimations 9. P9_Generate Results.do 19 est.
  1. 1.Code/P1_Firm Year Sample.do named in Code/ReadMe.docx reads 4 input files · 4 merges ·
    writes Identifiers_CompustatAnnual_1980_2023_tmp.dta → read by P6_Control Variables.do, P7_Cross-sectional Variables.do
    writes Identifiers_CompustatAnnual_2001_2019.dta → read by P2_Independent Variable of Interest.do, P4_Whistleblowing Variables.do, P6_Control Variables.do, P7_Cross-sectional Variables.do
    writes compvars.dta → read by P5_Other Dependent Variables.do, P6_Control Variables.do, P7_Cross-sectional Variables.do
  2. 2.Code/P2_Independent Variable of Interest.do named in Code/ReadMe.docx reads 2 input files · 3 merges ·
    reads what P1_Firm Year Sample.do wrote
    writes H1B_Vars_CapShock.dta → read by P8_Merge Datasets to Construct Final Sample.do
    writes TotLCA_Acct.dta → read by P7_Cross-sectional Variables.do
  3. 3.Code/P3_Main Dependent Variables.do named in Code/ReadMe.docx reads 1 input file ·
    writes restatement.dta → read by P8_Merge Datasets to Construct Final Sample.do
  4. 4.Code/P4_Whistleblowing Variables.do named in Code/ReadMe.docx reads 2 input files · 2 merges ·
    reads what P1_Firm Year Sample.do wrote
    writes WB.dta → read by P8_Merge Datasets to Construct Final Sample.do
  5. 5.Code/P5_Other Dependent Variables.do named in Code/ReadMe.docx 1 merge · 1 estimation
    reads what P1_Firm Year Sample.do wrote
    writes abs_tot_accruals.dta → read by P8_Merge Datasets to Construct Final Sample.do
    writes accrualibsicc210.dta → read by P8_Merge Datasets to Construct Final Sample.do
    writes small_profitbeat.dta → read by P8_Merge Datasets to Construct Final Sample.do
  6. 6.Code/P6_Control Variables.do named in Code/ReadMe.docx reads 4 input files · 2 merges ·
    reads what P1_Firm Year Sample.do wrote
    writes AnalystFollow.dta → read by P8_Merge Datasets to Construct Final Sample.do
    writes PerCapitaIncome.dta → read by P8_Merge Datasets to Construct Final Sample.do
    writes Subsidiary_Dyreng_tmp.dta → read by P8_Merge Datasets to Construct Final Sample.do
    writes ctrl_vars.dta → read by P8_Merge Datasets to Construct Final Sample.do
    writes dependency.dta → read by P8_Merge Datasets to Construct Final Sample.do
  7. 7.Code/P7_Cross-sectional Variables.do named in Code/ReadMe.docx reads 16 input files · 29 merges ·
    reads what P1_Firm Year Sample.do, P2_Independent Variable of Interest.do wrote
    writes ICW_Pre.dta → read by P8_Merge Datasets to Construct Final Sample.do
    writes MoveInRU_Pre.dta → read by P8_Merge Datasets to Construct Final Sample.do
    writes NonCompete_Pre.dta → read by P8_Merge Datasets to Construct Final Sample.do
    writes PR_Pre.dta → read by P8_Merge Datasets to Construct Final Sample.do
    writes ShortTermInvestor_Pre.dta → read by P8_Merge Datasets to Construct Final Sample.do
    writes TotLCA_Acct_50miles_Pre.dta → read by P8_Merge Datasets to Construct Final Sample.do
    writes WeakRel_Pre.dta → read by P8_Merge Datasets to Construct Final Sample.do
    writes Working_h1b_hq_Pre.dta → read by P8_Merge Datasets to Construct Final Sample.do
    writes (not read again): h1b_working.dta, location_hq.dta, tmp.dta
  8. 8.Code/P8_Merge Datasets to Construct Final Sample.do named in Code/ReadMe.docx 18 merges ·
    reads what P2_Independent Variable of Interest.do, P3_Main Dependent Variables.do, P4_Whistleblowing Variables.do, P5_Other Dependent Variables.do, P6_Control Variables.do, P7_Cross-sectional Variables.do wrote
    writes Working_Data_CapShock_Run.dta → read by P9_Generate Results.do
  9. 9.Code/P9_Generate Results.do named in Code/ReadMe.docx 19 estimations
    reads what P8_Merge Datasets to Construct Final Sample.do wrote

3 · Merges — 52 joins, 46 followed by a check of the merge result; 7 appends

JoinsHowOn keysCheck that followsWhere
identifiers_compustatannual_1980_2023_tmp ← compvars merge 1:1 gvkey fyear drop if _m==2
P1_Firm Year Sample.do:186
Code/P1_Firm Year Sample.do, line 186 merge 1:1 gvkey $year using "output/compvars", keepusing(fic state city addzip)
identifiers_compustatannual_1980_2023_tmp ← industry_classification merge 1:1 gvkey fyear drop if _m==2
P1_Firm Year Sample.do:190
Code/P1_Firm Year Sample.do, line 190 merge 1:1 gvkey $year using "input/Industry_Classification", keepusing(sic_num ff12_sic_num)
identifiers_compustatannual_1980_2023_tmp ← msa merge m:1 cik fyear drop if _m==2
P1_Firm Year Sample.do:194
Code/P1_Firm Year Sample.do, line 194 merge m:1 cik $year using "input/MSA", keepusing(ba_state ba_county ba_city ba_latitude ba_longitude msa_ba_fips_ND)
identifiers_compustatannual_2001_2019 ← avg_empu merge 1:1 gvkey fyear drop if _m==2
P1_Firm Year Sample.do:211
Code/P1_Firm Year Sample.do, line 211 merge 1:1 gvkey $year using "output/avg_empu.dta", keepusing(avg_empu)
lca_comp_2001_2009 ← identifiers_compustatannual_2001_2019 merge m:1 gvkey $year $state $city g LCA_HQ=1 if _m==3
P2_Independent Variable of Interest.do:14
Code/P2_Independent Variable of Interest.do, line 14 merge m:1 gvkey $year $state $city using "output/Identifiers_CompustatAnnual_2001_2019.dta", keepusing(conm)
lca_comp_2001_2009 ← jobtitle merge m:1 job_title1 drop if _m==2
P2_Independent Variable of Interest.do:21
Code/P2_Independent Variable of Interest.do, line 21 merge m:1 job_title1 using "input/JobTitle.dta", keepusing(Acct_JobTitle Mgr_Acct_JobTitle Egr_JobTitle HR_JobTitle)
identifiers_compustatannual_2001_2019 ← totlca_acct merge 1:1 gvkey $year drop if _m==2
P2_Independent Variable of Interest.do:45
Code/P2_Independent Variable of Interest.do, line 45 merge 1:1 gvkey $year using "output/TotLCA_Acct.dta", keepusing(TotLCA TotLCA_HQ TotLCA_Egr TotLCA_HR TotLCA_Acct TotLCA_Acct_HQ TotLCA_Acct_Mgr)
identifiers_compustatannual_2001_2019 ← wb_press_tmp merge 1:1 gvkey fyear drop if _m==2
P4_Whistleblowing Variables.do:32
Code/P4_Whistleblowing Variables.do, line 32 merge 1:1 gvkey fyear using "output/WB_Press_tmp.dta", keepusing(WB_Press)
identifiers_compustatannual_2001_2019 ← wb_osha_tmp merge 1:1 gvkey fyear drop if _m==2
P4_Whistleblowing Variables.do:37
Code/P4_Whistleblowing Variables.do, line 37 merge 1:1 gvkey fyear using "output/WB_OSHA_tmp.dta", keepusing(WB_OSHA)
tmp1 ← accrual merge 1:1 gvkey fyear drop if _merge==2
P5_Other Dependent Variables.do:94
Code/P5_Other Dependent Variables.do, line 94 merge 1:1 gvkey fyear using "output/accrual.dta", keepusing(abs_dak)
identifiers_compustatannual_2001_2019 ← analystcoverage_tmp merge 1:1 gvkey $year drop if _m==2
P6_Control Variables.do:154
Code/P6_Control Variables.do, line 154 merge 1:1 gvkey $year using "output/AnalystCoverage_tmp.dta", keepusing(l1_analyst)
identifiers_compustatannual_1980_2023_tmp ← subsidiary_dyreng merge m:1 cik fyear drop if _m==2
P6_Control Variables.do:187
Code/P6_Control Variables.do, line 187 merge m:1 cik fyear using "output/Subsidiary_Dyreng.dta", keepusing(l1_Sub_ChinaIndian)

4 · The sample — 99 keep/drop steps, 29 variables winsorized or trimmed

Filters, by kind
industry screens ×1
  • drop if sicc2>=60 & sicc2<=69
    P5_Other Dependent Variables.do:31
    Code/P5_Other Dependent Variables.do, line 31 drop if $sic>=60 & $sic<=69 as we read it (macros filled in / loop expanded): drop if sicc2>=60 & sicc2<=69
time period ×9
  • keep if fyear>=2001 & fyear<=2019
    P1_Firm Year Sample.do:199
    Code/P1_Firm Year Sample.do, line 199 keep if $year>=2001 & $year<=2019 as we read it (macros filled in / loop expanded): keep if fyear>=2001 & fyear<=2019
  • keep if fyear<=2010
    P4_Whistleblowing Variables.do:29
    Code/P4_Whistleblowing Variables.do, line 29 keep if fyear<=2010
  • keep if fyear>=1995 & fyear<=2014
    P6_Control Variables.do:185
    Code/P6_Control Variables.do, line 185 keep if fyear>=1995 & fyear<=2014
  • keep if fyear>=2001 & fyear<=2007
    P7_Cross-sectional Variables.do:14
    Code/P7_Cross-sectional Variables.do, line 14 keep if fyear>=2001 & fyear<=2007
  • keep if fyear>=2001 & fyear<=2009
    P7_Cross-sectional Variables.do:212
    Code/P7_Cross-sectional Variables.do, line 212 keep if fyear>=2001 & fyear<=2009
  • keep if fyear>=1999 & fyear<=2010
    P7_Cross-sectional Variables.do:450
    Code/P7_Cross-sectional Variables.do, line 450 keep if fyear>=1999 & fyear<=2010
  • keep if inrange(matchfy_sumfees_fy_end, low_datadate, high_datadate)
    P7_Cross-sectional Variables.do:498
    Code/P7_Cross-sectional Variables.do, line 498 keep if inrange(matchfy_sumfees_fy_end, low_datadate, high_datadate)
  • keep if inrange(date, l1_datadate+1, f1_datadate-1)
    P7_Cross-sectional Variables.do:624
    Code/P7_Cross-sectional Variables.do, line 624 keep if inrange(date, l1_datadate+1, f1_datadate-1)
  • first 8 of 9
value ranges ×13
  • keep if $year >=2001 & $year <=$endyr
    P2_Independent Variable of Interest.do:42
    Code/P2_Independent Variable of Interest.do, line 42 keep if $year >=2001 & $year <=$endyr
  • keep if $year>=2001 & $year<=2019
    P6_Control Variables.do:88
    Code/P6_Control Variables.do, line 88 keep if $year>=2001 & $year<=2019
  • keep if $year >=2001 & $year <=$endyr
    P7_Cross-sectional Variables.do:133
    Code/P7_Cross-sectional Variables.do, line 133 keep if $year >=2001 & $year <=$endyr
  • keep if $year >=2001 & $year <=$endyr
    P7_Cross-sectional Variables.do:222
    Code/P7_Cross-sectional Variables.do, line 222 keep if $year >=2001 & $year <=$endyr
  • keep if $year >=1990 & $year <=2021
    P7_Cross-sectional Variables.do:280
    Code/P7_Cross-sectional Variables.do, line 280 keep if $year >=1990 & $year <=2021
  • keep if $year >=2001 & $year <=$endyr
    P7_Cross-sectional Variables.do:287
    Code/P7_Cross-sectional Variables.do, line 287 keep if $year >=2001 & $year <=$endyr
  • keep if $year >=2001 & $year <=$endyr
    P7_Cross-sectional Variables.do:397
    Code/P7_Cross-sectional Variables.do, line 397 keep if $year >=2001 & $year <=$endyr
  • keep if $year >=2001 & $year <=$endyr
    P7_Cross-sectional Variables.do:457
    Code/P7_Cross-sectional Variables.do, line 457 keep if $year >=2001 & $year <=$endyr
  • first 8 of 13
category values ×5
  • keep if dup==0 | (dup==1 & indfmt=="INDL") | (dup==2 & indfmt=="INDL")
    P1_Firm Year Sample.do:174
    Code/P1_Firm Year Sample.do, line 174 keep if dup==0 | (dup==1 & indfmt=="INDL") | (dup==2 & indfmt=="INDL")
  • keep if fic=="USA"
    P5_Other Dependent Variables.do:30
    Code/P5_Other Dependent Variables.do, line 30 keep if fic=="USA"
  • keep if fic=="USA"
    P7_Cross-sectional Variables.do:13
    Code/P7_Cross-sectional Variables.do, line 13 keep if fic=="USA"
  • keep if lsinst_dkt==2
    P7_Cross-sectional Variables.do:359
    Code/P7_Cross-sectional Variables.do, line 359 keep if lsinst_dkt==2
  • keep if fic=="USA"
    P8_Merge Datasets to Construct Final Sample.do:111
    Code/P8_Merge Datasets to Construct Final Sample.do, line 111 keep if fic=="USA"
indicator subsets ×5
  • keep if dist50==1
    P7_Cross-sectional Variables.do:47
    Code/P7_Cross-sectional Variables.do, line 47 keep if dist50==1
  • keep if dist50==1
    P7_Cross-sectional Variables.do:76
    Code/P7_Cross-sectional Variables.do, line 76 keep if dist50==1
  • keep if dist50==1
    P7_Cross-sectional Variables.do:105
    Code/P7_Cross-sectional Variables.do, line 105 keep if dist50==1
  • keep if MoveInRU1000_2000==1
    P7_Cross-sectional Variables.do:452
    Code/P7_Cross-sectional Variables.do, line 452 keep if MoveInRU1000_2000==1
  • keep if H1B_All==1 & miss==0
    P8_Merge Datasets to Construct Final Sample.do:115
    Code/P8_Merge Datasets to Construct Final Sample.do, line 115 keep if H1B_All==1 & miss==0
geography ×2
  • drop if state=="US"
    P6_Control Variables.do:100
    Code/P6_Control Variables.do, line 100 drop if state=="US"
  • drop if state=="total_pr"
    P7_Cross-sectional Variables.do:277
    Code/P7_Cross-sectional Variables.do, line 277 drop if state=="total_pr"
row position (_n, first / last row) ×3
  • keep if id == `i'
    P7_Cross-sectional Variables.do:43
    Code/P7_Cross-sectional Variables.do, line 43 keep if id == `i'
  • keep if id == `i'
    P7_Cross-sectional Variables.do:72
    Code/P7_Cross-sectional Variables.do, line 72 keep if id == `i'
  • keep if id == `i'
    P7_Cross-sectional Variables.do:101
    Code/P7_Cross-sectional Variables.do, line 101 keep if id == `i'
missing values ×9
  • keep if !missing(fyear) & !missing(tic)
    P1_Firm Year Sample.do:172
    Code/P1_Firm Year Sample.do, line 172 keep if !missing($year) & !missing(tic) as we read it (macros filled in / loop expanded): keep if !missing(fyear) & !missing(tic)
  • keep if ~missing(gvkey) & ~missing(fyear) & gvkey~=" "
    P4_Whistleblowing Variables.do:9
    Code/P4_Whistleblowing Variables.do, line 9 keep if ~missing(gvkey) & ~missing(fyear) & gvkey~=" "
  • keep if !missing(state) & !missing(city) & !missing(lat) & !missing(lng)
    P7_Cross-sectional Variables.do:20
    Code/P7_Cross-sectional Variables.do, line 20 keep if !missing(state) & !missing(city) & !missing(lat) & !missing(lng)
  • drop if missing(gvkey)
    P7_Cross-sectional Variables.do:216
    Code/P7_Cross-sectional Variables.do, line 216 drop if missing(gvkey)
  • drop if missing(gvkey)
    P7_Cross-sectional Variables.do:436
    Code/P7_Cross-sectional Variables.do, line 436 drop if missing(gvkey)
  • keep if !missing(working_ba_hq)
    P7_Cross-sectional Variables.do:577
    Code/P7_Cross-sectional Variables.do, line 577 keep if !missing(working_ba_hq)
  • drop if dup==1 & ~missing(ticker)
    P7_Cross-sectional Variables.do:665
    Code/P7_Cross-sectional Variables.do, line 665 drop if dup==1 & ~missing(ticker)
  • keep if ~missing(at) & ~missing(sale)
    P8_Merge Datasets to Construct Final Sample.do:110
    Code/P8_Merge Datasets to Construct Final Sample.do, line 110 keep if ~missing(at) & ~missing(sale)
  • first 8 of 9
time windows set by a variable — a loop or a computed date, not fixed years (rolling estimation windows, not the sample period) ×6
  • keep if fyear == `yr'
    P7_Cross-sectional Variables.do:35
    Code/P7_Cross-sectional Variables.do, line 35 keep if fyear == `yr'
  • keep if fyear == `yr'
    P7_Cross-sectional Variables.do:41
    Code/P7_Cross-sectional Variables.do, line 41 keep if fyear == `yr'
  • keep if fyear == `yr'
    P7_Cross-sectional Variables.do:64
    Code/P7_Cross-sectional Variables.do, line 64 keep if fyear == `yr'
  • keep if fyear == `yr'
    P7_Cross-sectional Variables.do:70
    Code/P7_Cross-sectional Variables.do, line 70 keep if fyear == `yr'
  • keep if fyear == `yr'
    P7_Cross-sectional Variables.do:93
    Code/P7_Cross-sectional Variables.do, line 93 keep if fyear == `yr'
  • keep if fyear == `yr'
    P7_Cross-sectional Variables.do:99
    Code/P7_Cross-sectional Variables.do, line 99 keep if fyear == `yr'
drops after a merge (_merge) ×46
  • drop if _m==2
    P1_Firm Year Sample.do:187
    Code/P1_Firm Year Sample.do, line 187 drop if _m==2
  • drop if _m==2
    P1_Firm Year Sample.do:191
    Code/P1_Firm Year Sample.do, line 191 drop if _m==2
  • drop if _m==2
    P1_Firm Year Sample.do:195
    Code/P1_Firm Year Sample.do, line 195 drop if _m==2
  • drop if _m==2
    P1_Firm Year Sample.do:212
    Code/P1_Firm Year Sample.do, line 212 drop if _m==2
  • drop if _m==2
    P2_Independent Variable of Interest.do:17
    Code/P2_Independent Variable of Interest.do, line 17 drop if _m==2
  • drop if _m==2
    P2_Independent Variable of Interest.do:23
    Code/P2_Independent Variable of Interest.do, line 23 drop if _m==2
  • drop if _m==2
    P2_Independent Variable of Interest.do:46
    Code/P2_Independent Variable of Interest.do, line 46 drop if _m==2
  • drop if _m==2
    P4_Whistleblowing Variables.do:33
    Code/P4_Whistleblowing Variables.do, line 33 drop if _m==2
  • first 8 of 46
Outliers
winsorize at 1/99 · 29 variables
abs_dak l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_tangibility l1_lev l1_rom l1_cash l1_accrual l1_std4_roe +17
P8_Merge Datasets to Construct Final Sample.do:116
Code/P8_Merge Datasets to Construct Final Sample.do, line 116 winsor2 abs_dak l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_tangibility l1_lev l1_rom l1_cash l1_accrual l1_std4_roe l1_std4_cfo l1_reportlag ln_l1_analyst l1_PerCapitaIncome M_FlowH1BInt_Mgr_S M_Pct_LCA_Acct_HQ M_LCA_Acct_50mile M_NonCom …
P5_Other Dependent Variables.do:12
Code/P5_Other Dependent Variables.do, line 12 winsor rom, gen(w_rom) p(0.01)
P5_Other Dependent Variables.do:67
Code/P5_Other Dependent Variables.do, line 67 winsor `var' if miss==0, gen(w_`var') p(0.01)
Missing values
set to zero ×44
  • loss → 0
    P6_Control Variables.do:54
    Code/P6_Control Variables.do, line 54 replace loss=0 if missing(loss)
  • merge → 0
    P6_Control Variables.do:82
    Code/P6_Control Variables.do, line 82 replace merge=0 if missing(merge)
  • l1_analyst → 0
    P6_Control Variables.do:157
    Code/P6_Control Variables.do, line 157 replace l1_analyst=0 if missing(l1_analyst)
  • l1_Sub_ChinaIndian → 0
    P6_Control Variables.do:190
    Code/P6_Control Variables.do, line 190 replace l1_Sub_ChinaIndian=0 if missing(l1_Sub_ChinaIndian)
  • sp3_w_rom → 0
    P5_Other Dependent Variables.do:14
    Code/P5_Other Dependent Variables.do, line 14 replace sp3_w_rom=0 if missing(sp3_w_rom) & ~missing(w_rom)
  • TotLCA → 0
    P2_Independent Variable of Interest.do:51
    Code/P2_Independent Variable of Interest.do, line 51 replace `var'=0 if missing(`var')
interpolated / carried forward ×11
  • P2_Independent Variable of Interest.do:57
    Code/P2_Independent Variable of Interest.do, line 57 by gvkey: carryforward(LCA_Pre_tmp),replace
  • P2_Independent Variable of Interest.do:66
    Code/P2_Independent Variable of Interest.do, line 66 by gvkey: carryforward(LCA_Pre_tmp), replace
  • P2_Independent Variable of Interest.do:77
    Code/P2_Independent Variable of Interest.do, line 77 by gvkey: carryforward(LCA_Pre_tmp),replace
  • P2_Independent Variable of Interest.do:85
    Code/P2_Independent Variable of Interest.do, line 85 by gvkey: carryforward(LCA_Pre_tmp),replace
  • P2_Independent Variable of Interest.do:117
    Code/P2_Independent Variable of Interest.do, line 117 by gvkey: carryforward M_`var'_tmp, gen(M_`var')
  • P7_Cross-sectional Variables.do:143
    Code/P7_Cross-sectional Variables.do, line 143 by gvkey: carryforward M_LCA_Acct_50mile_tmp, gen(M_LCA_Acct_50mile)
dropped ×9
  • P8_Merge Datasets to Construct Final Sample.do:110
    Code/P8_Merge Datasets to Construct Final Sample.do, line 110 keep if ~missing(at) & ~missing(sale)
  • P8_Merge Datasets to Construct Final Sample.do:113
    Code/P8_Merge Datasets to Construct Final Sample.do, line 113 keep if !missing(ff12_$siccode) & !missing($state) & !missing($city)
  • P4_Whistleblowing Variables.do:9
    Code/P4_Whistleblowing Variables.do, line 9 keep if ~missing(gvkey) & ~missing(fyear) & gvkey~=" "
  • P7_Cross-sectional Variables.do:20
    Code/P7_Cross-sectional Variables.do, line 20 keep if !missing(state) & !missing(city) & !missing(lat) & !missing(lng)
  • P7_Cross-sectional Variables.do:216
    Code/P7_Cross-sectional Variables.do, line 216 drop if missing(gvkey)
  • P7_Cross-sectional Variables.do:436
    Code/P7_Cross-sectional Variables.do, line 436 drop if missing(gvkey)
filled with a value ×3
  • sicc → sic
    P5_Other Dependent Variables.do:28
    Code/P5_Other Dependent Variables.do, line 28 replace sicc=sic if missing(sicc)
  • ba_lat_hq → ba_latitude
    P7_Cross-sectional Variables.do:544
    Code/P7_Cross-sectional Variables.do, line 544 replace ba_lat_hq=ba_latitude if ~missing(ba_state_hq) & ~missing(ba_city_hq) & (missing(ba_lat_hq) | missing(ba_lng_hq)) & ba_latitude~=-99
  • ba_lng_hq → ba_longitude
    P7_Cross-sectional Variables.do:545
    Code/P7_Cross-sectional Variables.do, line 545 replace ba_lng_hq=ba_longitude if ~missing(ba_state_hq) & ~missing(ba_city_hq) & (missing(ba_lat_hq) | missing(ba_lng_hq)) & ba_longitude~=-99

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

Standard measures computed here: Cash Holdings (cash
P6_Control Variables.do:22
Code/P6_Control Variables.do, line 22 g cash=ch/l.at
), Log Market Cap (lnmv
P6_Control Variables.do:10
Code/P6_Control Variables.do, line 10 g lnmv=ln(prcc_f*csho)
), Operating Cash Flow (cfo
P6_Control Variables.do:57
Code/P6_Control Variables.do, line 57 g cfo=oancf/at
), Return on Assets (ROA) (roa_at
P5_Other Dependent Variables.do:59
Code/P5_Other Dependent Variables.do, line 59 gen roa_at= $ni /at_1
), Return on Equity (ROE) (roe
P6_Control Variables.do:33
Code/P6_Control Variables.do, line 33 g roe=ni/ceq
), Sales Growth (saleg
P6_Control Variables.do:50
Code/P6_Control Variables.do, line 50 g saleg=d.sale/l.sale
), Tangibility (PPE/Assets) (ppe_at
P5_Other Dependent Variables.do:57
Code/P5_Other Dependent Variables.do, line 57 gen ppe_at= ppent/ at_1
)
VariableUsed in models asBuilt by
max_res_s_irr outcome in 15
max_res_s_irr = (max) res_irr (collapse)
P3_Main Dependent Variables.do:79
Code/P3_Main Dependent Variables.do, line 79 collapse (max) max_res_s_irr=res_irr max_res_s_error=res_error, by(gvkey fyear)
WB_Tot outcome in 3
WB_Tot = 1 (gen)
P4_Whistleblowing Variables.do:41
Code/P4_Whistleblowing Variables.do, line 41 g WB_Tot=1 if WB_OSHA==1 | WB_Press==1
WB_Tot = 0 (replace)
P4_Whistleblowing Variables.do:42
Code/P4_Whistleblowing Variables.do, line 42 replace WB_Tot=0 if missing(WB_Tot)
res_uierrors outcome in 1
res_uierrors = 1 (gen)
P8_Merge Datasets to Construct Final Sample.do:126
Code/P8_Merge Datasets to Construct Final Sample.do, line 126 g res_uierrors=1 if max_res_s_error==1 & max_res_s_irr~=1
res_uierrors = 0 (replace)
P8_Merge Datasets to Construct Final Sample.do:127
Code/P8_Merge Datasets to Construct Final Sample.do, line 127 replace res_uierrors=0 if max_res_s_error==0 & max_res_s_irr~=1
w_tac_at outcome in 1 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
H1B regressor in 19
H1B = 1 (gen)
P2_Independent Variable of Interest.do:67
Code/P2_Independent Variable of Interest.do, line 67 g H1B=1 if LCA_Pre_tmp>0 & !missing(LCA_Pre_tmp)
H1B = 0 (replace)
P2_Independent Variable of Interest.do:68
Code/P2_Independent Variable of Interest.do, line 68 replace H1B=0 if LCA_Pre_tmp==0
Post regressor in 19
Post = 1 (gen)
P2_Independent Variable of Interest.do:94
Code/P2_Independent Variable of Interest.do, line 94 g Post=1 if $year >=$eventyr & $year <=$endyr
Post = 0 (replace)
P2_Independent Variable of Interest.do:95
Code/P2_Independent Variable of Interest.do, line 95 replace Post=0 if $year <$eventyr
H1B_Post regressor in 18
H1B_Post = H1B*Post (gen)
P8_Merge Datasets to Construct Final Sample.do:122
Code/P8_Merge Datasets to Construct Final Sample.do, line 122 gen H1B_Post=H1B*Post
l1_Dependent_ba_city_Census_Old regressor in 17
l1_Dependent_ba_city_Census_Old = l.Dependent_ba_city_Census_Old (gen)
P6_Control Variables.do:199
Code/P6_Control Variables.do, line 199 g l1_Dependent_ba_city_Census_Old=l.Dependent_ba_city_Census_Old
l1_Gr_emp regressor in 17
l1_Gr_emp = l1.Gr_emp (gen)
P6_Control Variables.do:17
Code/P6_Control Variables.do, line 17 g l1_Gr_emp=l1.Gr_emp
l1_PerCapitaIncome regressor in 17
l1_PerCapitaIncome = l.PerCapitaIncome (gen)
P6_Control Variables.do:105
Code/P6_Control Variables.do, line 105 g l1_PerCapitaIncome=l.PerCapitaIncome
l1_Sub_ChinaIndian regressor in 17
l1_Sub_ChinaIndian = l.Sub_ChinaIndian (gen)
P6_Control Variables.do:181
Code/P6_Control Variables.do, line 181 g l1_Sub_ChinaIndian=l.Sub_ChinaIndian
l1_Sub_ChinaIndian = 0 (replace)
P6_Control Variables.do:190
Code/P6_Control Variables.do, line 190 replace l1_Sub_ChinaIndian=0 if missing(l1_Sub_ChinaIndian)
l1_accrual regressor in 17
l1_accrual = l.accrual (gen)
P6_Control Variables.do:67
Code/P6_Control Variables.do, line 67 g l1_accrual=l.accrual
l1_bm regressor in 17
l1_bm = l.bm (gen)
P6_Control Variables.do:20
Code/P6_Control Variables.do, line 20 g l1_bm=l.bm
l1_busyseason regressor in 17
l1_busyseason = l.busyseason (gen)
P6_Control Variables.do:71
Code/P6_Control Variables.do, line 71 g l1_busyseason=l.busyseason
l1_cash regressor in 17
l1_cash = l.cash (gen)
P6_Control Variables.do:23
Code/P6_Control Variables.do, line 23 g l1_cash=l.cash

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

Table 3 · 4 estimations → table3_p1.xls, table3_p2.xls
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
max_res_s_irr H1B_Post H1B Post xid, fyear cluster: msa
P9_Generate Results.do:21
Code/P9_Generate Results.do, line 21 qui reghdfe max_res_s_irr H1B_Post H1B Post if miss==0 & H1B_All==1, keepsing absorb(xid fyear) noomit vce(cluster msa)
written at P9_Generate Results.do:22
reghdfe
panel fe
max_res_s_irr H1B_Post H1B Post l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom +14 more xid, fyear cluster: msa
P9_Generate Results.do:23
Code/P9_Generate Results.do, line 23 qui reghdfe max_res_s_irr H1B_Post H1B Post l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom l1_loss l1_cash l1_accrual l1_std4_roe l1_std4_cfo l1_foreign l1_merge l1_restructure l1_busyseason l1_reportlag l …
written at P9_Generate Results.do:24
reghdfe
panel fe
max_res_s_irr H1B_Post H1B Post l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom +14 more xid, msa_ind_yr cluster: msa
P9_Generate Results.do:25
Code/P9_Generate Results.do, line 25 qui reghdfe max_res_s_irr H1B_Post H1B Post l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom l1_loss l1_cash l1_accrual l1_std4_roe l1_std4_cfo l1_foreign l1_merge l1_restructure l1_busyseason l1_reportlag l …
written at P9_Generate Results.do:26
reghdfe
panel fe
max_res_s_irr pre_3 pre_2 eventyr post_1 post_2 post_3 post_4 post_5 H1B Post l1_lnmv l1_ln_emp +21 more xid, msa_ind_yr cluster: msa
P9_Generate Results.do:29
Code/P9_Generate Results.do, line 29 qui reghdfe max_res_s_irr pre_3 pre_2 eventyr post_1 post_2 post_3 post_4 post_5 H1B Post l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom l1_loss l1_cash l1_accrual l1_std4_roe l1_std4_cfo l1_foreign l1_mer …
written at P9_Generate Results.do:30
Table 4 · 2 estimations → table4.xls
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
max_res_s_irr H1B_HR_Post H1B_Egr_Post H1B_Post H1B H1B_HR H1B_Egr Post l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg +18 more xid, msa_ind_yr cluster: msa
P9_Generate Results.do:33
Code/P9_Generate Results.do, line 33 qui reghdfe max_res_s_irr H1B_HR_Post H1B_Egr_Post H1B_Post H1B H1B_HR H1B_Egr Post l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom l1_loss l1_cash l1_accrual l1_std4_roe l1_std4_cfo l1_foreign l1_merge l1_ …
written at P9_Generate Results.do:34
reghdfe
panel fe
res_uierrors H1B_Post H1B Post l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom +14 more xid, msa_ind_yr cluster: msa
P9_Generate Results.do:35
Code/P9_Generate Results.do, line 35 qui reghdfe res_uierrors H1B_Post H1B Post l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom l1_loss l1_cash l1_accrual l1_std4_roe l1_std4_cfo l1_foreign l1_merge l1_restructure l1_busyseason l1_reportlag ln …
written at P9_Generate Results.do:36
Table 5 · 2 estimations → table5.xls
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
max_res_s_irr High_H1B_Mgr_Post Low_H1B_Mgr_Post H1B Post H1B_Post High_H1B_Mgr_Avg Low_H1B_Mgr_Avg High_Mgr_H1B Low_Mgr_H1B High_Mgr_Post Low_Mgr_Post l1_lnmv +22 more xid, msa_ind_yr cluster: msa
P9_Generate Results.do:39
Code/P9_Generate Results.do, line 39 qui reghdfe max_res_s_irr High_H1B_Mgr_Post Low_H1B_Mgr_Post H1B Post H1B_Post High_H1B_Mgr_Avg Low_H1B_Mgr_Avg High_Mgr_H1B Low_Mgr_H1B High_Mgr_Post Low_Mgr_Post l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l …
written at P9_Generate Results.do:40
reghdfe
panel fe
max_res_s_irr High_H1B_HQ_Post Low_H1B_HQ_Post H1B Post H1B_Post High_H1B_HQ Low_H1B_HQ High_HQ_H1B Low_HQ_H1B High_HQ_Post Low_HQ_Post l1_lnmv +22 more xid, msa_ind_yr cluster: msa
P9_Generate Results.do:41
Code/P9_Generate Results.do, line 41 qui reghdfe max_res_s_irr High_H1B_HQ_Post Low_H1B_HQ_Post H1B Post H1B_Post High_H1B_HQ Low_H1B_HQ High_HQ_H1B Low_HQ_H1B High_HQ_Post Low_HQ_Post l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom l1_loss l1 …
written at P9_Generate Results.do:42
Table 6 · 3 estimations → table6.xls
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
max_res_s_irr H1B_Post Post_LowLCA H1B_Post_LowLCA H1B Post Low_LCA50mile H1B_LowLCA l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg +18 more xid, msa_ind_yr cluster: msa
P9_Generate Results.do:45
Code/P9_Generate Results.do, line 45 qui reghdfe max_res_s_irr H1B_Post Post_LowLCA H1B_Post_LowLCA H1B Post Low_LCA50mile H1B_LowLCA l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom l1_loss l1_cash l1_accrual l1_std4_roe l1_std4_cfo l1_foreign …
written at P9_Generate Results.do:46
reghdfe
panel fe
max_res_s_irr H1B_Post Post_HighIndex H1B_Post_HighIndex H1B Post High_NonCompIndex H1B_HighIndex l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg +18 more xid, msa_ind_yr cluster: msa
P9_Generate Results.do:47
Code/P9_Generate Results.do, line 47 qui reghdfe max_res_s_irr H1B_Post Post_HighIndex H1B_Post_HighIndex H1B Post High_NonCompIndex H1B_HighIndex l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom l1_loss l1_cash l1_accrual l1_std4_roe l1_std4_c …
written at P9_Generate Results.do:48
reghdfe
panel fe
max_res_s_irr H1B_Post Post_LowPR H1B_Post_LowPR H1B Post Low_PR H1B_LowPR l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg +18 more xid, msa_ind_yr cluster: msa
P9_Generate Results.do:49
Code/P9_Generate Results.do, line 49 qui reghdfe max_res_s_irr H1B_Post Post_LowPR H1B_Post_LowPR H1B Post Low_PR H1B_LowPR l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom l1_loss l1_cash l1_accrual l1_std4_roe l1_std4_cfo l1_foreign l1_merge …
written at P9_Generate Results.do:50
Table 7 · 2 estimations → table7.xls
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
max_res_s_irr H1B_Post Post_HighDelta H1B_Post_HighDelta H1B Post High_Delta H1B_HighDelta l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg +18 more xid, msa_ind_yr cluster: msa
P9_Generate Results.do:53
Code/P9_Generate Results.do, line 53 qui reghdfe max_res_s_irr H1B_Post Post_HighDelta H1B_Post_HighDelta H1B Post High_Delta H1B_HighDelta l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom l1_loss l1_cash l1_accrual l1_std4_roe l1_std4_cfo l1_f …
written at P9_Generate Results.do:54
reghdfe
panel fe
max_res_s_irr H1B_Post Post_MoveIn H1B_Post_MoveIn H1B Post MoveIn H1B_MoveIn l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg +18 more xid, msa_ind_yr cluster: msa
P9_Generate Results.do:55
Code/P9_Generate Results.do, line 55 qui reghdfe max_res_s_irr H1B_Post Post_MoveIn H1B_Post_MoveIn H1B Post MoveIn H1B_MoveIn l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom l1_loss l1_cash l1_accrual l1_std4_roe l1_std4_cfo l1_foreign l1_mer …
written at P9_Generate Results.do:56
Table 8 · 3 estimations → table8.xls
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
WB_Tot H1B_Post H1B Post xid, fyear cluster: msa
P9_Generate Results.do:59
Code/P9_Generate Results.do, line 59 qui reghdfe WB_Tot H1B_Post H1B Post if miss==0 & H1B_All==1, keepsing absorb(xid fyear) noomit vce(cluster msa)
written at P9_Generate Results.do:60
reghdfe
panel fe
WB_Tot H1B_Post H1B Post l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom +14 more xid, fyear cluster: msa
P9_Generate Results.do:61
Code/P9_Generate Results.do, line 61 qui reghdfe WB_Tot H1B_Post H1B Post l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom l1_loss l1_cash l1_accrual l1_std4_roe l1_std4_cfo l1_foreign l1_merge l1_restructure l1_busyseason l1_reportlag ln_l1_an …
written at P9_Generate Results.do:62
reghdfe
panel fe
WB_Tot H1B_Post H1B Post l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom +14 more xid, msa_ind_yr cluster: msa
P9_Generate Results.do:63
Code/P9_Generate Results.do, line 63 qui reghdfe WB_Tot H1B_Post H1B Post l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom l1_loss l1_cash l1_accrual l1_std4_roe l1_std4_cfo l1_foreign l1_merge l1_restructure l1_busyseason l1_reportlag ln_l1_an …
written at P9_Generate Results.do:64
Table 9 · 3 estimations → table9.xls
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
max_res_s_irr H1B_Post Post_Low_WB_ICW H1B_Post_Low_WB_ICW H1B Post Low_WB_ICW302 H1B_Low_WB_ICW l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg +18 more xid, msa_ind_yr cluster: msa
P9_Generate Results.do:67
Code/P9_Generate Results.do, line 67 qui reghdfe max_res_s_irr H1B_Post Post_Low_WB_ICW H1B_Post_Low_WB_ICW H1B Post Low_WB_ICW302 H1B_Low_WB_ICW l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom l1_loss l1_cash l1_accrual l1_std4_roe l1_std4_cf …
written at P9_Generate Results.do:68
reghdfe
panel fe
max_res_s_irr H1B_Post Post_Low_WB_Dist H1B_Post_Low_WB_Dist H1B Post Low_WB_Dist H1B_Low_WB_Dist l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg +18 more xid, msa_ind_yr cluster: msa
P9_Generate Results.do:69
Code/P9_Generate Results.do, line 69 qui reghdfe max_res_s_irr H1B_Post Post_Low_WB_Dist H1B_Post_Low_WB_Dist H1B Post Low_WB_Dist H1B_Low_WB_Dist l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom l1_loss l1_cash l1_accrual l1_std4_roe l1_std4_c …
written at P9_Generate Results.do:70
reghdfe
panel fe
max_res_s_irr H1B_Post Post_Low_WB_MSCI H1B_Post_Low_WB_MSCI H1B Post Low_MsciEmp H1B_Low_MsciEmp l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg +18 more xid, msa_ind_yr cluster: msa
P9_Generate Results.do:71
Code/P9_Generate Results.do, line 71 qui reghdfe max_res_s_irr H1B_Post Post_Low_WB_MSCI H1B_Post_Low_WB_MSCI H1B Post Low_MsciEmp H1B_Low_MsciEmp l1_lnmv l1_ln_emp l1_Gr_emp l1_bm l1_saleg l1_no_int l1_tangibility l1_lev l1_rom l1_loss l1_cash l1_accrual l1_std4_roe l1_std4_c …
written at P9_Generate Results.do:72
Estimations not traced to a table or figure · 1
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reg
ols
w_tac_at w_at_1_rev w_salech_at w_ppe_at — default
P5_Other Dependent Variables.do:77
Code/P5_Other Dependent Variables.do, line 77 capture reg w_tac_at w_at_1_rev w_salech_at w_ppe_at if reggrp==`a' & minnum==1
Tables and figures the code writes: Table 3 table3_p1.xls
P9_Generate Results.do:22
Code/P9_Generate Results.do, line 22 outreg2 using table3_p1.xls, excel stats(coef tstat) aster(coef) bdec(3) tdec(2) addstat(Adj_R2, e(r2_a)) addtext(Firm FE, YES, Year FE, YES)
· Table 3 table3_p2.xls
P9_Generate Results.do:30
Code/P9_Generate Results.do, line 30 outreg2 using table3_p2.xls, excel stats(coef tstat) aster(coef) bdec(3) tdec(2) addstat(Adj_R2, e(r2_a)) addtext(Firm FE, YES, MSA-Industry-Year FE, YES)
· Table 4 table4.xls
P9_Generate Results.do:34
Code/P9_Generate Results.do, line 34 outreg2 using table4.xls, excel stats(coef tstat) aster(coef) bdec(3) tdec(2) addstat(Adj_R2, e(r2_a)) addtext(Firm FE, YES, MSA-Industry-Year FE, YES)
· Table 5 table5.xls
P9_Generate Results.do:40
Code/P9_Generate Results.do, line 40 outreg2 using table5.xls, excel stats(coef tstat) aster(coef) bdec(3) tdec(2) addstat(Adj_R2, e(r2_a)) addtext(Firm FE, YES, MSA-Industry-Year FE, YES)
· Table 6 table6.xls
P9_Generate Results.do:46
Code/P9_Generate Results.do, line 46 outreg2 using table6.xls, excel stats(coef tstat) aster(coef) bdec(3) tdec(2) addstat(Adj_R2, e(r2_a)) addtext(Firm FE, YES, MSA-Industry-Year FE, YES)
· Table 7 table7.xls
P9_Generate Results.do:54
Code/P9_Generate Results.do, line 54 outreg2 using table7.xls, excel stats(coef tstat) aster(coef) bdec(3) tdec(2) addstat(Adj_R2, e(r2_a)) addtext(Firm FE, YES, MSA-Industry-Year FE, YES)
· Table 8 table8.xls
P9_Generate Results.do:60
Code/P9_Generate Results.do, line 60 outreg2 using table8.xls, excel stats(coef tstat) aster(coef) bdec(3) tdec(2) addstat(Adj_R2, e(r2_a)) addtext(Firm FE, YES, Year FE, YES)
· Table 9 table9.xls
P9_Generate Results.do:68
Code/P9_Generate Results.do, line 68 outreg2 using table9.xls, excel stats(coef tstat) aster(coef) bdec(3) tdec(2) addstat(Adj_R2, e(r2_a)) addtext(Firm FE, YES, MSA-Industry-Year FE, YES)