Journal of Financial and Quantitative Analysis · 2026 · 10.1017/s0022109025102287

Insiders' information advantage: Evidence from competition with short sellers

Harold Contreras; Jana P. Fidrmuc; Roman Kozhan

The research recipe, read from the replication code

dataverse · package · stata, mathematica, matlab
2006–2017
sample period in the code
58
keep/drop statements
67
winsorizations
121
missing-data rules
3
de-duplications
4
distinct estimations
Sample period in the code: the window the code writes most often — 4_building_master.do:36.
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 (12) and keep/drop statements plus winsorized variables (110).
1 · Data and structure
Panel declared as: cusip8_id × date (daily); cusip_id × date (daily); id × days; lpermno × fyear_qtr
2 · How the sample is built
  • drop missing data ×9
  • drop indicator subset ×8
  • keep category value ×5
  • keep value range ×3
  • drop category value ×3
  • keep missing data ×2
  • keep indicator subset ×2
  • drop value range ×2
Reshaping: sort into quantile groups ×8; collapse to a coarser unit ×5; drop duplicate rows ×3; fill gaps in the panel ×2; expand (duplicate) rows ×2; reshape long/wide ×1
sorts into quintiles
3 · Design and validation
Identification: —
4 · What it estimates
CommandMethodFixed effects absorbedInferenceFile
xtreg
quietly xtreg BHARwsize_bm_adj`var'_w i.Netsales_0_5_cat ssh ssl BHARwsize_bm_adj_252_2_w BHARwsize_bm_adj_1_1_w eps_ch_w i.fyear_qtr, fe r cl(lpermno)
panel fe cluster by lpermno 5_main_results.do
xtreg
quietly xtreg const_dprofits_adj_nets`var'_w i.Ssbyqxnets_0_5 if l4_OnloanQ1daymean0_5_w !=. & BHARwsize_bm_adj_252_2_w !=. & BHARwsize_bm_adj_1_1 !=. & eps_ch_w !=. & fyear_qtr !=.
panel fe default 5_main_results.do
reghdfe
quietly reghdfe BHARwsize_bm_adj_6_46_w i.Ssbyqxnets_0_5 BHARwsize_bm_adj_252_2_w BHARwsize_bm_adj_1_1_w eps_ch_w , absorb(cusip fyear_qtr) vce(cl cusip)
panel fecusip, fyear_qtr cluster by cusip 7_pre_post_sox_results.do
reg
quietly reg const_dprofits_adj_nets`var'_w i.Ssbyqxnets_0_5##i.SOX if reg_sample_all==1
ols default 7_pre_post_sox_results.do
5 · What it produces
6 table files and 10 figure files (pdf 9, xls 6, ? 1); 9 estimates traced from the model that produced them into the exhibit that reports them.
$results\Table_3_forp.xls$results\Table_4_A_forp.xls$results\Table_4_B_forp.xls$results\Table_5_panel_B.xls$results\Table_7_panel_A.xls$results\Table_7_panel_B.xls$results\Figure0.pdf$results\Figure0_1.pdf$results\Figure1.pdf$results\Figure2_ip&ssh.pdf$results\Figure2_ip&ssl.pdf$results\Figure2_ip&ssm.pdf$results\Figure2_is&ssh.pdf$results\Figure2_is&ssl.pdf
How the code gets from data to results own page
10
scripts
5
input files
14
file hand-offs
24
merges
110
sample steps
12
estimations

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

Other input files 5 files
  • $raw_data\CPIdata.dta Stata · read by 2 scripts
    5_main_results.do:81
    replication_package_final/do_files/5_main_results.do, line 81 merge m:m year using "$raw_data\CPIdata.dta"
  • $raw_data\25_Portfolios_5x5(VW).dta Stata
    3_returns.do:112
    replication_package_final/do_files/3_returns.do, line 112 merge m:m date using "$raw_data\25_Portfolios_5x5(VW).dta"
  • $raw_data\F-F_Research_5_factors.dta Stata
    3_returns.do:124
    replication_package_final/do_files/3_returns.do, line 124 merge m:m date using "$raw_data\F-F_Research_5_factors.dta"
  • $raw_data\Short_int_comp_1980-2017.dta Stata
    6_pre_post_sox_cleaning.do:37
    replication_package_final/do_files/6_pre_post_sox_cleaning.do, line 37 use "$raw_data\Short_int_comp_1980-2017.dta", clear
  • $raw_data\thomson_insider_sample.dta Stata
    2_insider_trading_cleaning.do:30
    replication_package_final/do_files/2_insider_trading_cleaning.do, line 30 use "$raw_data\thomson_insider_sample.dta", clear

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

10 scripts, in run order for the master script 0_master_code.do and the 7 scripts it runs (directly or through each other); the other 2 are not run by a master script and follow in file-name order; 14 hand-offs through 11 intermediate files; 5 files written and never read back (outputs). 2 hand-offs run against this order (dashed), so the order is low-confidence: the scripts share a file both ways, or the order is not the one stated.

replication_package_final/do_files/6_pre_post_sox_cleaning.do → replication_package_final/do_files/1_short_sales_markit.do: crsp_comp_merged.dtareplication_package_final/do_files/1_short_sales_markit.do → replication_package_final/do_files/2_insider_trading_cleaning.do: crsp_comp_merged_depurated.dtareplication_package_final/do_files/6_pre_post_sox_cleaning.do → replication_package_final/do_files/3_returns.do: crsp_comp_daily_1983_2017.dtareplication_package_final/do_files/1_short_sales_markit.do → replication_package_final/do_files/3_returns.do: crsp_comp_merged_depurated.dtareplication_package_final/do_files/1_short_sales_markit.do → replication_package_final/do_files/4_building_master.do: SHSdata&EAdate2006-2017_WIDE_forPub.dta, crsp_comp_merged_depurated.dtareplication_package_final/do_files/2_insider_trading_cleaning.do → replication_package_final/do_files/4_building_master.do: insiders_exB_final.dtareplication_package_final/do_files/3_returns.do → replication_package_final/do_files/4_building_master.do: ARsmb_RDQ_dailyALL.dtareplication_package_final/do_files/1_short_sales_markit.do → replication_package_final/do_files/5_main_results.do: SHSdata&EAdate2006-2017_LONG_forPub.dta, SHSdata&EAdate2006-2017_LONG_forgraphs.dtareplication_package_final/do_files/2_insider_trading_cleaning.do → replication_package_final/do_files/5_main_results.do: insiders_exB_trandate.dtareplication_package_final/do_files/4_building_master.do → replication_package_final/do_files/5_main_results.do: master_dataset_1.dtareplication_package_final/do_files/1_short_sales_markit.do → replication_package_final/do_files/6_pre_post_sox_cleaning.do: crsp_comp_merged_depurated.dtareplication_package_final/do_files/2_insider_trading_cleaning.do → replication_package_final/do_files/6_pre_post_sox_cleaning.do: insiders_exB_trandate.dtareplication_package_final/do_files/6_pre_post_sox_cleaning.do → replication_package_final/do_files/7_pre_post_sox_results.do: Master_shortint_compust_1980-2017_byEAdate.dtareplication_package_final/do_files/3_returns.do → replication_package_final/do_files/7_pre_post_sox_results.do: ARsmb_RDQ_dailyALL.dta replication_package_final/do_files/0_master_code.do 1. 0_master_code.do replication_package_final/do_files/1_short_sales_markit.do 2. 1_short_sales_markit.do replication_package_final/do_files/2_insider_trading_cleaning.do · reads 1 input files 3. 2_insider_trading_cleaning.do replication_package_final/do_files/3_returns.do · reads 2 input files 4. 3_returns.do replication_package_final/do_files/4_building_master.do 5. 4_building_master.do replication_package_final/do_files/5_main_results.do · reads 1 input files · 7 estimations 6. 5_main_results.do 7 est.replication_package_final/do_files/6_pre_post_sox_cleaning.do · reads 1 input files 7. 6_pre_post_sox_cleaning.do replication_package_final/do_files/7_pre_post_sox_results.do · reads 1 input files · 5 estimations 8. 7_pre_post_sox_results.do 5 est.Regression coefficients different ns.m 9. Regression coefficients different ns.m Regression coefficients.m 10. Regression coefficients.m
  1. 1.replication_package_final/do_files/0_master_code.do master script
  2. 2.replication_package_final/do_files/1_short_sales_markit.do run by replication_package_final/do_files/0_master_code.do line 48 15 merges ·
    reads what 6_pre_post_sox_cleaning.do wrote
    writes SHSdata&EAdate2006-2017_LONG_forPub.dta → read by 5_main_results.do
    writes SHSdata&EAdate2006-2017_LONG_forgraphs.dta → read by 5_main_results.do
    writes SHSdata&EAdate2006-2017_WIDE_forPub.dta → read by 4_building_master.do
    writes crsp_comp_merged_depurated.dta → read by 2_insider_trading_cleaning.do, 3_returns.do, 4_building_master.do, 6_pre_post_sox_cleaning.do
  3. 3.replication_package_final/do_files/2_insider_trading_cleaning.do run by replication_package_final/do_files/0_master_code.do line 51 reads 1 input file · 3 merges ·
    reads what 1_short_sales_markit.do wrote
    writes insiders_exB_final.dta → read by 4_building_master.do
    writes insiders_exB_trandate.dta → read by 5_main_results.do, 6_pre_post_sox_cleaning.do
    writes (not read again): insiders_exB_collap_by_trandate.dta
  4. 4.replication_package_final/do_files/3_returns.do run by replication_package_final/do_files/0_master_code.do line 54 reads 2 input files · 4 merges ·
    reads what 1_short_sales_markit.do, 6_pre_post_sox_cleaning.do wrote
    writes ARsmb_RDQ_dailyALL.dta → read by 4_building_master.do, 7_pre_post_sox_results.do
    writes (not read again): ARsmb_RDQ_daily`i'.dta
  5. 5.replication_package_final/do_files/4_building_master.do run by replication_package_final/do_files/0_master_code.do line 57 3 merges ·
    reads what 1_short_sales_markit.do, 2_insider_trading_cleaning.do, 3_returns.do wrote
    writes master_dataset_1.dta → read by 5_main_results.do
  6. 6.replication_package_final/do_files/5_main_results.do run by replication_package_final/do_files/0_master_code.do line 60 reads 1 input file · 4 merges · 7 estimations
    reads what 1_short_sales_markit.do, 2_insider_trading_cleaning.do, 4_building_master.do wrote
  7. 7.replication_package_final/do_files/6_pre_post_sox_cleaning.do run by replication_package_final/do_files/0_master_code.do line 63 reads 1 input file · 4 merges ·
    reads what 1_short_sales_markit.do, 2_insider_trading_cleaning.do wrote
    writes Master_shortint_compust_1980-2017_byEAdate.dta → read by 7_pre_post_sox_results.do
    writes crsp_comp_daily_1983_2017.dta → read by 3_returns.do
    writes crsp_comp_merged.dta → read by 1_short_sales_markit.do
    writes (not read again): Master_shortint_compustat_1980-2017.dta
  8. 8.replication_package_final/do_files/7_pre_post_sox_results.do run by replication_package_final/do_files/0_master_code.do line 66 reads 1 input file · 2 merges · 5 estimations
    reads what 3_returns.do, 6_pre_post_sox_cleaning.do wrote
  9. 9.Regression coefficients different ns.m
    writes (not read again): Output_ns.xls
  10. 10.Regression coefficients.m
    writes (not read again): Output.xls

