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
Standard measures:
Cash Holdings, Log Market Cap, Operating Cash Flow, Return on Assets (ROA), Return on Equity (ROE), Sales Growth, Tangibility (PPE/Assets) (2 variables)
4 · What it estimates
| Command | Method | Fixed effects absorbed | Inference | File |
|---|---|---|---|---|
|
ols | default | P5_Other Dependent Variables.do | |
|
panel fe | xid, fyear | cluster by msa | P9_Generate Results.do |
|
panel fe | xid, 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.xlsHow 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.dtaStataP7_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_2023StataP1_Firm Year Sample.do:171
Code/P1_Firm Year Sample.do, line 171 use "input/Identifiers_CompustataAnnual_1980_2023", clear
MSCI ESG KLD STATS
1 file
input/KLD_MSCI.dtaStataP7_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/compvarsStata · read by 2 scriptsP1_Firm Year Sample.do:157
Code/P1_Firm Year Sample.do, line 157 use "input/compvars", clearinput/H1B_CS.xlsxExcel · read by 2 scriptsP6_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) clearinput/LCA_COMP_2001_2009.dtaStata · read by 2 scriptsP2_Independent Variable of Interest.do:12
Code/P2_Independent Variable of Interest.do, line 12 use "input/LCA_COMP_2001_2009.dta", clearinput/auditsox302.dtaStataP7_Cross-sectional Variables.do:473
Code/P7_Cross-sectional Variables.do, line 473 use "input/auditsox302.dta", clearinput/CCMA_NCUSIP_Link.dtaStataP7_Cross-sectional Variables.do:617
Code/P7_Cross-sectional Variables.do, line 617 use "input/CCMA_NCUSIP_Link.dta", clearinput/country31may2015.dtaStataP6_Control Variables.do:164
Code/P6_Control Variables.do, line 164 use "input/country31may2015.dta", clearinput/dependency_check.dtaStataP6_Control Variables.do:195
Code/P6_Control Variables.do, line 195 use "input/dependency_check.dta", clearinput/Industry_ClassificationStataP1_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.dtaStataP7_Cross-sectional Variables.do:301
Code/P7_Cross-sectional Variables.do, line 301 use "input/InstitutionHold_1980_2018.dta",clearinput/JobTitle.dtaStataP2_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/MSAStataP1_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/NonCompIdxStataP7_Cross-sectional Variables.do:150
Code/P7_Cross-sectional Variables.do, line 150 use "input/NonCompIdx", clearinput/resperiod_m1.dtaStataP3_Main Dependent Variables.do:73
Code/P3_Main Dependent Variables.do, line 73 use "input/resperiod_m1.dta", clearinput/Russell 1000-2000 Recon.csvCSVP7_Cross-sectional Variables.do:415
Code/P7_Cross-sectional Variables.do, line 415 insheet using "input/Russell 1000-2000 Recon.csv", clearinput/Russell 2000.csvCSVP7_Cross-sectional Variables.do:407
Code/P7_Cross-sectional Variables.do, line 407 insheet using "input/Russell 2000.csv", clearinput/US_Coordinates.dtaStataP7_Cross-sectional Variables.do:7
Code/P7_Cross-sectional Variables.do, line 7 use "input/US_Coordinates.dta", clearinput/WB Allegations.xlsxExcelP4_Whistleblowing Variables.do:15
Code/P4_Whistleblowing Variables.do, line 15 import excel using "input/WB Allegations.xlsx", sheet("Sheet1") firstrow case(lower) clearinput/WB.xlsExcelP4_Whistleblowing Variables.do:6
Code/P4_Whistleblowing Variables.do, line 6 import excel using "input/WB.xls", sheet("Sheet1") firstrow case(lower) clearoutput/AnalystCoverageStataP6_Control Variables.do:136
Code/P6_Control Variables.do, line 136 use "output/AnalystCoverage", clearoutput/h1b_working_check.dtaStataP7_Cross-sectional Variables.do:567
Code/P7_Cross-sectional Variables.do, line 567 use "output/h1b_working_check.dta", clearoutput/location_hq_check.dtaStataP7_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.dtaStataP7_Cross-sectional Variables.do:384
Code/P7_Cross-sectional Variables.do, line 384 use "output/ShortTermInvestor.dta", clearoutput/US_Coordinates.dtaStataP7_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).
-
1.
Code/P1_Firm Year Sample.donamed in Code/ReadMe.docx reads 4 input files · 4 merges ·writesIdentifiers_CompustatAnnual_1980_2023_tmp.dta→ read byP6_Control Variables.do,P7_Cross-sectional Variables.dowritesIdentifiers_CompustatAnnual_2001_2019.dta→ read byP2_Independent Variable of Interest.do,P4_Whistleblowing Variables.do,P6_Control Variables.do,P7_Cross-sectional Variables.dowritescompvars.dta→ read byP5_Other Dependent Variables.do,P6_Control Variables.do,P7_Cross-sectional Variables.do -
2.
Code/P2_Independent Variable of Interest.donamed in Code/ReadMe.docx reads 2 input files · 3 merges ·reads whatP1_Firm Year Sample.dowrotewritesH1B_Vars_CapShock.dta→ read byP8_Merge Datasets to Construct Final Sample.dowritesTotLCA_Acct.dta→ read byP7_Cross-sectional Variables.do -
3.
Code/P3_Main Dependent Variables.donamed in Code/ReadMe.docx reads 1 input file ·writesrestatement.dta→ read byP8_Merge Datasets to Construct Final Sample.do -
4.
Code/P4_Whistleblowing Variables.donamed in Code/ReadMe.docx reads 2 input files · 2 merges ·reads whatP1_Firm Year Sample.dowrotewritesWB.dta→ read byP8_Merge Datasets to Construct Final Sample.do -
5.
Code/P5_Other Dependent Variables.donamed in Code/ReadMe.docx 1 merge · 1 estimationreads whatP1_Firm Year Sample.dowrotewritesabs_tot_accruals.dta→ read byP8_Merge Datasets to Construct Final Sample.dowritesaccrualibsicc210.dta→ read byP8_Merge Datasets to Construct Final Sample.dowritessmall_profitbeat.dta→ read byP8_Merge Datasets to Construct Final Sample.do -
6.
Code/P6_Control Variables.donamed in Code/ReadMe.docx reads 4 input files · 2 merges ·reads whatP1_Firm Year Sample.dowrotewritesAnalystFollow.dta→ read byP8_Merge Datasets to Construct Final Sample.dowritesPerCapitaIncome.dta→ read byP8_Merge Datasets to Construct Final Sample.dowritesSubsidiary_Dyreng_tmp.dta→ read byP8_Merge Datasets to Construct Final Sample.dowritesctrl_vars.dta→ read byP8_Merge Datasets to Construct Final Sample.dowritesdependency.dta→ read byP8_Merge Datasets to Construct Final Sample.do -
7.
Code/P7_Cross-sectional Variables.donamed in Code/ReadMe.docx reads 16 input files · 29 merges ·reads whatP1_Firm Year Sample.do,P2_Independent Variable of Interest.dowrotewritesICW_Pre.dta→ read byP8_Merge Datasets to Construct Final Sample.dowritesMoveInRU_Pre.dta→ read byP8_Merge Datasets to Construct Final Sample.dowritesNonCompete_Pre.dta→ read byP8_Merge Datasets to Construct Final Sample.dowritesPR_Pre.dta→ read byP8_Merge Datasets to Construct Final Sample.dowritesShortTermInvestor_Pre.dta→ read byP8_Merge Datasets to Construct Final Sample.dowritesTotLCA_Acct_50miles_Pre.dta→ read byP8_Merge Datasets to Construct Final Sample.dowritesWeakRel_Pre.dta→ read byP8_Merge Datasets to Construct Final Sample.dowritesWorking_h1b_hq_Pre.dta→ read byP8_Merge Datasets to Construct Final Sample.dowrites (not read again):h1b_working.dta,location_hq.dta,tmp.dta -
8.
Code/P8_Merge Datasets to Construct Final Sample.donamed in Code/ReadMe.docx 18 merges ·reads whatP2_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.dowrotewritesWorking_Data_CapShock_Run.dta→ read byP9_Generate Results.do -
9.
Code/P9_Generate Results.donamed in Code/ReadMe.docx 19 estimationsreads whatP8_Merge Datasets to Construct Final Sample.dowrote
3 · Merges — 52 joins, 46 followed by a check of the merge result; 7 appends
| Joins | How | On keys | Check that follows | Where |
|---|---|---|---|---|
identifiers_compustatannual_1980_2023_tmp ← compvars |
merge 1:1 | gvkey fyear |
drop if _m==2 |
P1_Firm Year Sample.do:186Code/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:190Code/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:194Code/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:211Code/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:14Code/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:21Code/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:45Code/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:32Code/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:37Code/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:94Code/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:154Code/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:187Code/P6_Control Variables.do, line 187
merge m:1 cik fyear using "output/Subsidiary_Dyreng.dta", keepusing(l1_Sub_ChinaIndian) |
compvars ← us_coordinates_tmp |
merge m:1 | state city |
drop if _m==2 |
P7_Cross-sectional Variables.do:17Code/P7_Cross-sectional Variables.do, line 17
merge m:1 state city using "output/US_Coordinates_tmp.dta", keepusing(lat lng) |
focal_2001_2007 ← neighbor_temp |
merge 1:m | id |
none | P7_Cross-sectional Variables.do:44Code/P7_Cross-sectional Variables.do, line 44
merge 1:m id using "output/neighbor_temp.dta", keepusing(gvkey lat_n lng_n) nogen |
focal_2001_2007 ← neighbor_temp |
merge 1:m | id |
none | P7_Cross-sectional Variables.do:73Code/P7_Cross-sectional Variables.do, line 73
merge 1:m id using "output/neighbor_temp.dta", keepusing(gvkey lat_n lng_n) nogen |
focal_2001_2007 ← neighbor_temp |
merge 1:m | id |
none | P7_Cross-sectional Variables.do:102Code/P7_Cross-sectional Variables.do, line 102
merge 1:m id using "output/neighbor_temp.dta", keepusing(gvkey lat_n lng_n) nogen |
gvkey_location_pair_50mile_2001_2003 ← totlca_acct |
merge m:1 | gvkey fyear |
drop if _m==2 |
P7_Cross-sectional Variables.do:124Code/P7_Cross-sectional Variables.do, line 124
merge m:1 gvkey fyear using "output/TotLCA_Acct.dta", keepusing(TotLCA_Acct) |
identifiers_compustatannual_2001_2019 ← totlca_acct_50miles_2001_2003 |
merge 1:1 | gvkey $year |
drop if _m==2 |
P7_Cross-sectional Variables.do:135Code/P7_Cross-sectional Variables.do, line 135
merge 1:1 gvkey $year using "output/TotLCA_Acct_50miles_2001_2003.dta", keepusing(TotLCA_Acct_50miles) |
identifiers_compustatannual_2001_2019 ← noncompeteindex |
merge 1:1 | gvkey fyear |
drop if _m==2 |
P7_Cross-sectional Variables.do:224Code/P7_Cross-sectional Variables.do, line 224
merge 1:1 gvkey fyear using "output/NonCompeteIndex.dta", keepusing(NonCompeteIndex) |
identifiers_compustatannual_2001_2019 ← pr |
merge m:1 | $state $year |
drop if _m==2 |
P7_Cross-sectional Variables.do:289Code/P7_Cross-sectional Variables.do, line 289
merge m:1 $state $year using "output/PR.dta", keepusing(Pct_PR) |
institutionhold_1980_2018 ← thomsonreuters13f_summary_1980-2019 |
join m:m (inner) | cusip rdate |
none | P7_Cross-sectional Variables.do:304Code/P7_Cross-sectional Variables.do, line 304
joinby cusip rdate using "input/ThomsonReuters13F_Summary_1980-2019.dta" |
institutionhold_1980_2018 ← dkt |
join m:m (inner) | mgrno year month |
none | P7_Cross-sectional Variables.do:357Code/P7_Cross-sectional Variables.do, line 357
joinby mgrno year month using "output/DKT.dta" |
thomsonreuters13f_summary_1980-2019 ← dkt |
join m:m (inner) | cusip fdate |
none | P7_Cross-sectional Variables.do:367Code/P7_Cross-sectional Variables.do, line 367
joinby cusip fdate using "output/DKT.dta" |
identifiers_compustatannual_2001_2019 ← shortterminvestor_tmp |
merge 1:1 | gvkey datadate |
drop if _m==2 |
P7_Cross-sectional Variables.do:393Code/P7_Cross-sectional Variables.do, line 393
merge 1:1 gvkey datadate using "output/ShortTermInvestor_tmp.dta", keepusing(ihsht_dkt_b) |
compvars ← ru3000_tmp |
merge 1:m | gvkey datadate |
drop if _m==2 |
P7_Cross-sectional Variables.do:442Code/P7_Cross-sectional Variables.do, line 442
merge 1:m gvkey datadate using "output/RU3000_tmp.dta", keepusing(index) |
identifiers_compustatannual_2001_2019 ← moveinru |
merge 1:1 | gvkey $year |
drop if _m==2 |
P7_Cross-sectional Variables.do:459Code/P7_Cross-sectional Variables.do, line 459
merge 1:1 gvkey $year using "output/MoveInRU.dta", keepusing(MoveInRU1000_2000) |
compvars ← ic_302_m1 |
merge 1:1 | gvkey $year |
drop if _m==2 |
P7_Cross-sectional Variables.do:507Code/P7_Cross-sectional Variables.do, line 507
merge 1:1 gvkey $year using "output/ic_302_m1.dta", keepusing(ic_302_m1) |
identifiers_compustatannual_2001_2019 ← pre_icw |
merge m:1 | gvkey |
drop if _m==2 |
P7_Cross-sectional Variables.do:524Code/P7_Cross-sectional Variables.do, line 524
merge m:1 gvkey using "output/pre_icw.dta", keepusing(pre_icw_302_m1) |
identifiers_compustatannual_2001_2019 ← us_coordinates |
merge m:1 | ba_state_hq ba_city_hq |
drop if _m==2 |
P7_Cross-sectional Variables.do:539Code/P7_Cross-sectional Variables.do, line 539
merge m:1 ba_state_hq ba_city_hq using "output/US_Coordinates.dta", keepusing(lat lng) |
lca_comp_2001_2009 ← us_coordinates |
merge m:1 | state_1 city_1 |
drop if _m==2 |
P7_Cross-sectional Variables.do:560Code/P7_Cross-sectional Variables.do, line 560
merge m:1 state_1 city_1 using "output/US_Coordinates.dta", keepusing(lat lng) |
h1b_working_check ← location_hq_check |
merge m:1 | gvkey fyear |
drop if _m==2 |
P7_Cross-sectional Variables.do:570Code/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) |
identifiers_compustatannual_2001_2019 ← pre_working_hq_dist |
merge m:1 | gvkey |
drop if _m==2 |
P7_Cross-sectional Variables.do:591Code/P7_Cross-sectional Variables.do, line 591
merge m:1 gvkey using "output/pre_working_hq_dist.dta", keepusing(M_avg_working_ba_hq) |
weak_relation ← kld_msci |
merge 1:m | ncusip date |
keep if _m==2 |
P7_Cross-sectional Variables.do:636Code/P7_Cross-sectional Variables.do, line 636
merge 1:m ncusip date using "output/KLD_MSCI.dta", keepusing(ncusip ticker date l1_date year weak_relation_full str_relation_full) |
identifiers_compustatannual_2001_2019 ← weak_relation_full |
merge 1:1 | gvkey datadate |
drop if _m==2 |
P7_Cross-sectional Variables.do:674Code/P7_Cross-sectional Variables.do, line 674
merge 1:1 gvkey datadate using "output/weak_relation_full.dta", keepusing(weak_relation_full str_relation_full) |
h1b_vars_capshock ← restatement |
merge 1:1 | gvkey $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:9Code/P8_Merge Datasets to Construct Final Sample.do, line 9
merge 1:1 gvkey $year using "output/restatement.dta", keepusing(max_res_s_irr max_res_s_error) |
h1b_vars_capshock ← accrualibsicc210 |
merge 1:1 | gvkey $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:14Code/P8_Merge Datasets to Construct Final Sample.do, line 14
merge 1:1 gvkey $year using "output/accrualibsicc210.dta", keepusing(abs_dak) |
h1b_vars_capshock ← small_profitbeat |
merge 1:1 | gvkey $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:19Code/P8_Merge Datasets to Construct Final Sample.do, line 19
merge 1:1 gvkey $year using "output/small_profitbeat.dta", keepusing(sp3_w_rom) |
h1b_vars_capshock ← wb |
merge 1:1 | gvkey $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:24Code/P8_Merge Datasets to Construct Final Sample.do, line 24
merge 1:1 gvkey $year using "output/WB.dta", keepusing(WB_Tot) |
h1b_vars_capshock ← abs_tot_accruals |
merge 1:1 | gvkey $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:29Code/P8_Merge Datasets to Construct Final Sample.do, line 29
merge 1:1 gvkey $year using "output/abs_tot_accruals.dta", keepusing(Abs_Tot_acc_cf) |
h1b_vars_capshock ← ctrl_vars |
merge 1:1 | gvkey $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:34Code/P8_Merge Datasets to Construct Final Sample.do, line 34
merge 1:1 gvkey $year using "output/ctrl_vars.dta", keepusing(at sale prcc_f empu lnmv-l1_reportlag) |
h1b_vars_capshock ← percapitaincome |
merge m:1 | $state $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:39Code/P8_Merge Datasets to Construct Final Sample.do, line 39
merge m:1 $state $year using "output/PerCapitaIncome.dta", keepusing(l1_PerCapitaIncome) |
h1b_vars_capshock ← subsidiary_dyreng_tmp |
merge 1:1 | gvkey $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:44Code/P8_Merge Datasets to Construct Final Sample.do, line 44
merge 1:1 gvkey $year using "output/Subsidiary_Dyreng_tmp.dta", keepusing(l1_Sub_ChinaIndian) |
h1b_vars_capshock ← dependency |
merge 1:1 | gvkey $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:49Code/P8_Merge Datasets to Construct Final Sample.do, line 49
merge 1:1 gvkey $year using "output/dependency.dta", keepusing(l1_Dependent_ba_city_Census_Old) |
h1b_vars_capshock ← analystfollow |
merge 1:1 | gvkey $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:54Code/P8_Merge Datasets to Construct Final Sample.do, line 54
merge 1:1 gvkey $year using "output/AnalystFollow.dta", keepusing(ln_l1_analyst) |
h1b_vars_capshock ← totlca_acct_50miles_pre |
merge 1:1 | gvkey $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:59Code/P8_Merge Datasets to Construct Final Sample.do, line 59
merge 1:1 gvkey $year using "output/TotLCA_Acct_50miles_Pre.dta", keepusing(M_LCA_Acct_50mile) |
h1b_vars_capshock ← noncompete_pre |
merge 1:1 | gvkey $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:64Code/P8_Merge Datasets to Construct Final Sample.do, line 64
merge 1:1 gvkey $year using "output/NonCompete_Pre.dta", keepusing(M_NonCompeteIndex) |
h1b_vars_capshock ← pr_pre |
merge 1:1 | gvkey $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:69Code/P8_Merge Datasets to Construct Final Sample.do, line 69
merge 1:1 gvkey $year using "output/PR_Pre.dta", keepusing(M_Pct_PR) |
h1b_vars_capshock ← shortterminvestor_pre |
merge 1:1 | gvkey $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:74Code/P8_Merge Datasets to Construct Final Sample.do, line 74
merge 1:1 gvkey $year using "output/ShortTermInvestor_Pre.dta", keepusing(M_ihsht_dkt_b) |
h1b_vars_capshock ← moveinru_pre |
merge 1:1 | gvkey $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:79Code/P8_Merge Datasets to Construct Final Sample.do, line 79
merge 1:1 gvkey $year using "output/MoveInRU_Pre.dta", keepusing(MoveIn) |
h1b_vars_capshock ← icw_pre |
merge 1:1 | gvkey $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:84Code/P8_Merge Datasets to Construct Final Sample.do, line 84
merge 1:1 gvkey $year using "output/ICW_Pre.dta", keepusing(Low_WB_ICW302) |
h1b_vars_capshock ← working_h1b_hq_pre |
merge m:1 | gvkey $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:89Code/P8_Merge Datasets to Construct Final Sample.do, line 89
merge m:1 gvkey $year using "output/Working_h1b_hq_Pre.dta", keepusing(M_avg_working_ba_hq) |
h1b_vars_capshock ← weakrel_pre |
merge 1:1 | gvkey $year |
drop if _m==2 |
P8_Merge Datasets to Construct Final Sample.do:94Code/P8_Merge Datasets to Construct Final Sample.do, line 94
merge 1:1 gvkey $year using "output/WeakRel_Pre.dta", keepusing(weak_employee_relation) |
4 · The sample — 99 keep/drop steps, 29 variables winsorized or trimmed
Filters, by kind
industry screens ×1
- drop if
sicc2>=60 & sicc2<=69P5_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<=2019P1_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<=2010P4_Whistleblowing Variables.do:29
Code/P4_Whistleblowing Variables.do, line 29 keep if fyear<=2010 - keep if
fyear>=1995 & fyear<=2014P6_Control Variables.do:185
Code/P6_Control Variables.do, line 185 keep if fyear>=1995 & fyear<=2014 - keep if
fyear>=2001 & fyear<=2007P7_Cross-sectional Variables.do:14
Code/P7_Cross-sectional Variables.do, line 14 keep if fyear>=2001 & fyear<=2007 - keep if
fyear>=2001 & fyear<=2009P7_Cross-sectional Variables.do:212
Code/P7_Cross-sectional Variables.do, line 212 keep if fyear>=2001 & fyear<=2009 - keep if
fyear>=1999 & fyear<=2010P7_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 <=$endyrP2_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<=2019P6_Control Variables.do:88
Code/P6_Control Variables.do, line 88 keep if $year>=2001 & $year<=2019 - keep if
$year >=2001 & $year <=$endyrP7_Cross-sectional Variables.do:133
Code/P7_Cross-sectional Variables.do, line 133 keep if $year >=2001 & $year <=$endyr - keep if
$year >=2001 & $year <=$endyrP7_Cross-sectional Variables.do:222
Code/P7_Cross-sectional Variables.do, line 222 keep if $year >=2001 & $year <=$endyr - keep if
$year >=1990 & $year <=2021P7_Cross-sectional Variables.do:280
Code/P7_Cross-sectional Variables.do, line 280 keep if $year >=1990 & $year <=2021 - keep if
$year >=2001 & $year <=$endyrP7_Cross-sectional Variables.do:287
Code/P7_Cross-sectional Variables.do, line 287 keep if $year >=2001 & $year <=$endyr - keep if
$year >=2001 & $year <=$endyrP7_Cross-sectional Variables.do:397
Code/P7_Cross-sectional Variables.do, line 397 keep if $year >=2001 & $year <=$endyr - keep if
$year >=2001 & $year <=$endyrP7_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==2P7_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==1P7_Cross-sectional Variables.do:47
Code/P7_Cross-sectional Variables.do, line 47 keep if dist50==1 - keep if
dist50==1P7_Cross-sectional Variables.do:76
Code/P7_Cross-sectional Variables.do, line 76 keep if dist50==1 - keep if
dist50==1P7_Cross-sectional Variables.do:105
Code/P7_Cross-sectional Variables.do, line 105 keep if dist50==1 - keep if
MoveInRU1000_2000==1P7_Cross-sectional Variables.do:452
Code/P7_Cross-sectional Variables.do, line 452 keep if MoveInRU1000_2000==1 - keep if
H1B_All==1 & miss==0P8_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==2P1_Firm Year Sample.do:187
Code/P1_Firm Year Sample.do, line 187 drop if _m==2 - drop if
_m==2P1_Firm Year Sample.do:191
Code/P1_Firm Year Sample.do, line 191 drop if _m==2 - drop if
_m==2P1_Firm Year Sample.do:195
Code/P1_Firm Year Sample.do, line 195 drop if _m==2 - drop if
_m==2P1_Firm Year Sample.do:212
Code/P1_Firm Year Sample.do, line 212 drop if _m==2 - drop if
_m==2P2_Independent Variable of Interest.do:17
Code/P2_Independent Variable of Interest.do, line 17 drop if _m==2 - drop if
_m==2P2_Independent Variable of Interest.do:23
Code/P2_Independent Variable of Interest.do, line 23 drop if _m==2 - drop if
_m==2P2_Independent Variable of Interest.do:46
Code/P2_Independent Variable of Interest.do, line 46 drop if _m==2 - drop if
_m==2P4_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 +17P8_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→0P6_Control Variables.do:54
Code/P6_Control Variables.do, line 54 replace loss=0 if missing(loss)merge→0P6_Control Variables.do:82
Code/P6_Control Variables.do, line 82 replace merge=0 if missing(merge)l1_analyst→0P6_Control Variables.do:157
Code/P6_Control Variables.do, line 157 replace l1_analyst=0 if missing(l1_analyst)l1_Sub_ChinaIndian→0P6_Control Variables.do:190
Code/P6_Control Variables.do, line 190 replace l1_Sub_ChinaIndian=0 if missing(l1_Sub_ChinaIndian)sp3_w_rom→0P5_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→0P2_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),replaceP2_Independent Variable of Interest.do:66
Code/P2_Independent Variable of Interest.do, line 66 by gvkey: carryforward(LCA_Pre_tmp), replaceP2_Independent Variable of Interest.do:77
Code/P2_Independent Variable of Interest.do, line 77 by gvkey: carryforward(LCA_Pre_tmp),replaceP2_Independent Variable of Interest.do:85
Code/P2_Independent Variable of Interest.do, line 85 by gvkey: carryforward(LCA_Pre_tmp),replaceP2_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→sicP5_Other Dependent Variables.do:28
Code/P5_Other Dependent Variables.do, line 28 replace sicc=sic if missing(sicc)ba_lat_hq→ba_latitudeP7_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~=-99ba_lng_hq→ba_longitudeP7_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 (), Log Market Cap (), Operating Cash Flow (), Return on Assets (ROA) (), Return on Equity (ROE) (), Sales Growth (), Tangibility (PPE/Assets) ()
cash P6_Control Variables.do:22
Code/P6_Control Variables.do, line 22
g cash=ch/l.at
lnmv P6_Control Variables.do:10
Code/P6_Control Variables.do, line 10
g lnmv=ln(prcc_f*csho)
cfo P6_Control Variables.do:57
Code/P6_Control Variables.do, line 57
g cfo=oancf/at
roa_at P5_Other Dependent Variables.do:59
Code/P5_Other Dependent Variables.do, line 59
gen roa_at= $ni /at_1
roe P6_Control Variables.do:33
Code/P6_Control Variables.do, line 33
g roe=ni/ceq
saleg P6_Control Variables.do:50
Code/P6_Control Variables.do, line 50
g saleg=d.sale/l.sale
ppe_at P5_Other Dependent Variables.do:57
Code/P5_Other Dependent Variables.do, line 57
gen ppe_at= ppent/ at_1
| Variable | Used in models as | Built by |
|---|---|---|
max_res_s_irr |
outcome in 15 | max_res_s_irr = (max) res_irr (collapse) P3_Main Dependent Variables.do:79Code/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:41Code/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:42Code/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:126Code/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:127Code/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:67Code/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:68Code/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:94Code/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:95Code/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:122Code/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:199Code/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:17Code/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:105Code/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:181Code/P6_Control Variables.do, line 181
g l1_Sub_ChinaIndian=l.Sub_ChinaIndian l1_Sub_ChinaIndian = 0 (replace) P6_Control Variables.do:190Code/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:67Code/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:20Code/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:71Code/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:23Code/P6_Control Variables.do, line 23
g l1_cash=l.cash |
l1_foreign |
regressor in 17 | l1_foreign = l.foreign (gen) P6_Control Variables.do:79Code/P6_Control Variables.do, line 79
g l1_foreign=l.foreign |
l1_lev |
regressor in 17 | l1_lev = l.lev (gen) P6_Control Variables.do:47Code/P6_Control Variables.do, line 47
g l1_lev=l.lev |
l1_ln_emp |
regressor in 17 | l1_ln_emp = l.ln_emp (gen) P6_Control Variables.do:15Code/P6_Control Variables.do, line 15
g l1_ln_emp=l.ln_emp |
l1_lnmv |
regressor in 17 | l1_lnmv = l.lnmv (gen) P6_Control Variables.do:12Code/P6_Control Variables.do, line 12
g l1_lnmv=l.lnmv |
l1_loss |
regressor in 17 | l1_loss = l.loss (gen) P6_Control Variables.do:55Code/P6_Control Variables.do, line 55
g l1_loss=l.loss |
l1_merge |
regressor in 17 | l1_merge = l.merge (gen) P6_Control Variables.do:83Code/P6_Control Variables.do, line 83
g l1_merge=l.merge |
l1_no_int |
regressor in 17 | l1_no_int = l.no_int (gen) P6_Control Variables.do:31Code/P6_Control Variables.do, line 31
g l1_no_int=l.no_int |
l1_reportlag |
regressor in 17 | l1_reportlag = l.reportlag (gen) P6_Control Variables.do:86Code/P6_Control Variables.do, line 86
g l1_reportlag=l.reportlag |
l1_restructure |
regressor in 17 | l1_restructure = l.restructure (gen) P6_Control Variables.do:75Code/P6_Control Variables.do, line 75
g l1_restructure=l.restructure |
l1_rom |
regressor in 17 | l1_rom = l.rom (gen) P6_Control Variables.do:44Code/P6_Control Variables.do, line 44
g l1_rom=l.rom |
l1_saleg |
regressor in 17 | l1_saleg = l.saleg (gen) P6_Control Variables.do:51Code/P6_Control Variables.do, line 51
g l1_saleg=l.saleg |
l1_std4_cfo |
regressor in 17 | l1_std4_cfo = l.std4_cfo (gen) P6_Control Variables.do:63Code/P6_Control Variables.do, line 63
gen l1_std4_cfo=l.std4_cfo |
l1_std4_roe |
regressor in 17 | l1_std4_roe = l.std4_roe (gen) P6_Control Variables.do:40Code/P6_Control Variables.do, line 40
gen l1_std4_roe=l.std4_roe |
l1_tangibility |
regressor in 17 | l1_tangibility = l.tangibility (gen) P6_Control Variables.do:26Code/P6_Control Variables.do, line 26
gen l1_tangibility=l.tangibility |
ln_l1_analyst |
regressor in 17 | ln_l1_analyst = ln(1+l1_analyst) (gen) P6_Control Variables.do:158Code/P6_Control Variables.do, line 158
gen ln_l1_analyst=ln(1+l1_analyst) |
H1B_Egr |
regressor in 1 | H1B_Egr = 1 (gen) P2_Independent Variable of Interest.do:78Code/P2_Independent Variable of Interest.do, line 78
g H1B_Egr=1 if LCA_Pre_tmp>0 & !missing(LCA_Pre_tmp) H1B_Egr = 0 (replace) P2_Independent Variable of Interest.do:79Code/P2_Independent Variable of Interest.do, line 79
replace H1B_Egr=0 if LCA_Pre_tmp==0 |
H1B_Egr_Post |
regressor in 1 | H1B_Egr_Post = H1B_Egr*Post (gen) P8_Merge Datasets to Construct Final Sample.do:124Code/P8_Merge Datasets to Construct Final Sample.do, line 124
gen H1B_Egr_Post=H1B_Egr*Post |
H1B_HR |
regressor in 1 | H1B_HR = 1 (gen) P2_Independent Variable of Interest.do:86Code/P2_Independent Variable of Interest.do, line 86
g H1B_HR=1 if LCA_Pre_tmp>0 & !missing(LCA_Pre_tmp) H1B_HR = 0 (replace) P2_Independent Variable of Interest.do:87Code/P2_Independent Variable of Interest.do, line 87
replace H1B_HR=0 if LCA_Pre_tmp==0 |
H1B_HR_Post |
regressor in 1 | H1B_HR_Post = H1B_HR*Post (gen) P8_Merge Datasets to Construct Final Sample.do:123Code/P8_Merge Datasets to Construct Final Sample.do, line 123
gen H1B_HR_Post=H1B_HR*Post |
H1B_HighDelta |
regressor in 1 | H1B_HighDelta = H1B*High_Delta (gen) P8_Merge Datasets to Construct Final Sample.do:183Code/P8_Merge Datasets to Construct Final Sample.do, line 183
gen H1B_HighDelta=H1B*High_Delta |
H1B_HighIndex |
regressor in 1 | H1B_HighIndex = H1B*High_NonCompIndex (gen) P8_Merge Datasets to Construct Final Sample.do:167Code/P8_Merge Datasets to Construct Final Sample.do, line 167
gen H1B_HighIndex=H1B*High_NonCompIndex |
H1B_LowLCA |
regressor in 1 | H1B_LowLCA = H1B*Low_LCA50mile (gen) P8_Merge Datasets to Construct Final Sample.do:159Code/P8_Merge Datasets to Construct Final Sample.do, line 159
gen H1B_LowLCA=H1B*Low_LCA50mile |
H1B_LowPR |
regressor in 1 | H1B_LowPR = H1B*Low_PR (gen) P8_Merge Datasets to Construct Final Sample.do:175Code/P8_Merge Datasets to Construct Final Sample.do, line 175
gen H1B_LowPR=H1B*Low_PR |
H1B_Low_MsciEmp |
regressor in 1 | H1B_Low_MsciEmp = H1B*Low_MsciEmp (gen) P8_Merge Datasets to Construct Final Sample.do:205Code/P8_Merge Datasets to Construct Final Sample.do, line 205
gen H1B_Low_MsciEmp=H1B*Low_MsciEmp |
H1B_Low_WB_Dist |
regressor in 1 | H1B_Low_WB_Dist = H1B*Low_WB_Dist (gen) P8_Merge Datasets to Construct Final Sample.do:199Code/P8_Merge Datasets to Construct Final Sample.do, line 199
gen H1B_Low_WB_Dist=H1B*Low_WB_Dist |
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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
max_res_s_irr |
H1B_Post H1B Post
|
xid, fyear | cluster: msa | P9_Generate Results.do:21Code/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 |
reghdfepanel 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:23Code/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 |
reghdfepanel 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:25Code/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 |
reghdfepanel 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:29Code/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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel 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:33Code/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 |
reghdfepanel 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:35Code/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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel 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:39Code/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 |
reghdfepanel 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:41Code/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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel 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:45Code/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 |
reghdfepanel 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:47Code/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 |
reghdfepanel 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:49Code/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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel 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:53Code/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 |
reghdfepanel 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:55Code/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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
WB_Tot |
H1B_Post H1B Post
|
xid, fyear | cluster: msa | P9_Generate Results.do:59Code/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 |
reghdfepanel 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:61Code/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 |
reghdfepanel 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:63Code/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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel 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:67Code/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 |
reghdfepanel 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:69Code/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 |
reghdfepanel 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:71Code/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
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
regols |
w_tac_at |
w_at_1_rev w_salech_at w_ppe_at
|
— | default | P5_Other Dependent Variables.do:77Code/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 · Table 3 · Table 4 · Table 5 · Table 6 · Table 7 · Table 8 · Table 9
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)
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)
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)
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)
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)
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)
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)
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)