3 · Merges — 24 joins, 23 followed by a check of the merge result; 11 appends

JoinsHowOn keysCheck that followsWhere
sellside`v'_dep ← crsp_comp_merged_depurated merge m:m cusip rdq drop if _merge==2
1_short_sales_markit.do:94
replication_package_final/do_files/1_short_sales_markit.do, line 94 merge m:m cusip rdq using "$processed_data\crsp_comp_merged_depurated.dta", keepusing(ea_date lpermno)
sellside`v'_dep ← ecount`v' merge m:m cusip keep if _merge==3
1_short_sales_markit.do:116
replication_package_final/do_files/1_short_sales_markit.do, line 116 merge m:m cusip using "$processed_data\Ecount`v'.dta"
ss`v' ← event_dates`v' merge m:m cusip set keep if _merge==3
1_short_sales_markit.do:137
replication_package_final/do_files/1_short_sales_markit.do, line 137 merge m:m cusip set using "$processed_data\Event_dates`v'.dta", keepusing(rdq)
ss2006final ← crsp_comp_merged_depurated merge m:m cusip rdq drop if _merge==2
1_short_sales_markit.do:183
replication_package_final/do_files/1_short_sales_markit.do, line 183 merge m:m cusip rdq using "$processed_data\crsp_comp_merged_depurated.dta", keepusing(cshoq)
ins_sales ← ins_purch merge m:m cusip8 trandate drop _merge
2_insider_trading_cleaning.do:109
replication_package_final/do_files/2_insider_trading_cleaning.do, line 109 merge m:m cusip8 trandate using "$processed_data\ins_purch.dta"
ins_sales ← crsp_comp_merged_depurated merge m:m cusip8 datacqtr drop if _merge==2
2_insider_trading_cleaning.do:146
replication_package_final/do_files/2_insider_trading_cleaning.do, line 146 merge m:m cusip8 datacqtr using "$processed_data\crsp_comp_merged_depurated.dta", keepusing(rdq_4 rdq_3 rdq_2 rdq_1 rdq rdq1 rdq2 rdq3 rdq4)
insiders_exb_collap_by_trandate ← crsp_comp_merged_depurated merge m:m cusip8 rdq drop if _merge==2
2_insider_trading_cleaning.do:275
replication_package_final/do_files/2_insider_trading_cleaning.do, line 275 merge m:m cusip8 rdq using "$processed_data\crsp_comp_merged_depurated.dta", keepusing(cshoq)
crsp_comp_daily_1983_2017 ← crsp_comp_merged_depurated merge m:m lpermno datacqtr drop if _merge==2
3_returns.do:57
replication_package_final/do_files/3_returns.do, line 57 merge m:m lpermno datacqtr using "$processed_data\crsp_comp_merged_depurated.dta", keepusing(ceqq rdq cshoq)
crsp_comp_daily_1983_2017 ← 25_portfolios_5x5(vw) merge m:m date drop if _merge==2
3_returns.do:112
replication_package_final/do_files/3_returns.do, line 112 merge m:m date using "$raw_data\25_Portfolios_5x5(VW).dta"
crsp_comp_daily_1983_2017 ← f-f_research_5_factors merge m:m date drop if _merge==2
3_returns.do:124
replication_package_final/do_files/3_returns.do, line 124 merge m:m date using "$raw_data\F-F_Research_5_factors.dta"
crsp_comp_daily_1983_2017 ← crsp_comp_merged_depurated merge m:m lpermno rdq drop if _merge==2
3_returns.do:134
replication_package_final/do_files/3_returns.do, line 134 merge m:m lpermno rdq using "$processed_data\crsp_comp_merged_depurated.dta", keepusing(ea_date)
crsp_comp_merged_depurated ← shsdata&eadate2006-2017_wide_forpub merge m:m cusip rdq keep if _merge==3
4_building_master.do:39
replication_package_final/do_files/4_building_master.do, line 39 merge m:m cusip rdq using "$processed_data\SHSdata&EAdate2006-2017_WIDE_forPub.dta"

4 · The sample — 58 keep/drop steps, 52 variables winsorized or trimmed

Filters, by kind
time period ×2
  • keep if year>=2006 & year<=2017
    4_building_master.do:36
    replication_package_final/do_files/4_building_master.do, line 36 keep if year>=2006 & year<=2017 // sample period (Markit coverage)
  • drop if year==2006 & month <7
    4_building_master.do:59
    replication_package_final/do_files/4_building_master.do, line 59 drop if year==2006 & month <7
value ranges ×5
  • keep if dif_ea>=-30 & dif_ea<=30
    1_short_sales_markit.do:146
    replication_package_final/do_files/1_short_sales_markit.do, line 146 keep if dif_ea>=-30 & dif_ea<=30 // +/-30 observations window
  • drop if dif_ea_wdays<-100
    2_insider_trading_cleaning.do:267
    replication_package_final/do_files/2_insider_trading_cleaning.do, line 267 drop if dif_ea_wdays<-100
  • drop if Nobs<=10
    3_returns.do:80
    replication_package_final/do_files/3_returns.do, line 80 drop if Nobs<=10
  • keep if id >=`i'+1-50 & id <=`i'
    3_returns.do:171
    replication_package_final/do_files/3_returns.do, line 171 keep if id >=`i'+1-50 & id <=`i'
  • keep if dif_ea>=-14 & dif_ea<=14
    5_main_results.do:237
    replication_package_final/do_files/5_main_results.do, line 237 keep if dif_ea>=-14 & dif_ea<=14
category values ×8
  • keep if Market_Area=="US Equity (Others)" | Market_Area=="US Equity (RUSSELL 2000)" | Market_Area=="US Equity (SP500)"
    1_short_sales_markit.do:87
    replication_package_final/do_files/1_short_sales_markit.do, line 87 keep if Market_Area=="US Equity (Others)" | Market_Area=="US Equity (RUSSELL 2000)" | Market_Area=="US Equity (SP500)"
  • keep if Record_Type==1
    1_short_sales_markit.do:88
    replication_package_final/do_files/1_short_sales_markit.do, line 88 keep if Record_Type==1
  • keep if trancode == "P" | trancode == "S"
    2_insider_trading_cleaning.do:41
    replication_package_final/do_files/2_insider_trading_cleaning.do, line 41 keep if trancode == "P" | trancode == "S"
  • drop if rolecode1=="B"
    2_insider_trading_cleaning.do:53
    replication_package_final/do_files/2_insider_trading_cleaning.do, line 53 drop if rolecode1=="B"
  • drop if rolecode1=="BC"
    2_insider_trading_cleaning.do:54
    replication_package_final/do_files/2_insider_trading_cleaning.do, line 54 drop if rolecode1=="BC"
  • drop if rolecode1=="BT"
    2_insider_trading_cleaning.do:55
    replication_package_final/do_files/2_insider_trading_cleaning.do, line 55 drop if rolecode1=="BT"
  • keep if trancode=="S"
    2_insider_trading_cleaning.do:63
    replication_package_final/do_files/2_insider_trading_cleaning.do, line 63 keep if trancode=="S"
  • keep if trancode=="P"
    2_insider_trading_cleaning.do:86
    replication_package_final/do_files/2_insider_trading_cleaning.do, line 86 keep if trancode=="P"
indicator subsets ×10
  • drop if tag==0
    1_short_sales_markit.do:209
    replication_package_final/do_files/1_short_sales_markit.do, line 209 drop if tag==0 // keep one row per stock-event-day
  • drop if tag==0
    4_building_master.do:122
    replication_package_final/do_files/4_building_master.do, line 122 drop if tag==0
  • drop if tag==0
    4_building_master.do:133
    replication_package_final/do_files/4_building_master.do, line 133 drop if tag==0
  • drop if tag==0
    6_pre_post_sox_cleaning.do:44
    replication_package_final/do_files/6_pre_post_sox_cleaning.do, line 44 drop if tag==0
  • drop if tag==0
    6_pre_post_sox_cleaning.do:66
    replication_package_final/do_files/6_pre_post_sox_cleaning.do, line 66 drop if tag==0
  • drop if tag==0
    6_pre_post_sox_cleaning.do:86
    replication_package_final/do_files/6_pre_post_sox_cleaning.do, line 86 drop if tag==0
  • keep if win==1
    6_pre_post_sox_cleaning.do:164
    replication_package_final/do_files/6_pre_post_sox_cleaning.do, line 164 keep if win==1
  • drop if tag==0
    6_pre_post_sox_cleaning.do:255
    replication_package_final/do_files/6_pre_post_sox_cleaning.do, line 255 drop if tag==0
  • first 8 of 10
missing values ×11
  • drop if rdq==.
    1_short_sales_markit.do:51
    replication_package_final/do_files/1_short_sales_markit.do, line 51 drop if rdq==.
  • keep if eadate !=.
    1_short_sales_markit.do:100
    replication_package_final/do_files/1_short_sales_markit.do, line 100 keep if eadate !=. // keep EA days only
  • drop if cusip8==""
    2_insider_trading_cleaning.do:46
    replication_package_final/do_files/2_insider_trading_cleaning.do, line 46 drop if cusip8==""
  • drop if trandate==.
    2_insider_trading_cleaning.do:209
    replication_package_final/do_files/2_insider_trading_cleaning.do, line 209 drop if trandate==.
  • drop if ewindow ==.
    3_returns.do:181
    replication_package_final/do_files/3_returns.do, line 181 drop if ewindow ==.
  • keep if evdate !=.
    3_returns.do:237
    replication_package_final/do_files/3_returns.do, line 237 keep if evdate !=. // one row per firm-EA event
  • drop if date==.
    5_main_results.do:270
    replication_package_final/do_files/5_main_results.do, line 270 drop if date==.
  • drop if rdq==.
    6_pre_post_sox_cleaning.do:60
    replication_package_final/do_files/6_pre_post_sox_cleaning.do, line 60 drop if rdq==.
  • first 8 of 11
drops after a merge (_merge) ×22
  • drop if _merge==2
    1_short_sales_markit.do:95
    replication_package_final/do_files/1_short_sales_markit.do, line 95 drop if _merge==2
  • keep if _merge==3
    1_short_sales_markit.do:118
    replication_package_final/do_files/1_short_sales_markit.do, line 118 keep if _merge==3
  • keep if _merge==3
    1_short_sales_markit.do:138
    replication_package_final/do_files/1_short_sales_markit.do, line 138 keep if _merge==3
  • drop if _merge==2
    1_short_sales_markit.do:184
    replication_package_final/do_files/1_short_sales_markit.do, line 184 drop if _merge==2
  • drop if _merge==2
    2_insider_trading_cleaning.do:147
    replication_package_final/do_files/2_insider_trading_cleaning.do, line 147 drop if _merge==2
  • drop if _merge==2
    2_insider_trading_cleaning.do:276
    replication_package_final/do_files/2_insider_trading_cleaning.do, line 276 drop if _merge==2
  • drop if _merge==2
    3_returns.do:58
    replication_package_final/do_files/3_returns.do, line 58 drop if _merge==2
  • drop if _merge==2
    3_returns.do:113
    replication_package_final/do_files/3_returns.do, line 113 drop if _merge==2
  • first 8 of 22
Outliers
winsorize at 1/99 · 51 variables
RelITshares_s RelITshares_p trade_value_adj_s trade_value_adj_p shares_adj_s shares_adj_p RelITshares_s* RelITshares_p* trade_value_adj_s* trade_value_adj_p* mktcap_crsp size +39
2_insider_trading_cleaning.do:300
replication_package_final/do_files/2_insider_trading_cleaning.do, line 300 winsor2 RelITshares_s RelITshares_p trade_value_adj_s trade_value_adj_p shares_adj_s shares_adj_p
4_building_master.do:55
replication_package_final/do_files/4_building_master.do, line 55 winsor2 RelITshares_s* RelITshares_p* trade_value_adj_s* trade_value_adj_p*
4_building_master.do:76
replication_package_final/do_files/4_building_master.do, line 76 winsor2 mktcap_crsp
4_building_master.do:97
replication_package_final/do_files/4_building_master.do, line 97 winsor2 size btomkt epspxq_4 epspxq_3 epspxq_2 epspxq_1 epspxq0 epspxq1 epspxq2 epspxq3 epspxq4
winsorize at 0/99 · 1 variable
dif_ea
2_insider_trading_cleaning.do:264
replication_package_final/do_files/2_insider_trading_cleaning.do, line 264 winsor2 dif_ea, cuts(0 99)
Missing values
set to zero ×88
  • rel_shares_adj_s_0_5_w → 0
    7_pre_post_sox_results.do:108
    replication_package_final/do_files/7_pre_post_sox_results.do, line 108 replace rel_shares_adj_s`v'_w=0 if rel_shares_adj_s`v'_w==.
  • rel_shares_adj_s_0_20_w → 0
    7_pre_post_sox_results.do:108
    replication_package_final/do_files/7_pre_post_sox_results.do, line 108 replace rel_shares_adj_s`v'_w=0 if rel_shares_adj_s`v'_w==.
  • rel_shares_adj_p_0_5_w → 0
    7_pre_post_sox_results.do:109
    replication_package_final/do_files/7_pre_post_sox_results.do, line 109 replace rel_shares_adj_p`v'_w=0 if rel_shares_adj_p`v'_w==.
  • rel_shares_adj_p_0_20_w → 0
    7_pre_post_sox_results.do:109
    replication_package_final/do_files/7_pre_post_sox_results.do, line 109 replace rel_shares_adj_p`v'_w=0 if rel_shares_adj_p`v'_w==.
  • net_sales_0_5 → 0
    7_pre_post_sox_results.do:124
    replication_package_final/do_files/7_pre_post_sox_results.do, line 124 replace net_sales`v'=0 if net_sales`v'==.
  • net_sales_0_20 → 0
    7_pre_post_sox_results.do:124
    replication_package_final/do_files/7_pre_post_sox_results.do, line 124 replace net_sales`v'=0 if net_sales`v'==.
filled with a value ×14
  • qnq_size_w → qn
    3_returns.do:100
    replication_package_final/do_files/3_returns.do, line 100 replace qnq_`var' = qn if qnq_`var'==.
  • qnq_btomkt_w → qn
    3_returns.do:100
    replication_package_final/do_files/3_returns.do, line 100 replace qnq_`var' = qn if qnq_`var'==.
  • rdq → rdq2
    1_short_sales_markit.do:225
    replication_package_final/do_files/1_short_sales_markit.do, line 225 replace rdq=rdq2 if rdq==.
  • cldate_bc → cldate_bc2
    2_insider_trading_cleaning.do:231
    replication_package_final/do_files/2_insider_trading_cleaning.do, line 231 replace cldate_bc=cldate_bc2 if cldate_bc==. & cldate_bc2!=.
  • trandate_bc → trandate_bc2
    2_insider_trading_cleaning.do:236
    replication_package_final/do_files/2_insider_trading_cleaning.do, line 236 replace trandate_bc=trandate_bc2 if trandate_bc==. & trandate_bc2!=.
  • cldate_bc → cldate_bc2
    2_insider_trading_cleaning.do:242
    replication_package_final/do_files/2_insider_trading_cleaning.do, line 242 replace cldate_bc=cldate_bc2 if cldate_bc==. & cldate_bc2!=.
dropped ×10
  • 3_returns.do:181
    replication_package_final/do_files/3_returns.do, line 181 drop if ewindow ==.
  • 3_returns.do:237
    replication_package_final/do_files/3_returns.do, line 237 keep if evdate !=. // one row per firm-EA event
  • 1_short_sales_markit.do:51
    replication_package_final/do_files/1_short_sales_markit.do, line 51 drop if rdq==.
  • 1_short_sales_markit.do:100
    replication_package_final/do_files/1_short_sales_markit.do, line 100 keep if eadate !=. // keep EA days only
  • 2_insider_trading_cleaning.do:209
    replication_package_final/do_files/2_insider_trading_cleaning.do, line 209 drop if trandate==.
  • 6_pre_post_sox_cleaning.do:60
    replication_package_final/do_files/6_pre_post_sox_cleaning.do, line 60 drop if rdq==.
interpolated / carried forward ×6
  • 1_short_sales_markit.do:217
    replication_package_final/do_files/1_short_sales_markit.do, line 217 tsfill, full // complete 0..60 grid per event
  • 6_pre_post_sox_cleaning.do:89
    replication_package_final/do_files/6_pre_post_sox_cleaning.do, line 89 tsfill
  • 6_pre_post_sox_cleaning.do:95
    replication_package_final/do_files/6_pre_post_sox_cleaning.do, line 95 bysort cusip_id: carryforward rdq, gen(rdq_adj)
  • 6_pre_post_sox_cleaning.do:175
    replication_package_final/do_files/6_pre_post_sox_cleaning.do, line 175 bysort cusip8 ( negdate ): carryforward shortint if shortintadj , gen(shortint2) back
  • 6_pre_post_sox_cleaning.do:176
    replication_package_final/do_files/6_pre_post_sox_cleaning.do, line 176 bysort cusip8 ( negdate ): carryforward shortintadj if shortint , gen(shortintadj2) back
  • 6_pre_post_sox_cleaning.do:260
    replication_package_final/do_files/6_pre_post_sox_cleaning.do, line 260 by cusip8_id: ipolate shortintadj date, gen(i_shortintadj)
common sample across variables (listwise) ×3
  • 7_pre_post_sox_results.do:279
    replication_package_final/do_files/7_pre_post_sox_results.do, line 279 gen reg_sample_all=e(sample)
  • 7_pre_post_sox_results.do:281
    replication_package_final/do_files/7_pre_post_sox_results.do, line 281 gen reg_sample_presox=e(sample)
  • 7_pre_post_sox_results.do:283
    replication_package_final/do_files/7_pre_post_sox_results.do, line 283 gen reg_sample_postsox=e(sample)

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

Standard measures computed here: Log Market Cap (size
3_returns.do:65
replication_package_final/do_files/3_returns.do, line 65 gen size = ln(mktcap)
), Return on Assets (ROA) (roa
4_building_master.do:102
replication_package_final/do_files/4_building_master.do, line 102 gen roa = ibq/atq
)
VariableUsed in models asBuilt by
BHARwsize_bm_adj_6_46_w outcome in 3 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
Netsales_0_5_neg_bp outcome in 1 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
Netsales_0_5_neg_bp_w outcome in 1 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
Netsales_0_5_pos_bp outcome in 1 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
Netsales_0_5_pos_bp_w outcome in 1 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
BHARwsize_bm_adj_1_1_w regressor in 10 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
BHARwsize_bm_adj_252_2_w regressor in 10 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
eps_ch_w regressor in 10 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
Ssbyqxnets_0_5 regressor in 7
Ssbyqxnets_0_5 = 1 (gen)
4_building_master.do:218
replication_package_final/do_files/4_building_master.do, line 218 gen Ssbyqxnets_0_5=1 if Netsales_0_5_cat==1 & qnq_l4_OnloanQ1daymean0_5_w==1
Ssbyqxnets_0_5 = 2 (replace)
4_building_master.do:219
replication_package_final/do_files/4_building_master.do, line 219 replace Ssbyqxnets_0_5=2 if Netsales_0_5_cat==1 & qnq_l4_OnloanQ1daymean0_5_w==5
Ssbyqxnets_0_5 = 3 (replace)
4_building_master.do:220
replication_package_final/do_files/4_building_master.do, line 220 replace Ssbyqxnets_0_5=3 if Netsales_0_5_cat==2 & qnq_l4_OnloanQ1daymean0_5_w==1
+6 more statements set it
fyear_qtr regressor in 6
fyear_qtr = group( fyearq fqtr) (egen group)
4_building_master.do:117
replication_package_final/do_files/4_building_master.do, line 117 egen fyear_qtr=group( fyearq fqtr)
fyear_qtr = group( fyearq fqtr) (egen group)
7_pre_post_sox_results.do:93
replication_package_final/do_files/7_pre_post_sox_results.do, line 93 egen fyear_qtr=group( fyearq fqtr) // fiscal year-quarter time index
SOX regressor in 2
SOX = 1 (gen)
6_pre_post_sox_cleaning.do:287
replication_package_final/do_files/6_pre_post_sox_cleaning.do, line 287 gen SOX=1 if year>=2003
SOX = 1 (replace)
6_pre_post_sox_cleaning.do:288
replication_package_final/do_files/6_pre_post_sox_cleaning.do, line 288 replace SOX=1 if year==2002 & month>=8
SOX = 0 (replace)
6_pre_post_sox_cleaning.do:289
replication_package_final/do_files/6_pre_post_sox_cleaning.do, line 289 replace SOX=0 if SOX==.
Netsales_0_5_cat regressor in 1 no statement builds it — a column of an input file, or made by a reshape/merge we do not trace
ssh regressor in 1
ssh = 1 (gen)
4_building_master.do:185
replication_package_final/do_files/4_building_master.do, line 185 gen ssh= 1 if qnq_l4_OnloanQ1daymean0_5_w==5
ssh = 0 (replace)
4_building_master.do:186
replication_package_final/do_files/4_building_master.do, line 186 replace ssh= 0 if qnq_l4_OnloanQ1daymean0_5_w!=5 & qnq_l4_OnloanQ1daymean0_5_w!=.
ssl regressor in 1
ssl = 1 (gen)
4_building_master.do:183
replication_package_final/do_files/4_building_master.do, line 183 gen ssl= 1 if qnq_l4_OnloanQ1daymean0_5_w==1
ssl = 0 (replace)
4_building_master.do:184
replication_package_final/do_files/4_building_master.do, line 184 replace ssl= 0 if qnq_l4_OnloanQ1daymean0_5_w!=1 & qnq_l4_OnloanQ1daymean0_5_w!=.

6 · Models, by the table or figure they feed — 12 estimations, 9 traced into 4 exhibits

Table 3 · 1 estimation → Table_3_forp.xls
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
xtreg
panel fe
BHARwsize_bm_adj`var'_w i.Netsales_0_5_cat ssh ssl BHARwsize_bm_adj_252_2_w BHARwsize_bm_adj_1_1_w eps_ch_w i.fyear_qtr — cluster: lpermno
5_main_results.do:65
replication_package_final/do_files/5_main_results.do, line 65 quietly xtreg BHARwsize_bm_adj`var'_w i.Netsales_0_5_cat ssh ssl BHARwsize_bm_adj_252_2_w BHARwsize_bm_adj_1_1_w eps_ch_w i.fyear_qtr, fe r cl(lpermno)
run 5× in a loop (var=_6_26; var=_6_46; var=_6_66…)
written at 5_main_results.do:66
Table 4 · 2 estimations → Table_4_A_forp.xls, Table_4_B_forp.xls
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
xtreg
panel fe
BHARwsize_bm_adj`var'_w i.Ssbyqxnets_0_5 BHARwsize_bm_adj_252_2_w BHARwsize_bm_adj_1_1_w eps_ch_w i.fyear_qtr — cluster: lpermno
5_main_results.do:73
replication_package_final/do_files/5_main_results.do, line 73 quietly xtreg BHARwsize_bm_adj`var'_w i.Ssbyqxnets_0_5 BHARwsize_bm_adj_252_2_w BHARwsize_bm_adj_1_1_w eps_ch_w i.fyear_qtr, fe r cl(lpermno)
run 5× in a loop (var=_6_26; var=_6_46; var=_6_66…)
written at 5_main_results.do:74
xtreg
panel fe
const_dprofits_adj_nets`var'_w i.Ssbyqxnets_0_5 — default
5_main_results.do:117
replication_package_final/do_files/5_main_results.do, line 117 quietly xtreg const_dprofits_adj_nets`var'_w i.Ssbyqxnets_0_5 if l4_OnloanQ1daymean0_5_w !=. & BHARwsize_bm_adj_252_2_w !=. & BHARwsize_bm_adj_1_1 !=. & eps_ch_w !=. & fyear_qtr !=.
run 5× in a loop (var=_6_26; var=_6_46; var=_6_66…)
written at 5_main_results.do:118
Table 5 · 4 estimations → Table_5_panel_B.xls
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
xtreg
panel fe
Netsales_0_5_pos_bp i.Ssxepsbyq_0_5_`v' BHARwsize_bm_adj_1_1_w BHARwsize_bm_adj_252_2_w eps_ch_w i.fyear_qtr — cluster: lpermno
5_main_results.do:189
replication_package_final/do_files/5_main_results.do, line 189 quietly xtreg Netsales_0_5_pos_bp i.Ssxepsbyq_0_5_`v' BHARwsize_bm_adj_1_1_w BHARwsize_bm_adj_252_2_w eps_ch_w i.fyear_qtr, fe vce(cl lpermno)
run 1× in a loop (v=next4_earn_w)
written at 5_main_results.do:190
xtreg
panel fe
Netsales_0_5_neg_bp i.Ssxepsbyq_0_5_`v' BHARwsize_bm_adj_1_1_w BHARwsize_bm_adj_252_2_w eps_ch_w i.fyear_qtr — cluster: lpermno
5_main_results.do:191
replication_package_final/do_files/5_main_results.do, line 191 quietly xtreg Netsales_0_5_neg_bp i.Ssxepsbyq_0_5_`v' BHARwsize_bm_adj_1_1_w BHARwsize_bm_adj_252_2_w eps_ch_w i.fyear_qtr, fe vce(cl lpermno)
run 1× in a loop (v=next4_earn_w)
written at 5_main_results.do:192
xtreg
panel fe
Netsales_0_5_pos_bp_w i.Ssxepsbyq_0_5_`v' BHARwsize_bm_adj_1_1_w BHARwsize_bm_adj_252_2_w eps_ch_w i.fyear_qtr — cluster: lpermno
5_main_results.do:196
replication_package_final/do_files/5_main_results.do, line 196 quietly xtreg Netsales_0_5_pos_bp_w i.Ssxepsbyq_0_5_`v' BHARwsize_bm_adj_1_1_w BHARwsize_bm_adj_252_2_w eps_ch_w i.fyear_qtr, fe vce(cl lpermno)
run 1× in a loop (v=next4_earn_w)
written at 5_main_results.do:197
xtreg
panel fe
Netsales_0_5_neg_bp_w i.Ssxepsbyq_0_5_`v' BHARwsize_bm_adj_1_1_w BHARwsize_bm_adj_252_2_w eps_ch_w i.fyear_qtr — cluster: lpermno
5_main_results.do:198
replication_package_final/do_files/5_main_results.do, line 198 quietly xtreg Netsales_0_5_neg_bp_w i.Ssxepsbyq_0_5_`v' BHARwsize_bm_adj_1_1_w BHARwsize_bm_adj_252_2_w eps_ch_w i.fyear_qtr, fe vce(cl lpermno)
run 1× in a loop (v=next4_earn_w)
written at 5_main_results.do:199
Table 7 · 2 estimations → Table_7_panel_A.xls, Table_7_panel_B.xls
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
BHARwsize_bm_adj`var'_w i.Ssbyqxnets_0_5##i.SOX BHARwsize_bm_adj_252_2_w BHARwsize_bm_adj_1_1_w eps_ch_w cusip, fyear_qtr cluster: cusip
7_pre_post_sox_results.do:309
replication_package_final/do_files/7_pre_post_sox_results.do, line 309 quietly reghdfe BHARwsize_bm_adj`var'_w i.Ssbyqxnets_0_5##i.SOX BHARwsize_bm_adj_252_2_w BHARwsize_bm_adj_1_1_w eps_ch_w , absorb(cusip fyear_qtr) vce(cl cusip)
run 5× in a loop (var=_6_26; var=_6_46; var=_6_66…)
written at 7_pre_post_sox_results.do:310
reg
ols
const_dprofits_adj_nets`var'_w i.Ssbyqxnets_0_5##i.SOX — default
7_pre_post_sox_results.do:320
replication_package_final/do_files/7_pre_post_sox_results.do, line 320 quietly reg const_dprofits_adj_nets`var'_w i.Ssbyqxnets_0_5##i.SOX if reg_sample_all==1
run 5× in a loop (var=_6_26; var=_6_46; var=_6_66…)
written at 7_pre_post_sox_results.do:321
Estimations not traced to a table or figure · 3
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reghdfe
panel fe
BHARwsize_bm_adj_6_46_w i.Ssbyqxnets_0_5 BHARwsize_bm_adj_252_2_w BHARwsize_bm_adj_1_1_w eps_ch_w cusip, fyear_qtr cluster: cusip
7_pre_post_sox_results.do:278
replication_package_final/do_files/7_pre_post_sox_results.do, line 278 quietly reghdfe BHARwsize_bm_adj_6_46_w i.Ssbyqxnets_0_5 BHARwsize_bm_adj_252_2_w BHARwsize_bm_adj_1_1_w eps_ch_w , absorb(cusip fyear_qtr) vce(cl cusip)
reghdfe
panel fe
BHARwsize_bm_adj_6_46_w i.Ssbyqxnets_0_5 BHARwsize_bm_adj_252_2_w BHARwsize_bm_adj_1_1_w eps_ch_w cusip, fyear_qtr cluster: cusip
7_pre_post_sox_results.do:280
replication_package_final/do_files/7_pre_post_sox_results.do, line 280 quietly reghdfe BHARwsize_bm_adj_6_46_w i.Ssbyqxnets_0_5 BHARwsize_bm_adj_252_2_w BHARwsize_bm_adj_1_1_w eps_ch_w if SOX==0 , absorb(cusip fyear_qtr) vce(cl cusip)
reghdfe
panel fe
BHARwsize_bm_adj_6_46_w i.Ssbyqxnets_0_5 BHARwsize_bm_adj_252_2_w BHARwsize_bm_adj_1_1_w eps_ch_w cusip, fyear_qtr cluster: cusip
7_pre_post_sox_results.do:282
replication_package_final/do_files/7_pre_post_sox_results.do, line 282 quietly reghdfe BHARwsize_bm_adj_6_46_w i.Ssbyqxnets_0_5 BHARwsize_bm_adj_252_2_w BHARwsize_bm_adj_1_1_w eps_ch_w if SOX==1 , absorb(cusip fyear_qtr) vce(cl cusip)
Tables and figures the code writes: Table 3 Table_3_forp.xls
5_main_results.do:66
replication_package_final/do_files/5_main_results.do, line 66 outreg2 using "$results\Table_3_forp.xls", append label dec(3) drop(i.fyear_qtr) ctitle(BHAR, size&bm adj, `var') addtext(Firm FE, yes, Year-Quarter FE, yes, cluster se by firm, yes)
· Table 4 Table_4_A_forp.xls
5_main_results.do:74
replication_package_final/do_files/5_main_results.do, line 74 outreg2 using "$results\Table_4_A_forp.xls", append label dec(3) drop(i.fyear_qtr) ctitle(BHAR, size&bm adj, `var') addtext(Firm FE, yes, Year-Quarter FE, yes, cluster se by firm, yes)
· Table 4 Table_4_B_forp.xls
5_main_results.do:118
replication_package_final/do_files/5_main_results.do, line 118 outreg2 using "$results\Table_4_B_forp.xls", append dec(3) drop(0.Ssbyqxnets_0_5 7.Ssbyqxnets_0_5 8.Ssbyqxnets_0_5) label ctitle(DP_NetS, `var') nose nocons
· Table 5 Table_5_panel_B.xls
5_main_results.do:190
replication_package_final/do_files/5_main_results.do, line 190 outreg2 using "$results\Table_5_panel_B.xls", append dec(5) drop(i.fyear_qtr) label ctitle(`v', nispos ) addtext(Firm FE, yes, Quarter FE, yes, cluster se by firm, yes)
· Table 7 Table_7_panel_A.xls
7_pre_post_sox_results.do:310
replication_package_final/do_files/7_pre_post_sox_results.do, line 310 outreg2 using "$results\Table_7_panel_A.xls", append label dec(3) ctitle(BHARs&Bm, All, `var') drop(0.Ssbyqxnets_0_5) addtext(Firm FE, yes, Quarter FE, yes, cluster se by firm, yes)
· Table 7 Table_7_panel_B.xls
7_pre_post_sox_results.do:321
replication_package_final/do_files/7_pre_post_sox_results.do, line 321 outreg2 using "$results\Table_7_panel_B.xls", append dec(3) label ctitle(DollarP_net, `var')
· Figure 0 Figure0.pdf
5_main_results.do:243
replication_package_final/do_files/5_main_results.do, line 243 graph export "$results\Figure0.pdf", as(pdf) replace
· Figure 0 Figure0_1.pdf
5_main_results.do:248
replication_package_final/do_files/5_main_results.do, line 248 graph export "$results\Figure0_1.pdf", as(pdf) replace
· Figure 1 Figure1.pdf
5_main_results.do:253
replication_package_final/do_files/5_main_results.do, line 253 graph export "$results\Figure1.pdf", as(pdf) replace
· Figure 2 Figure2_is&ssl.pdf
5_main_results.do:310
replication_package_final/do_files/5_main_results.do, line 310 graph export "$results\Figure2_is&ssl.pdf", as(pdf) replace
· Figure 2 Figure2_is&ssh.pdf
5_main_results.do:314
replication_package_final/do_files/5_main_results.do, line 314 graph export "$results\Figure2_is&ssh.pdf", as(pdf) replace
· Figure 2 Figure2_ip&ssl.pdf
5_main_results.do:318
replication_package_final/do_files/5_main_results.do, line 318 graph export "$results\Figure2_ip&ssl.pdf", as(pdf) replace
· Figure 2 Figure2_ip&ssh.pdf
5_main_results.do:322
replication_package_final/do_files/5_main_results.do, line 322 graph export "$results\Figure2_ip&ssh.pdf", as(pdf) replace
· Figure 2 Figure2_ip&ssm.pdf
5_main_results.do:326
replication_package_final/do_files/5_main_results.do, line 326 graph export "$results\Figure2_ip&ssm.pdf", as(pdf) replace
· Figure 2 Figure2_is&ssm.pdf
5_main_results.do:330
replication_package_final/do_files/5_main_results.do, line 330 graph export "$results\Figure2_is&ssm.pdf", as(pdf) replace

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

event-study plot 9
commandlayersvariables optionssaved aswhere
twoway
event-study plot
line + line + line y l4_OnloanQ1day100, Relshares_s0100, Relshares_p0100 x dif_ea xtitle days around earnings announcements · ytitle Relative numbers of shares shorted (%) · xline 0 · scheme s2mono · legend size(vsmall) label(1 rel ss) label(2 rel is) label(3 rel ip) Figure 0
Figure0.pdf
5_main_results.do:241
replication_package_final/do_files/5_main_results.do, line 241 twoway (line l4_OnloanQ1day100 dif_ea, sort) (line Relshares_s0100 dif_ea, sort yaxis(2)) (line Relshares_p0100 dif_ea, sort yaxis(2)) if dif_ea>=-14 & dif_ea<=14, ytitle(Relative numbers of shares shorted (%)) ytitle(, …
twoway
event-study plot
line + line y l4_OnloanQ1day100, Net_sales100 x dif_ea xtitle days around earnings announcements · ytitle Relative numbers of shares shorted (%) · xline 0 · scheme s2mono · legend size(vsmall) label(1 relss) label(2 nis) Figure 0
Figure0_1.pdf
5_main_results.do:246
replication_package_final/do_files/5_main_results.do, line 246 twoway (line l4_OnloanQ1day100 dif_ea, sort) (line Net_sales100 dif_ea, sort yaxis(2)) if dif_ea>=-14 & dif_ea<=14, ytitle(Relative numbers of shares shorted (%)) ytitle(, size(vsmall)) ylabel(, labsize(vsmall)) ylabel(, …
twoway
event-study plot
line + line + line y l4_OnloanQ1day100, Net_sales_pos100, Net_sales_neg100 x dif_ea xtitle days around earnings announcements · ytitle Relative numbers of shares shorted (%) · xline 0 · scheme s2mono · legend size(vsmall) label(1 relss) label(2 nispos) label(3 nisneg) Figure 1
Figure1.pdf
5_main_results.do:251
replication_package_final/do_files/5_main_results.do, line 251 twoway (line l4_OnloanQ1day100 dif_ea, sort) (line Net_sales_pos100 dif_ea, sort yaxis(2)) (line Net_sales_neg100 dif_ea, sort yaxis(2)) if dif_ea>=-14 & dif_ea<=14, ytitle(Relative numbers of shares shorted (%)) ytitle( …
twoway
event-study plot
line + line + line y l4_OnloanQ1day100, Net_sales_pos100, Net_sales_neg100 x dif_ea title is x ssl · xtitle days around earnings announcements · ytitle Relative numbers of shares shorted (%) · xline 0 · scheme s2mono · legend size(vsmall) label(1 relss) label(2 nispos) label(3 nisneg) Figure 2
Figure2_is&ssl.pdf
5_main_results.do:308
replication_package_final/do_files/5_main_results.do, line 308 twoway (line l4_OnloanQ1day100 dif_ea if Ssbyqxnets==3, sort) (line Net_sales_pos100 dif_ea if Ssbyqxnets==3, sort yaxis(2)) (line Net_sales_neg100 dif_ea if Ssbyqxnets==3, sort yaxis(2)) if dif_ea>=-14 & dif_ea<=14, tit …
twoway
event-study plot
line + line + line y l4_OnloanQ1day100, Net_sales_pos100, Net_sales_neg100 x dif_ea title is x ssh · xtitle days around earnings announcements · ytitle Relative numbers of shares shorted (%) · xline 0 · scheme s2mono · legend size(vsmall) label(1 relss) label(2 nispos) label(3 nisneg) Figure 2
Figure2_is&ssh.pdf
5_main_results.do:312
replication_package_final/do_files/5_main_results.do, line 312 twoway (line l4_OnloanQ1day100 dif_ea if Ssbyqxnets==4, sort) (line Net_sales_pos100 dif_ea if Ssbyqxnets==4, sort yaxis(2)) (line Net_sales_neg100 dif_ea if Ssbyqxnets==4, sort yaxis(2)) if dif_ea>=-14 & dif_ea<=14, tit …
twoway
event-study plot
line + line + line y l4_OnloanQ1day100, Net_sales_pos100, Net_sales_neg100 x dif_ea title ip x ssl · xtitle days around earnings announcements · ytitle Relative numbers of shares shorted (%) · xline 0 · scheme s2mono · legend size(vsmall) label(1 relss) label(2 nispos) label(3 nisneg) Figure 2
Figure2_ip&ssl.pdf
5_main_results.do:316
replication_package_final/do_files/5_main_results.do, line 316 twoway (line l4_OnloanQ1day100 dif_ea if Ssbyqxnets==1, sort) (line Net_sales_pos100 dif_ea if Ssbyqxnets==1, sort yaxis(2)) (line Net_sales_neg100 dif_ea if Ssbyqxnets==1, sort yaxis(2)) if dif_ea>=-14 & dif_ea<=14, tit …
twoway
event-study plot
line + line + line y l4_OnloanQ1day100, Net_sales_pos100, Net_sales_neg100 x dif_ea title ip x ssh · xtitle days around earnings announcements · ytitle Relative numbers of shares shorted (%) · xline 0 · scheme s2mono · legend size(vsmall) label(1 relss) label(2 nispos) label(3 nisneg) Figure 2
Figure2_ip&ssh.pdf
5_main_results.do:320
replication_package_final/do_files/5_main_results.do, line 320 twoway (line l4_OnloanQ1day100 dif_ea if Ssbyqxnets==2, sort) (line Net_sales_pos100 dif_ea if Ssbyqxnets==2, sort yaxis(2)) (line Net_sales_neg100 dif_ea if Ssbyqxnets==2, sort yaxis(2)) if dif_ea>=-14 & dif_ea<=14, tit …
twoway
event-study plot
line + line + line y l4_OnloanQ1day100, Net_sales_pos100, Net_sales_neg100 x dif_ea title ip x ssm · xtitle days around earnings announcements · ytitle Relative numbers of shares shorted (%) · xline 0 · scheme s2mono · legend size(vsmall) label(1 relss) label(2 nispos) label(3 nisneg) Figure 2
Figure2_ip&ssm.pdf
5_main_results.do:324
replication_package_final/do_files/5_main_results.do, line 324 twoway (line l4_OnloanQ1day100 dif_ea if Ssbyqxnets==5, sort) (line Net_sales_pos100 dif_ea if Ssbyqxnets==5, sort yaxis(2)) (line Net_sales_neg100 dif_ea if Ssbyqxnets==5, sort yaxis(2)) if dif_ea>=-14 & dif_ea<=14, tit …
twoway
event-study plot
line + line + line y l4_OnloanQ1day100, Net_sales_pos100, Net_sales_neg100 x dif_ea title is x ssm · xtitle days around earnings announcements · ytitle Relative numbers of shares shorted (%) · xline 0 · scheme s2mono · legend size(vsmall) label(1 relss) label(2 nispos) label(3 nisneg) Figure 2
Figure2_is&ssm.pdf
5_main_results.do:328
replication_package_final/do_files/5_main_results.do, line 328 twoway (line l4_OnloanQ1day100 dif_ea if Ssbyqxnets==6, sort) (line Net_sales_pos100 dif_ea if Ssbyqxnets==6, sort yaxis(2)) (line Net_sales_neg100 dif_ea if Ssbyqxnets==6, sort yaxis(2)) if dif_ea>=-14 & dif_ea<=14, tit …