Replication package 12445 · mendeley · 2022
· open the deposit
How the code gets from data to results
Blood in the water: The value of antitakeover provisions during market shocks
Code for: Blood in the water: The value of antitakeover provisions during market shocks Journal of Financial Economics 2022
7
scripts
82
input files
6
file hand-offs
226
merges
92
sample steps
180
estimations
1 · Data in — files the code reads and no script of the package writes
Datasets this package uses (item detector / README):
Compustat, Compustat North America Fundamentals Quarterly, Compustat North America (database), CRSP US Stock Database, ExecuComp, Kenneth French Data Library (Fama-French factors), I/B/E/S
CRSP US Stock Database
14 files
crsp.dsfSAS · read by 2 scriptsJFE ATP Value during Shocks.sas:4335
Data Files and Code/JFE ATP Value during Shocks.sas, line 4335 set crsp.dsf;Path\crsp_monthly_stock_2007Q1_2020Q1.dtaStata · read by 2 scriptsHoberg and Phillips Booms and Busts.sas:168
Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 168 proc import datafile='Path\crsp_monthly_stock_2007Q1_2020Q1.dta' out=crspe replace; run;crsp.ccmxpf_lnkhistSASRaw File Download.sas:69
Data Files and Code/Raw File Download.sas, line 69 data link; set crsp.ccmxpf_lnkhist; run;crsp.comphistSASRaw File Download.sas:98
Data Files and Code/Raw File Download.sas, line 98 set crsp.comphist;crsp.cst_histSASRaw File Download.sas:105
Data Files and Code/Raw File Download.sas, line 105 set crsp.cst_hist;crsp.msenamesSASRaw File Download.sas:64
Data Files and Code/Raw File Download.sas, line 64 set crsp.msenames;crsp.msfSASRaw File Download.sas:82
Data Files and Code/Raw File Download.sas, line 82 set crsp.msf;m.dsfSASJFE ATP Value during Shocks.sas:501
Data Files and Code/JFE ATP Value during Shocks.sas, line 501 set m.dsf;
6 more
m.dsfSASJFE ATP Value during Shocks.sas:1573
Data Files and Code/JFE ATP Value during Shocks.sas, line 1573 set m.dsf;m.msedelistSASJFE ATP Value during Shocks.sas:988
Data Files and Code/JFE ATP Value during Shocks.sas, line 988 data dlist; set m.msedelist; run;m.msenamesSASJFE ATP Value during Shocks.sas:68
Data Files and Code/JFE ATP Value during Shocks.sas, line 68 set m.msenames;m.msfSASJFE ATP Value during Shocks.sas:301
Data Files and Code/JFE ATP Value during Shocks.sas, line 301 set m.msf;m.msiSASJFE ATP Value during Shocks.sas:298
Data Files and Code/JFE ATP Value during Shocks.sas, line 298 data msi; set m.msi; run;Path\crsp_daily_stock_2017Q1_2020Q1.dtaStataJFE ATP Value during Shocks.sas:506
Data Files and Code/JFE ATP Value during Shocks.sas, line 506 proc import datafile='Path\crsp_daily_stock_2017Q1_2020Q1.dta' out=dsfe replace; run;
comp.anncompSASJFE ATP Value during Shocks.sas:3544
Data Files and Code/JFE ATP Value during Shocks.sas, line 3544 set comp.anncomp;comp.companySASRaw File Download.sas:117
Data Files and Code/Raw File Download.sas, line 117 set comp.company;comp.fundqSASRaw File Download.sas:45
Data Files and Code/Raw File Download.sas, line 45 set comp.fundq;comp.namesSASRaw File Download.sas:35
Data Files and Code/Raw File Download.sas, line 35 set comp.names;comp.wrds_seg_customerSASRaw File Download.sas:172
Data Files and Code/Raw File Download.sas, line 172 set comp.wrds_seg_customer;compd.fundaSASRaw File Download.sas:10
Data Files and Code/Raw File Download.sas, line 10 set compd.funda;m.fundaSASJFE ATP Value during Shocks.sas:7
Data Files and Code/JFE ATP Value during Shocks.sas, line 7 set m.funda;m.fundqSASJFE ATP Value during Shocks.sas:42
Data Files and Code/JFE ATP Value during Shocks.sas, line 42 set m.fundq;
SDC Platinum
3 files
Path\SDC Poison Pills.xlsxExcelJFE ATP Value during Shocks.sas:2883
Data Files and Code/JFE ATP Value during Shocks.sas, line 2883 proc import datafile='Path\SDC Poison Pills.xlsx' out=pill dbms=xlsx replace;Path\SDC Target Extra.xlsxExcelJFE ATP Value during Shocks.sas:1354
Data Files and Code/JFE ATP Value during Shocks.sas, line 1354 proc import datafile='Path\SDC Target Extra.xlsx' out=ex replace dbms=xlsx;Path\SDC Target Premium 12-19-2020.xlsxExcelJFE ATP Value during Shocks.sas:1349
Data Files and Code/JFE ATP Value during Shocks.sas, line 1349 proc import datafile='Path\SDC Target Premium 12-19-2020.xlsx' out=prem replace dbms=xlsx;
tfn.form144SASTR Insider Data.sas:263
Data Files and Code/TR Insider Data.sas, line 263 set tfn.form144;tfn.s34SASRaw File Download.sas:204
Data Files and Code/Raw File Download.sas, line 204 set tfn.s34;tfn.table1SASTR Insider Data.sas:18
Data Files and Code/TR Insider Data.sas, line 18 set tfn.table1;
CRSP/Compustat Merged (CCM)
1 file
m.ccmxpf_lnkhistSASJFE ATP Value during Shocks.sas:73
Data Files and Code/JFE ATP Value during Shocks.sas, line 73 set m.ccmxpf_lnkhist;
I/B/E/S
2 files
ibes.actu_epsusSASJFE ATP Value during Shocks.sas:4223
Data Files and Code/JFE ATP Value during Shocks.sas, line 4223 set ibes.actu_epsus;ibes.statsumu_epsusSASJFE ATP Value during Shocks.sas:4209
Data Files and Code/JFE ATP Value during Shocks.sas, line 4209 set ibes.statsumu_epsus;
MSCI ESG KLD STATS
1 file
m.kldSASJFE ATP Value during Shocks.sas:3803
Data Files and Code/JFE ATP Value during Shocks.sas, line 3803 data kld; set m.kld; run;
BoardEx
1 file
Path\Boardex Data.dtaStataJFE ATP Value during Shocks.sas:4542
Data Files and Code/JFE ATP Value during Shocks.sas, line 4542 proc import datafile='Path\Boardex Data.dta' out=bx replace;
Other input files
49 files
Path\CPI 2020 QTR.xlsxExcel · read by 2 scriptsHoberg and Phillips Booms and Busts.sas:121
Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 121 proc import datafile='Path\CPI 2020 QTR.xlsx' replace out=cpi dbms=xlsx;$Path\Governance and Business Cycle Final.dtaStataJFE ATP Value during Shocks Final.do:68
Data Files and Code/JFE ATP Value during Shocks Final.do, line 68 use "$Path\Governance and Business Cycle Final.dta", clear$Path\Governance and Merger Premiums Final.dtaStataJFE ATP Value during Shocks Final.do:399
Data Files and Code/JFE ATP Value during Shocks Final.do, line 399 use "$Path\Governance and Merger Premiums Final.dta", clear$Path\Graphs1.dtaStataJFE ATP Value during Shocks Final.do:46
Data Files and Code/JFE ATP Value during Shocks Final.do, line 46 use "$Path\Graphs1.dta", clear$Path\Graphs.dtaStataJFE ATP Value during Shocks Final.do:10
Data Files and Code/JFE ATP Value during Shocks Final.do, line 10 use "$Path\Graphs.dta", clear$Path\Matched Sample Final.dtaStataJFE ATP Value during Shocks Final.do:341
Data Files and Code/JFE ATP Value during Shocks Final.do, line 341 use "$Path\Matched Sample Final.dta", clear$Path\Pill & CB Match.dtaStataJFE ATP Value during Shocks Final.do:1035
Data Files and Code/JFE ATP Value during Shocks Final.do, line 1035 use "$Path\Pill & CB Match.dta", clear$Path\Pill Match.dtaStataJFE ATP Value during Shocks Final.do:1033
Data Files and Code/JFE ATP Value during Shocks Final.do, line 1033 use "$Path\Pill Match.dta", clear
41 more
$Path\Portfolio Regressions Final.dtaStataJFE ATP Value during Shocks Final.do:272
Data Files and Code/JFE ATP Value during Shocks Final.do, line 272 use "$Path\Portfolio Regressions Final.dta", clear$Path\Target Likelihood Final.dtaStataJFE ATP Value during Shocks Final.do:1665
Data Files and Code/JFE ATP Value during Shocks Final.do, line 1665 use "$Path\Target Likelihood Final.dta", clear$PathIn\Governance and Business Cycle Final.dtaStataClean Data Files of Excess Variables.do:9
Data Files and Code/Clean Data Files of Excess Variables.do, line 9 use "$PathIn\Governance and Business Cycle Final.dta", clear$PathIn\Portfolio Regressions Final.dtaStataClean Data Files of Excess Variables.do:21
Data Files and Code/Clean Data Files of Excess Variables.do, line 21 use "$PathIn\Portfolio Regressions Final.dta", clear$PathIn\Target Likelihood Final.dtaStataClean Data Files of Excess Variables.do:32
Data Files and Code/Clean Data Files of Excess Variables.do, line 32 use "$PathIn\Target Likelihood Final.dta", clearfrb.rates_dailySASRaw File Download.sas:233
Data Files and Code/Raw File Download.sas, line 233 set frb.rates_daily;frb.rates_monthlySASRaw File Download.sas:222
Data Files and Code/Raw File Download.sas, line 222 set frb.rates_monthly;m.auditfeesSASJFE ATP Value during Shocks.sas:2668
Data Files and Code/JFE ATP Value during Shocks.sas, line 2668 data audit; set m.auditfees; run;m.comphistSASJFE ATP Value during Shocks.sas:148
Data Files and Code/JFE ATP Value during Shocks.sas, line 148 set m.comphist;m.cst_histSASJFE ATP Value during Shocks.sas:153
Data Files and Code/JFE ATP Value during Shocks.sas, line 153 set m.cst_hist;m.factors_dailySASJFE ATP Value during Shocks.sas:3432
Data Files and Code/JFE ATP Value during Shocks.sas, line 3432 set m.factors_daily;m.kmvdefaultSASJFE ATP Value during Shocks.sas:556
Data Files and Code/JFE ATP Value during Shocks.sas, line 556 set m.kmvdefault;m.namesSASJFE ATP Value during Shocks.sas:26
Data Files and Code/JFE ATP Value during Shocks.sas, line 26 data names; set m.names; gvkeyn=gvkey*1; sicn=sic*1; run;m.sholderactSASJFE ATP Value during Shocks.sas:2591
Data Files and Code/JFE ATP Value during Shocks.sas, line 2591 data act; set m.sholderact; run;m.wciklink_gvkeySASJFE ATP Value during Shocks.sas:2603
Data Files and Code/JFE ATP Value during Shocks.sas, line 2603 data link; set m.wciklink_gvkey; run;Path\1997 Make IO.xlsxExcelJFE ATP Value during Shocks.sas:2022
Data Files and Code/JFE ATP Value during Shocks.sas, line 2022 proc import datafile='Path\1997 Make IO.xlsx' out=make dbms=xlsx replace;Path\1997 Use IO.xlsxExcelJFE ATP Value during Shocks.sas:2011
Data Files and Code/JFE ATP Value during Shocks.sas, line 2011 proc import datafile='Path\1997 Use IO.xlsx' out=use dbms=xlsx replace;Path\Alliance JV.xlsxExcelJFE ATP Value during Shocks.sas:1899
Data Files and Code/JFE ATP Value during Shocks.sas, line 1899 proc import datafile='Path\Alliance JV.xlsx' replace out=jve dbms=xlsx;Path\Articles of Incorporation Data.dtaStataJFE ATP Value during Shocks.sas:3026
Data Files and Code/JFE ATP Value during Shocks.sas, line 3026 proc import datafile='Path\Articles of Incorporation Data.dta' replace out=art;Path\Base Sample.dtaStataHoberg and Phillips Booms and Busts.sas:256
Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 256 proc import datafile='Path\Base Sample.dta' replace out=base; run;Path\cain_atp_index.dtaStataJFE ATP Value during Shocks.sas:3388
Data Files and Code/JFE ATP Value during Shocks.sas, line 3388 proc import datafile='Path\cain_atp_index.dta' out=cain replace;Path\CBML.dtaStataJFE ATP Value during Shocks.sas:2954
Data Files and Code/JFE ATP Value during Shocks.sas, line 2954 proc import datafile='Path\CBML.dta' out=cb replace;Path\CMS Takeover Index JFE.xlsxExcelJFE ATP Value during Shocks.sas:3198
Data Files and Code/JFE ATP Value during Shocks.sas, line 3198 proc import datafile='Path\CMS Takeover Index JFE.xlsx' out=cain dbms=xlsx replace;Path\CNC Index Ertimur et al.xlsxExcelJFE ATP Value during Shocks.sas:3248
Data Files and Code/JFE ATP Value during Shocks.sas, line 3248 proc import datafile='Path\CNC Index Ertimur et al.xlsx' replace out=cnc dbms=xlsx;Path\deltavega2020_for_posting.xlsxExcelJFE ATP Value during Shocks.sas:4613
Data Files and Code/JFE ATP Value during Shocks.sas, line 4613 proc import datafile='Path\deltavega2020_for_posting.xlsx' out=dv dbms=xlsx replace;Path\Director Liability Laws 6-21-2021.xlsxExcelJFE ATP Value during Shocks.sas:3238
Data Files and Code/JFE ATP Value during Shocks.sas, line 3238 proc import datafile='Path\Director Liability Laws 6-21-2021.xlsx' out=laws dbms=xlsx replace;Path\E- and G-Index Measures.dtaStataJFE ATP Value during Shocks.sas:3052
Data Files and Code/JFE ATP Value during Shocks.sas, line 3052 proc import datafile='Path\E- and G-Index Measures.dta' replace out=eindex;Path\Golden Parachute 150.dtaStataJFE ATP Value during Shocks.sas:2984
Data Files and Code/JFE ATP Value during Shocks.sas, line 2984 proc import datafile='Path\Golden Parachute 150.dta' out=gp1 replace;Path\Golden Parachute.dtaStataJFE ATP Value during Shocks.sas:2980
Data Files and Code/JFE ATP Value during Shocks.sas, line 2980 proc import datafile='Path\Golden Parachute.dta' out=gp replace;Path\Governance and Business Cycle.dtaStataTR Insider Data.sas:68
Data Files and Code/TR Insider Data.sas, line 68 proc import datafile='Path\Governance and Business Cycle.dta' out=sample replace;Path\Inevitable Disclosure Coding April 4.xlsxExcelJFE ATP Value during Shocks.sas:3253
Data Files and Code/JFE ATP Value during Shocks.sas, line 3253 proc import datafile='Path\Inevitable Disclosure Coding April 4.xlsx' out=indc replace dbms=xlsx;Path\Naics IO.dtaStataJFE ATP Value during Shocks.sas:2240
Data Files and Code/JFE ATP Value during Shocks.sas, line 2240 proc import datafile='Path\Naics IO.dta' out=naics replace; run;Path\NBER Recession Dates.xlsxExcelJFE ATP Value during Shocks.sas:278
Data Files and Code/JFE ATP Value during Shocks.sas, line 278 proc import datafile="Path\NBER Recession Dates.xlsx" replace out=rec dbms=xlsx;Path\PS Liquidity.xlsxExcelJFE ATP Value during Shocks.sas:1070
Data Files and Code/JFE ATP Value during Shocks.sas, line 1070 proc import datafile='Path\PS Liquidity.xlsx' replace dbms=xlsx out=ps;Path\Right to Work Laws.xlsxExcelJFE ATP Value during Shocks.sas:3339
Data Files and Code/JFE ATP Value during Shocks.sas, line 3339 proc import datafile='Path\Right to Work Laws.xlsx' dbms=xlsx out=laws replace;Path\Second Generation Laws Karpoff 2016.xlsxExcelJFE ATP Value during Shocks.sas:256
Data Files and Code/JFE ATP Value during Shocks.sas, line 256 proc import datafile='Path\Second Generation Laws Karpoff 2016.xlsx' replace out=gov dbms=xlsx;Path\Trade Secret Statutes.xlsxExcelJFE ATP Value during Shocks.sas:157
Data Files and Code/JFE ATP Value during Shocks.sas, line 157 proc import datafile = "Path\Trade Secret Statutes.xlsx" out=TS dbms=xlsx replace;Path\US Quarterly GDP 4-23-2020.xlsxExcelJFE ATP Value during Shocks.sas:2750
Data Files and Code/JFE ATP Value during Shocks.sas, line 2750 proc import datafile="Path\US Quarterly GDP 4-23-2020.xlsx" replace out=gdp dbms=xlsx;Path\UTSA years.xlsxExcelJFE ATP Value during Shocks.sas:3349
Data Files and Code/JFE ATP Value during Shocks.sas, line 3349 proc import datafile='Path\UTSA years.xlsx' out=laws dbms=xlsx replace;Path\Wrongful Discharge Laws Autor 2003.xlsxExcelJFE ATP Value during Shocks.sas:3321
Data Files and Code/JFE ATP Value during Shocks.sas, line 3321 proc import datafile='Path\Wrongful Discharge Laws Autor 2003.xlsx' dbms=xlsx out=wd replace;trws.wrds_ws_stockSASJFE ATP Value during Shocks.sas:3623
Data Files and Code/JFE ATP Value during Shocks.sas, line 3623 set trws.wrds_ws_stock;
2 · The file pipeline — which script writes which file that a later script reads
7 scripts, in data lineage — a script that writes a file comes before the scripts that read it; 6 hand-offs through 16 intermediate files; 15 files written and never read back (outputs). 1 hand-off runs 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.
-
1.
Data Files and Code/macros.sassetup file sourced by 2 scripts 9 merges · -
2.
Data Files and Code/Clean Data Files of Excess Variables.doreads 3 input files · -
3.
Data Files and Code/Raw File Download.sasreads 14 input files ·writesm.ccmxpf_lnkhist→ read byHoberg and Phillips Booms and Busts.sas,JFE ATP Value during Shocks.saswritesm.factors_daily→ read byJFE ATP Value during Shocks.saswritesm.factors_monthly→ read byJFE ATP Value during Shocks.saswritesm.funda→ read byHoberg and Phillips Booms and Busts.sas,JFE ATP Value during Shocks.saswritesm.fundq→ read byHoberg and Phillips Booms and Busts.sas,JFE ATP Value during Shocks.saswritesm.msenames→ read byHoberg and Phillips Booms and Busts.sas,JFE ATP Value during Shocks.saswritesm.msf→ read byHoberg and Phillips Booms and Busts.sas,JFE ATP Value during Shocks.saswritesm.msi→ read byJFE ATP Value during Shocks.saswritesm.names→ read byHoberg and Phillips Booms and Busts.sas,JFE ATP Value during Shocks.saswritesm.s34→ read byJFE ATP Value during Shocks.saswrites (not read again):m.company,m.comphist,m.cst_hist,m.liq_ps,m.rates_daily,m.rates_monthly,m.total_q,m.wrds_seg_customer -
4.
Data Files and Code/TR Insider Data.sasreads 3 input files · 2 merges ·writesInsider Holdings.dta→ read byJFE ATP Value during Shocks.sas -
5.
Data Files and Code/Hoberg and Phillips Booms and Busts.sasreads 3 input files · 33 merges ·reads whatRaw File Download.sas,JFE ATP Value during Shocks.saswrotewritesHP Undervaluation.dta→ read byJFE ATP Value during Shocks.sas -
6.
Data Files and Code/JFE ATP Value during Shocks.sasreads 53 input files · 210 merges ·reads whatRaw File Download.sas,TR Insider Data.sas,Hoberg and Phillips Booms and Busts.saswrotewritesGovernance and Business Cycle Final.dta→ read byHoberg and Phillips Booms and Busts.saswritesMatch (-1,+1).dta→ read byJFE ATP Value during Shocks Final.dowritesMatch (-2,+2).dta→ read byJFE ATP Value during Shocks Final.dowritesMatch (-3,+3).dta→ read byJFE ATP Value during Shocks Final.dowrites (not read again):Governance and Merger Premiums Final.dta,Graphs.dta,Graphs1.dta,Matched Sample Final.dta,Pill & CB Match.dta,Pill Match.dta,Portfolio Regressions Qobs Final.dta -
7.
Data Files and Code/JFE ATP Value during Shocks Final.doreads 9 input files · 180 estimationsreads whatJFE ATP Value during Shocks.saswrote
3 · Merges — 226 joins, 0 followed by a check of the merge result; 28 appends
| Joins | How | On keys | Check that follows | Where |
|---|---|---|---|---|
&data ← temp |
join (left) | — | none | macros.sas:77Data Files and Code/macros.sas, line 77
from &data as a left join temp as b
on a.&firmid = b.&firmid & month(a.&timeid) = month(b.&timeid) &
year(a.&timeid) = year(b.&timeid); |
xtemp ← xtemp_pctl |
merge | &byvar |
none | macros.sas:157Data Files and Code/macros.sas, line 157
merge xtemp xtemp_pctl; /*merge percentage cutoff values into main dataset*/ |
xtemp ← xtemp_pctl |
merge | &byvar |
none | macros.sas:256Data Files and Code/macros.sas, line 256
merge xtemp xtemp_pctl; /*merge percentage cutoff values into main dataset*/ |
&data ← temp |
join (left) | — | none | macros.sas:366Data Files and Code/macros.sas, line 366
from &data as a left join temp as b
on a.&firmid = b.&firmid & a.&yearid = b.&yearid; |
xp ← xs |
join (inner) | Variable |
none | macros.sas:522Data Files and Code/macros.sas, line 522
from xp, xs where (xp.Variable = xs.variable); |
temp1000 ← temp2000 |
cross (cross) | — | none | macros.sas:1885Data Files and Code/macros.sas, line 1885
from temp1000, temp2000; |
temp1000 ← temp2000 |
cross (cross) | — | none | macros.sas:1952Data Files and Code/macros.sas, line 1952
from temp1000, temp2000; |
temp3001 ← temp3002 |
cross (cross) | — | none | macros.sas:2000Data Files and Code/macros.sas, line 2000
select mean(temp3001.NOBS) as NOBS_Model1,
mean(temp3002.NOBS) as NOBS_Model2,
temp3001.ADJRSQ as ADJRSQ_Model1,
temp3002.ADJRSQ as ADJRSQ_Model2,
sum(temp3001.ADJRSQ,(temp3002.adjrsq*-1)) as ADJRSQ_DIFF,
temp3001.VAR_R … |
temp1000 ← temp2000 |
cross (cross) | — | none | macros.sas:2040Data Files and Code/macros.sas, line 2040
from temp1000, temp2000; |
keys ← table1 |
join (left) | cusip6 |
none | TR Insider Data.sas:99Data Files and Code/TR Insider Data.sas, line 99
SELECT * FROM keys as a LEFT JOIN table1 as b
on a.cusip6 = b.cusip6 where b.rolecode1 in (&rolecodes)
and year(trandate) between &year1 and &year2; |
direct2 ← indirect2 |
join (left) | personid dcn |
none | TR Insider Data.sas:236Data Files and Code/TR Insider Data.sas, line 236
FROM direct2 as a LEFT JOIN indirect2 as b
ON a.personid = b.personid and a.dcn=b.dcn
ORDER BY cusip6, personid, dcn; |
comp1 ← names |
join (left) | gvkeyn |
none | Hoberg and Phillips Booms and Busts.sas:28Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 28
from comp1 as a left join names as b
on a.gvkeyn=b.gvkeyn; |
(data in memory) ← compq |
join (left) | gvkeyn |
none | Hoberg and Phillips Booms and Busts.sas:71Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 71
from compq as a left join compq as b
on a.gvkeyn=b.gvkeyn and a.obsq=b.obsq+1; |
compq1 ← link |
join (left) | gvkeyn |
none | Hoberg and Phillips Booms and Busts.sas:100Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 100
from compq1 as a left join link as b
on a.gvkeyn=b.gvkeyn and b.linkdt<=a.datadate<=b.linkenddt; |
compq2 ← cnames |
join (left) | permno |
none | Hoberg and Phillips Booms and Busts.sas:106Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 106
from compq2 as a left join cnames as b
on a.permno=b.permno and b.namedt<=a.datadate<=b.nameendt; |
compq2 ← cpi |
join (inner) | qobs |
none | Hoberg and Phillips Booms and Busts.sas:138Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 138
from compq2 as a, cpi as b
where a.qobs=b.qobs; |
compq3 ← comp2 |
join (left) | gvkeyn fyearq=fyear |
none | Hoberg and Phillips Booms and Busts.sas:144Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 144
from compq3 as a left join comp2 as b
on a.gvkeyn=b.gvkeyn and a.fyearq=b.fyear; |
compq3 ← names |
join (left) | gvkeyn |
none | Hoberg and Phillips Booms and Busts.sas:150Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 150
from compq3 as a left join names as b
on a.gvkeyn=b.gvkeyn; |
compq3 ← crsp1 |
join (left) | permno |
none | Hoberg and Phillips Booms and Busts.sas:193Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 193
from compq3 as a left join crsp1 as b
on a.permno=b.permno; |
(data in memory) ← compq4 |
join (left) | gvkeyn |
none | Hoberg and Phillips Booms and Busts.sas:201Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 201
from compq4 as a left join compq4 as b
on a.gvkeyn=b.gvkeyn and a.obsq=b.obsq+1; |
crsp2 ← comp5 |
join (inner) | permno |
none | Hoberg and Phillips Booms and Busts.sas:221Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 221
from crsp2 as a inner join comp5 as b
on a.permno=b.permno and (a.nmo-2)<=b.nmo<=(a.nmo-0); |
comp6 ← base |
join (inner) | gvkeyn |
none | Hoberg and Phillips Booms and Busts.sas:260Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 260
from comp6 as a inner join base as b
on a.gvkeyn=b.gvkeyn and (b.qobs-1)<=a.qobs<=(b.qobs+1); |
qobs ← comp7 |
join (inner) | sic3 |
none | Hoberg and Phillips Booms and Busts.sas:313Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 313
from qobs as a, comp7 as b
where a.sic3=b.sic3 and (a.qobs-4*3)<b.qobs<=a.qobs; |
comp8 ← temp |
join (inner) | qobs sic3 |
none | Hoberg and Phillips Booms and Busts.sas:335Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 335
from comp8 as a inner join temp as b
on a.qobs=b.qobs and a.sic3=b.sic3; |
beta2 ← temp |
join (inner) | obs |
none | Hoberg and Phillips Booms and Busts.sas:373Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 373
from beta2 as a inner join temp as b
on a.obs=b.obs; |
comp6 ← beta2 |
join (left) | sic3 |
none | Hoberg and Phillips Booms and Busts.sas:400Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 400
from comp6 as a left join beta2 as b
on a.sic3=b.sic3 and a.qobs=b.qobs+1 and b.effect="AGE"
left join beta2 as c
on a.sic3=c.sic3 and a.qobs=c.qobs+1 and c.effect="div"
left join beta2 as d
on a.sic3=d.sic3 and a.qobs=d.qobs+1 and d.effect … |
comp6 ← beta2 |
join (left) | sic3 |
none | Hoberg and Phillips Booms and Busts.sas:402Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 402
left join beta2 as c
on a.sic3=c.sic3 and a.qobs=c.qobs+1 and c.effect="div"
left join beta2 as d
on a.sic3=d.sic3 and a.qobs=d.qobs+1 and d.effect="LTBlev"
left join beta2 as e
on a.sic3=e.sic3 and a.qobs=e.qobs+1 and e.effect="lnAssets"
l … |
comp6 ← beta2 |
join (left) | sic3 |
none | Hoberg and Phillips Booms and Busts.sas:397Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 397
create table comp9 as select a.*, b.estimate as bage1, c.estimate as bdiv1, d.estimate as bltblev1,
e.estimate as blnassets1, f.estimate as bvolpa, g.estimate as broa, h.estimate as intercept1,
i.estimate as bq21, j.estimate as bq31, k.est … |
comp6 ← beta2 |
join (left) | sic3 |
none | Hoberg and Phillips Booms and Busts.sas:397Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 397
create table comp9 as select a.*, b.estimate as bage1, c.estimate as bdiv1, d.estimate as bltblev1,
e.estimate as blnassets1, f.estimate as bvolpa, g.estimate as broa, h.estimate as intercept1,
i.estimate as bq21, j.estimate as bq31, k.est … |
comp6 ← beta2 |
join (left) | sic3 |
none | Hoberg and Phillips Booms and Busts.sas:397Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 397
create table comp9 as select a.*, b.estimate as bage1, c.estimate as bdiv1, d.estimate as bltblev1,
e.estimate as blnassets1, f.estimate as bvolpa, g.estimate as broa, h.estimate as intercept1,
i.estimate as bq21, j.estimate as bq31, k.est … |
comp6 ← beta2 |
join (left) | sic3 |
none | Hoberg and Phillips Booms and Busts.sas:397Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 397
create table comp9 as select a.*, b.estimate as bage1, c.estimate as bdiv1, d.estimate as bltblev1,
e.estimate as blnassets1, f.estimate as bvolpa, g.estimate as broa, h.estimate as intercept1,
i.estimate as bq21, j.estimate as bq31, k.est … |
comp6 ← beta2 |
join (left) | sic3 |
none | Hoberg and Phillips Booms and Busts.sas:397Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 397
create table comp9 as select a.*, b.estimate as bage1, c.estimate as bdiv1, d.estimate as bltblev1,
e.estimate as blnassets1, f.estimate as bvolpa, g.estimate as broa, h.estimate as intercept1,
i.estimate as bq21, j.estimate as bq31, k.est … |
comp6 ← beta2 |
join (left) | sic3 |
none | Hoberg and Phillips Booms and Busts.sas:397Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 397
create table comp9 as select a.*, b.estimate as bage1, c.estimate as bdiv1, d.estimate as bltblev1,
e.estimate as blnassets1, f.estimate as bvolpa, g.estimate as broa, h.estimate as intercept1,
i.estimate as bq21, j.estimate as bq31, k.est … |
comp6 ← beta2 |
join (left) | sic3 |
none | Hoberg and Phillips Booms and Busts.sas:397Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 397
create table comp9 as select a.*, b.estimate as bage1, c.estimate as bdiv1, d.estimate as bltblev1,
e.estimate as blnassets1, f.estimate as bvolpa, g.estimate as broa, h.estimate as intercept1,
i.estimate as bq21, j.estimate as bq31, k.est … |
comp6 ← beta2 |
join (left) | sic3 |
none | Hoberg and Phillips Booms and Busts.sas:397Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 397
create table comp9 as select a.*, b.estimate as bage1, c.estimate as bdiv1, d.estimate as bltblev1,
e.estimate as blnassets1, f.estimate as bvolpa, g.estimate as broa, h.estimate as intercept1,
i.estimate as bq21, j.estimate as bq31, k.est … |
sample ← comp10 |
join (left) | gvkeyn qobs |
none | Hoberg and Phillips Booms and Busts.sas:447Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 447
from sample as a left join comp10 as b
on a.gvkeyn=b.gvkeyn and a.qobs=b.qobs; |
comp1 ← names |
join (left) | gvkeyn |
none | JFE ATP Value during Shocks.sas:30Data Files and Code/JFE ATP Value during Shocks.sas, line 30
from comp1 as a left join names as b
on a.gvkeyn=b.gvkeyn; |
(data in memory) ← compq |
join (left) | gvkeyn |
none | JFE ATP Value during Shocks.sas:63Data Files and Code/JFE ATP Value during Shocks.sas, line 63
from compq as a left join compq as b
on a.gvkeyn=b.gvkeyn and a.obsq=b.obsq+1; |
compq1 ← link |
join (left) | gvkeyn |
none | JFE ATP Value during Shocks.sas:84Data Files and Code/JFE ATP Value during Shocks.sas, line 84
from compq1 as a left join link as b
on a.gvkeyn=b.gvkeyn and b.linkdt<=a.datadate<=b.linkenddt; |
compq2 ← cnames |
join (left) | permno |
none | JFE ATP Value during Shocks.sas:90Data Files and Code/JFE ATP Value during Shocks.sas, line 90
from compq2 as a left join cnames as b
on a.permno=b.permno and b.namedt<=a.datadate<=b.nameendt; |
compq2 ← cpi |
join (inner) | qobs |
none | JFE ATP Value during Shocks.sas:122Data Files and Code/JFE ATP Value during Shocks.sas, line 122
from compq2 as a, cpi as b
where a.qobs=b.qobs; |
compq3 ← comp2 |
join (left) | gvkeyn fyearq=fyear |
none | JFE ATP Value during Shocks.sas:128Data Files and Code/JFE ATP Value during Shocks.sas, line 128
from compq3 as a left join comp2 as b
on a.gvkeyn=b.gvkeyn and a.fyearq=b.fyear; |
compq3 ← names |
join (left) | gvkeyn |
none | JFE ATP Value during Shocks.sas:134Data Files and Code/JFE ATP Value during Shocks.sas, line 134
from compq3 as a left join names as b
on a.gvkeyn=b.gvkeyn; |
cst_hist ← ts |
join (left) | state=fips |
none | JFE ATP Value during Shocks.sas:163Data Files and Code/JFE ATP Value during Shocks.sas, line 163
from cst_hist as a left join ts as b
on a.state=b.fips; |
csthist ← ts |
join (left) | stinc=fips |
none | JFE ATP Value during Shocks.sas:169Data Files and Code/JFE ATP Value during Shocks.sas, line 169
from csthist as a left join ts as b
on a.stinc=b.fips; |
csthist1 ← tempf1 |
join (left) | gvkeyn |
none | JFE ATP Value during Shocks.sas:203Data Files and Code/JFE ATP Value during Shocks.sas, line 203
from csthist1 as a left join tempf1 as b
on a.gvkeyn=b.gvkeyn; |
compq3 ← histhead1 |
join (left) | gvkeyn |
none | JFE ATP Value during Shocks.sas:220Data Files and Code/JFE ATP Value during Shocks.sas, line 220
from compq3 as a left join histhead1 as b
on a.gvkeyn = b.gvkeyn and b.begdate<=a.datadate<=b.enddate; |
compq4 ← histhead2 |
join (left) | gvkeyn |
none | JFE ATP Value during Shocks.sas:229Data Files and Code/JFE ATP Value during Shocks.sas, line 229
from compq4 as a left join histhead2 as b
on a.gvkeyn=b.gvkeyn; |
compq4 ← histhead2 |
join (left) | gvkeyn |
none | JFE ATP Value during Shocks.sas:238Data Files and Code/JFE ATP Value during Shocks.sas, line 238
from compq4 as a left join histhead2 as b
on a.gvkeyn=b.gvkeyn; |
compq5 ← gov |
join (inner) | incorp |
none | JFE ATP Value during Shocks.sas:268Data Files and Code/JFE ATP Value during Shocks.sas, line 268
from compq5 as a inner join gov as b
on a.incorp=b.incorp; |
compq6 ← gov |
join (left) | state=incorp |
none | JFE ATP Value during Shocks.sas:274Data Files and Code/JFE ATP Value during Shocks.sas, line 274
from compq6 as a left join gov as b
on a.state=b.incorp; |
compq6 ← rec |
join (left) | — | none | JFE ATP Value during Shocks.sas:292Data Files and Code/JFE ATP Value during Shocks.sas, line 292
from compq6 as a left join rec as b
on b.bnmo<=a.nmo<=b.enmo; |
crsp ← msi |
join (left) | date |
none | JFE ATP Value during Shocks.sas:311Data Files and Code/JFE ATP Value during Shocks.sas, line 311
from crsp as a left join msi as b
on a.date=b.date; |
(data in memory) ← crsp |
join (left) | permno |
none | JFE ATP Value during Shocks.sas:335Data Files and Code/JFE ATP Value during Shocks.sas, line 335
from crsp as a left join crsp as b
on a.permno=b.permno and (a.nmo-2)<=b.nmo<=a.nmo
group by a.permno, a.nmo; |
crsp1 ← crsp |
join (left) | permno |
none | JFE ATP Value during Shocks.sas:342Data Files and Code/JFE ATP Value during Shocks.sas, line 342
from crsp1 as a left join crsp as b
on a.permno=b.permno and (a.nmo-5)<=b.nmo<=(a.nmo-3)
group by a.permno, a.nmo; |
crsp1 ← crsp |
join (left) | permno |
none | JFE ATP Value during Shocks.sas:349Data Files and Code/JFE ATP Value during Shocks.sas, line 349
from crsp1 as a left join crsp as b
on a.permno=b.permno and (a.nmo-11)<=b.nmo<=(a.nmo-3)
group by a.permno, a.nmo; |
crsp1 ← crsp |
join (left) | permno |
none | JFE ATP Value during Shocks.sas:356Data Files and Code/JFE ATP Value during Shocks.sas, line 356
from crsp1 as a left join crsp as b
on a.permno=b.permno and (a.nmo-14)<=b.nmo<=(a.nmo-6)
group by a.permno, a.nmo; |
crsp2 ← compq7 |
join (inner) | permno |
none | JFE ATP Value during Shocks.sas:378Data Files and Code/JFE ATP Value during Shocks.sas, line 378
from crsp2 as a inner join compq7 as b
on a.permno=b.permno and (a.nmo-2)<=b.nmo<=(a.nmo-0); |
crsp2 ← compq7 |
join (inner) | permno |
none | JFE ATP Value during Shocks.sas:390Data Files and Code/JFE ATP Value during Shocks.sas, line 390
from crsp2 as a inner join compq7 as b
on a.permno=b.permno and (a.snmo-3)<=b.nmo<=(a.snmo-1); |
crsp2 ← temp |
join (left) | permno |
none | JFE ATP Value during Shocks.sas:405Data Files and Code/JFE ATP Value during Shocks.sas, line 405
from crsp2 as a left join temp as b
on a.permno=b.permno; |
crsp2 ← crsp |
join (left) | permno |
none | JFE ATP Value during Shocks.sas:411Data Files and Code/JFE ATP Value during Shocks.sas, line 411
from crsp2 as a left join crsp as b
on a.permno=b.permno and a.snmo=b.nmo+1; |
msf ← cnames |
join (inner) | permno |
none | JFE ATP Value during Shocks.sas:454Data Files and Code/JFE ATP Value during Shocks.sas, line 454
from msf as a, cnames as b
where a.permno=b.permno and b.namedt<=a.date<=b.nameendt; |
io1 ← msf |
join (inner) | cusip=ncusip |
none | JFE ATP Value during Shocks.sas:462Data Files and Code/JFE ATP Value during Shocks.sas, line 462
from io1 as a, msf as b
where a.cusip=b.ncusip and year(a.fdate)=year(b.date)
and month(a.fdate)=month(b.date); |
io2 ← msf |
join (inner) | cusip=ncusip |
none | JFE ATP Value during Shocks.sas:469Data Files and Code/JFE ATP Value during Shocks.sas, line 469
from io2 as a, msf as b
where a.cusip=b.ncusip and year(a.rdate)=year(b.date)
and month(a.rdate)=month(b.date); |
crsp2 ← io4 |
join (left) | permno |
none | JFE ATP Value during Shocks.sas:491Data Files and Code/JFE ATP Value during Shocks.sas, line 491
from crsp2 as a left join io4 as b
on a.permno=b.permno and a.snmo=b.nmo+1; |
dsf ← ff |
join (left) | date |
none | JFE ATP Value during Shocks.sas:526Data Files and Code/JFE ATP Value during Shocks.sas, line 526
from dsf as a left join ff as b
on a.date=b.date; |
crsp2a ← dsf |
join (inner) | permno |
none | JFE ATP Value during Shocks.sas:533Data Files and Code/JFE ATP Value during Shocks.sas, line 533
from crsp2a as a inner join dsf as b
on a.permno=b.permno and (a.snmo-3)<=b.nmo<(a.snmo)
group by a.permno, a.snmo; |
crsp2a ← beta1 |
join (left) | permno snmo |
none | JFE ATP Value during Shocks.sas:550Data Files and Code/JFE ATP Value during Shocks.sas, line 550
from crsp2a as a left join beta1 as b
on a.permno=b.permno and a.snmo=b.snmo; |
crsp2a ← kmv |
join (left) | permno |
none | JFE ATP Value during Shocks.sas:569Data Files and Code/JFE ATP Value during Shocks.sas, line 569
from crsp2a as a left join kmv as b
on a.permno=b.permno and (a.snmo-3)<=b.nmo<a.snmo
group by a.permno, a.snmo; |
crsp3 ← crsp2c |
join (left) | gvkeyn |
none | JFE ATP Value during Shocks.sas:682Data Files and Code/JFE ATP Value during Shocks.sas, line 682
from crsp3 as a left join crsp2c as b
on a.gvkeyn=b.gvkeyn and a.qobs=b.qobs+1; |
sample ← cnames |
join (left) | permno |
none | JFE ATP Value during Shocks.sas:736Data Files and Code/JFE ATP Value during Shocks.sas, line 736
from sample as a left join cnames as b
on a.permno=b.permno and b.namedt<=a.date<=b.nameendt; |
sample1 ← nyse |
join (left) | qobs |
none | JFE ATP Value during Shocks.sas:756Data Files and Code/JFE ATP Value during Shocks.sas, line 756
from sample1 as a left join nyse as b
on a.qobs=b.qobs; |
sample ← rec |
join (left) | — | none | JFE ATP Value during Shocks.sas:820Data Files and Code/JFE ATP Value during Shocks.sas, line 820
from sample as a left join rec as b
on b.bnmo<=a.nmo<=b.enmo; |
sample ← dates |
join (left) | — | none | JFE ATP Value during Shocks.sas:859Data Files and Code/JFE ATP Value during Shocks.sas, line 859
from sample as a left join dates as b
on a.qobs=b.qobs-1; |
sample1 ← dates |
join (left) | — | none | JFE ATP Value during Shocks.sas:865Data Files and Code/JFE ATP Value during Shocks.sas, line 865
from sample1 as a left join dates as b
on a.qobs=b.qobs-2; |
sample1 ← dates |
join (left) | — | none | JFE ATP Value during Shocks.sas:871Data Files and Code/JFE ATP Value during Shocks.sas, line 871
from sample1 as a left join dates as b
on a.qobs=b.qobs-3; |
sample1 ← dates |
join (left) | — | none | JFE ATP Value during Shocks.sas:877Data Files and Code/JFE ATP Value during Shocks.sas, line 877
from sample1 as a left join dates as b
on a.qobs=b.qobs-4; |
sample1 ← dates |
join (left) | — | none | JFE ATP Value during Shocks.sas:884Data Files and Code/JFE ATP Value during Shocks.sas, line 884
from sample1 as a left join dates as b
on a.qobs=b.qobs+1; |
sample1 ← dates |
join (left) | — | none | JFE ATP Value during Shocks.sas:890Data Files and Code/JFE ATP Value during Shocks.sas, line 890
from sample1 as a left join dates as b
on a.qobs=b.qobs+2; |
sample1 ← dates |
join (left) | — | none | JFE ATP Value during Shocks.sas:896Data Files and Code/JFE ATP Value during Shocks.sas, line 896
from sample1 as a left join dates as b
on a.qobs=b.qobs+3; |
4 · The sample — 4 keep/drop steps, 88 variables winsorized or trimmed
Filters, by kind
value ranges ×1
- keep if
max>0JFE ATP Value during Shocks Final.do:1708
Data Files and Code/JFE ATP Value during Shocks Final.do, line 1708 keep if max>0
indicator subsets ×1
- keep if
sample==1JFE ATP Value during Shocks Final.do:418
Data Files and Code/JFE ATP Value during Shocks Final.do, line 418 keep if sample==1
missing values ×2
- drop if
auditsamp==.JFE ATP Value during Shocks Final.do:659
Data Files and Code/JFE ATP Value during Shocks Final.do, line 659 drop if auditsamp==. - drop if
d13==.JFE ATP Value during Shocks Final.do:660
Data Files and Code/JFE ATP Value during Shocks Final.do, line 660 drop if d13==.
Outliers
winsorize at 1/99 within qobs
· 53 variables
mb mb1 lncmve lncmva bm fret fret1 lnassets lnfage mom oroa blev +41JFE ATP Value during Shocks.sas:687
Data Files and Code/JFE ATP Value during Shocks.sas, line 687
%WT(data = crsp3, out=crsp4, byvar=qobs,
vars = mb mb1 lncmve lncmva bm fret fret1 lnassets lnfage mom oroa blev assets betad edf ,
type = W, pctl = 1 99, drop=N);
JFE ATP Value during Shocks.sas:1244
Data Files and Code/JFE ATP Value during Shocks.sas, line 1244
%WT(data = sample1, out=sample1, byvar=qobs,
vars = mb1 fret1,
type = W, pctl = 1 99, drop=N);
JFE ATP Value during Shocks.sas:1555
Data Files and Code/JFE ATP Value during Shocks.sas, line 1555
%WT(data = sample2, out=sample2, byvar=qobs,
vars = bmt frett momt oroat blevt betadt edft lnassetst lnfaget,
type = W, pctl = 1 99, drop=N);
JFE ATP Value during Shocks.sas:2545
Data Files and Code/JFE ATP Value during Shocks.sas, line 2545
%WT(data = sample2, out=sample3, byvar=qobs,
vars = capxp1c omc sac sgc agc,
type = W, pctl = 1 99, drop=N);
winsorize at 1/99
· 34 variables
premp63 car63_2 car42_2 car21_2 car10_2 lnassets lnfage blev oroa mom bm betad +22JFE ATP Value during Shocks Final.do:422
Data Files and Code/JFE ATP Value during Shocks Final.do, line 422
winsor2 premp63 car63_2 car42_2 car21_2 car10_2 lnassets lnfage blev oroa mom bm betad edf, replace
JFE ATP Value during Shocks Final.do:1162
Data Files and Code/JFE ATP Value during Shocks Final.do, line 1162
winsor2 bsize lnbsize lndelta lnvega
Hoberg and Phillips Booms and Busts.sas:299
Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 299
%WT(data = comp6, out=comp7, byvar=none,
vars = roe volpe roa volpa mb mba ltblev,
type = W, pctl = 1 99, drop=N);
Hoberg and Phillips Booms and Busts.sas:427
Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 427
%WT(data = comp9, out=comp9, byvar=none,
vars = intercept1 bage1 bdiv1 bltblev1 blnassets1 bvolpa broa bq21 bq31 bq41,
type = W, pctl = 1 99, drop=N);
winsorize at 1/99 within fyear
· 1 variable
rdsJFE ATP Value during Shocks.sas:2281
Data Files and Code/JFE ATP Value during Shocks.sas, line 2281
%WT(data = comp2, out=comp2, byvar=fyear,
vars = rds,
type = W, pctl = 1 99, drop=N);
Missing values
set to zero ×8
neg1→0JFE ATP Value during Shocks Final.do:230
Data Files and Code/JFE ATP Value during Shocks Final.do, line 230 replace neg1=0 if neg1==.neg2→0JFE ATP Value during Shocks Final.do:231
Data Files and Code/JFE ATP Value during Shocks Final.do, line 231 replace neg2=0 if neg2==.neg3→0JFE ATP Value during Shocks Final.do:232
Data Files and Code/JFE ATP Value during Shocks Final.do, line 232 replace neg3=0 if neg3==.neg4→0JFE ATP Value during Shocks Final.do:233
Data Files and Code/JFE ATP Value during Shocks Final.do, line 233 replace neg4=0 if neg4==.neg1→0JFE ATP Value during Shocks Final.do:306
Data Files and Code/JFE ATP Value during Shocks Final.do, line 306 replace neg1=0 if neg1==.neg2→0JFE ATP Value during Shocks Final.do:307
Data Files and Code/JFE ATP Value during Shocks Final.do, line 307 replace neg2=0 if neg2==.
filled with a value ×5
pillsdc→pillJFE ATP Value during Shocks Final.do:996
Data Files and Code/JFE ATP Value during Shocks Final.do, line 996 replace pillsdc=pill if pillsdc==.cbdefml→cbJFE ATP Value during Shocks Final.do:997
Data Files and Code/JFE ATP Value during Shocks Final.do, line 997 replace cbdefml=cb if cbdefml==.pillsdc→pillJFE ATP Value during Shocks Final.do:1081
Data Files and Code/JFE ATP Value during Shocks Final.do, line 1081 replace pillsdc=pill if pillsdc==.cbdefml→cbJFE ATP Value during Shocks Final.do:1082
Data Files and Code/JFE ATP Value during Shocks Final.do, line 1082 replace cbdefml=cb if cbdefml==.gp100→gpJFE ATP Value during Shocks Final.do:1083
Data Files and Code/JFE ATP Value during Shocks Final.do, line 1083 replace gp100=gp if gp100==.
common sample across variables (listwise) ×3
JFE ATP Value during Shocks Final.do:74
Data Files and Code/JFE ATP Value during Shocks Final.do, line 74 gen sample=e(sample)JFE ATP Value during Shocks Final.do:417
Data Files and Code/JFE ATP Value during Shocks Final.do, line 417 gen sample=e(sample)JFE ATP Value during Shocks Final.do:1156
Data Files and Code/JFE ATP Value during Shocks Final.do, line 1156 gen sample=e(sample)
dropped ×2
JFE ATP Value during Shocks Final.do:659
Data Files and Code/JFE ATP Value during Shocks Final.do, line 659 drop if auditsamp==.JFE ATP Value during Shocks Final.do:660
Data Files and Code/JFE ATP Value during Shocks Final.do, line 660 drop if d13==.
5 · Key variables — what enters the models, and where the code builds it
Standard measures computed here:
Advertising Intensity (), Analyst Following (), Asset Turnover (), Board Independence (), Board Size (), Book Leverage (), Book-to-Market (), CEO Equity Ownership (), Capital Expenditure (), Cash Holdings (), Dividend Payer (), Forecast Dispersion (), Long-term Debt Ratio (), Market Beta (), Momentum (), Operating Margin (), Pay-Performance Sensitivity (Delta) (), Pay-Risk Sensitivity (Vega) (), R&D Intensity (), Return on Assets (ROA) (), SG&A Intensity (), Tobin's Q / Market-to-Book ()
advs JFE ATP Value during Shocks.sas:4389
Data Files and Code/JFE ATP Value during Shocks.sas, line 4389
advs = xad/sale;
nanal JFE ATP Value during Shocks.sas:4293
Data Files and Code/JFE ATP Value during Shocks.sas, line 4293
nanal = numest;
sa JFE ATP Value during Shocks.sas:2442
Data Files and Code/JFE ATP Value during Shocks.sas, line 2442
sa = saleq/atq;
bsize JFE ATP Value during Shocks.sas:4555
Data Files and Code/JFE ATP Value during Shocks.sas, line 4555
create table bx1 as select distinct gvkeyn, nmo, mean(indep) as pindep, max(bceochair) as bceochair, count(directorid) as bsize,
mean(seat3) as bseat3
from bx
group by gvkeyn, nmo;
bsize JFE ATP Value during Shocks.sas:4555
Data Files and Code/JFE ATP Value during Shocks.sas, line 4555
create table bx1 as select distinct gvkeyn, nmo, mean(indep) as pindep, max(bceochair) as bceochair, count(directorid) as bsize,
mean(seat3) as bseat3
from bx
group by gvkeyn, nmo;
blev JFE ATP Value during Shocks.sas:631
Data Files and Code/JFE ATP Value during Shocks.sas, line 631
blev = (dlcq+dlttq)/atq;
bmt JFE ATP Value during Shocks.sas:1529
Data Files and Code/JFE ATP Value during Shocks.sas, line 1529
if zero=0 and tdeal=1 then bmt=(ceqqc/(cmve/1000));
insiderown JFE ATP Value during Shocks.sas:3588
Data Files and Code/JFE ATP Value during Shocks.sas, line 3588
create table ann2 as select a.*, b.nmo, b.datadate, b.csho, (a.sharesown/1000)/b.csho as ceoown, (a.insider/1000)/b.csho as insiderown
from ann2 as a left join comp as b
on a.gvkeyn=b.gvkeyn and a.year=b.fyear;
capxa1 JFE ATP Value during Shocks.sas:2415
Data Files and Code/JFE ATP Value during Shocks.sas, line 2415
capxa1 = (dcapxy)/atq1;
cash JFE ATP Value during Shocks.sas:630
Data Files and Code/JFE ATP Value during Shocks.sas, line 630
cash = cheq/atq;
Div Hoberg and Phillips Booms and Busts.sas:56
Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 56
Div=0; if dvc ne . and dvc>0 then Div=1;
fdisp JFE ATP Value during Shocks.sas:4291
Data Files and Code/JFE ATP Value during Shocks.sas, line 4291
fdisp = stdev/prc;
LTBlev Hoberg and Phillips Booms and Busts.sas:54
Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 54
LTBlev = dlttq/atq;
JFE ATP Value during Shocks.sas:545
Data Files and Code/JFE ATP Value during Shocks.sas, line 545
model xret = mktrf;
mom JFE ATP Value during Shocks.sas:348
Data Files and Code/JFE ATP Value during Shocks.sas, line 348
create table crsp1 as select distinct a.*, exp(sum(log(1+b.ret)))-1 as mom, count(a.ret) as obs9
from crsp1 as a left join crsp as b
on a.permno=b.permno and (a.nmo-11)<=b.nmo<=(a.nmo-3)
group by a.permno, a.nmo;
om JFE ATP Value during Shocks.sas:2440
Data Files and Code/JFE ATP Value during Shocks.sas, line 2440
om = oibdpq/saleq;
lndelta JFE ATP Value during Shocks Final.do:1159
Data Files and Code/JFE ATP Value during Shocks Final.do, line 1159
gen lndelta=ln(1+delta)
lnvega JFE ATP Value during Shocks Final.do:1158
Data Files and Code/JFE ATP Value during Shocks Final.do, line 1158
gen lnvega=ln(1+vega)
rdann JFE ATP Value during Shocks.sas:1984
Data Files and Code/JFE ATP Value during Shocks.sas, line 1984
rdann = xrd/at;
roa Hoberg and Phillips Booms and Busts.sas:70
Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 70
create table compq1 as select a.*, b.dvy as dvy1, a.earn/b.be as roe, a.oibdpq/b.atq as roa
from compq as a left join compq as b
on a.gvkeyn=b.gvkeyn and a.obsq=b.obsq+1;
sgas JFE ATP Value during Shocks.sas:2423
Data Files and Code/JFE ATP Value during Shocks.sas, line 2423
sgas = xsgaq/saleq;
MB Hoberg and Phillips Booms and Busts.sas:50
Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 50
MB = ME/BE;
| Variable | Used in models as | Built by |
|---|---|---|
mb |
outcome in 67 | mb = ((cmve/1000)+atqc-ceqqc)/atqc (assign) JFE ATP Value during Shocks.sas:628Data Files and Code/JFE ATP Value during Shocks.sas, line 628
mb = ((cmve/1000)+atqc-ceqqc)/atqc; mb = mb1 (assign) JFE ATP Value during Shocks.sas:1322Data Files and Code/JFE ATP Value during Shocks.sas, line 1322
mb=mb1; mb = mb1 (assign) JFE ATP Value during Shocks.sas:3163Data Files and Code/JFE ATP Value during Shocks.sas, line 3163
mb=mb1; |
fret |
outcome in 63 | fret = exp(sum(log(1+b.ret)))-1 (proc sql as) JFE ATP Value during Shocks.sas:333Data Files and Code/JFE ATP Value during Shocks.sas, line 333
create table crsp1 as select distinct a.*, exp(sum(log(1+b.ret)))-1 as fret, count(a.ret) as obs3,
exp(sum(log(1+b.vwretd)))-1 as mkt, exp(sum(log(1+b.ewretd)))-1 as mkte
from crsp as a left join crsp as b
on a.permno=b.permno and (a.nmo-2 … fret = . (assign) JFE ATP Value during Shocks.sas:654Data Files and Code/JFE ATP Value during Shocks.sas, line 654
if obs3 ne 3 then fret=.; fret = fret1 (assign) JFE ATP Value during Shocks.sas:1323Data Files and Code/JFE ATP Value during Shocks.sas, line 1323
fret=fret1; +2 more statements set it |
tdeal |
outcome in 8 | tdeal = 1 (assign) JFE ATP Value during Shocks.sas:1374Data Files and Code/JFE ATP Value during Shocks.sas, line 1374
tdeal=1; tdeal = max(b.tdeal) (proc sql as) JFE ATP Value during Shocks.sas:1435Data Files and Code/JFE ATP Value during Shocks.sas, line 1435
create table temp as select distinct a.permno, a.qobs, max(b.tdeal) as tdeal, b.qobs as tqobs, max(b.pctown) as pctown
from sample as a inner join prem2 as b
on a.permno=b.permno and a.qobs=b.qobs
group by a.permno, a.datadate; tdeal = max(b.tdeal) (proc sql as) JFE ATP Value during Shocks.sas:1442Data Files and Code/JFE ATP Value during Shocks.sas, line 1442
create table temp1 as select distinct a.permno, a.qobs, max(b.tdeal) as tdeal, b.qobs as tqobs, max(b.pctown) as pctown
from sample as a inner join prem2 as b
on a.permno=b.permno and a.qobs=b.qobs-1
group by a.permno, a.datadate; +7 more statements set it |
abret |
outcome in 4 | abret = fret-mean(fret) (proc sql as) JFE ATP Value during Shocks.sas:1252Data Files and Code/JFE ATP Value during Shocks.sas, line 1252
create table sample1 as select *, fret-mean(fret) as abret, fret1-mean(fret1) as abret1
from sample1
group by qobs, rbm, rmom, rsize; abret = abret1 (assign) JFE ATP Value during Shocks.sas:1324Data Files and Code/JFE ATP Value during Shocks.sas, line 1324
abret=abret1; abret = fret-mean(fret) (proc sql as) JFE ATP Value during Shocks.sas:3093Data Files and Code/JFE ATP Value during Shocks.sas, line 3093
create table sample1 as select *, fret-mean(fret) as abret, fret1-mean(fret1) as abret1
from sample1
group by qobs, rbm, rmom, rsize; +2 more statements set it |
d13 |
outcome in 4 | d13 = 1 (assign) JFE ATP Value during Shocks.sas:2625Data Files and Code/JFE ATP Value during Shocks.sas, line 2625
d13=1; d13 = max(b.d13) (proc sql as) JFE ATP Value during Shocks.sas:2641Data Files and Code/JFE ATP Value during Shocks.sas, line 2641
create table sample1a as select distinct a.*, max(b.d13) as d13
from sample1 as a left join act2 as b
on a.gvkeyn=b.gvkeyn and (a.snmo)<=b.nmo<=(a.nmo)
group by a.gvkeyn, a.nmo; d13 = 0 (assign) JFE ATP Value during Shocks.sas:2653Data Files and Code/JFE ATP Value during Shocks.sas, line 2653
if d13=. then d13=0; +3 more statements set it |
dewret |
outcome in 4 | dewret = a.ewret-b.ewret (proc sql as) JFE ATP Value during Shocks.sas:1063Data Files and Code/JFE ATP Value during Shocks.sas, line 1063
create table crsp6 as select a.*, b.vwret as vwret0, b.ewret as ewret0, a.vwret-b.vwret as dvwret, a.ewret-b.ewret as dewret
from crsp5 as a inner join crsp5 as b
on a.snmo=b.snmo and a.port=1 and b.port=0; dewret = a.ewret-b.ewret (proc sql as) JFE ATP Value during Shocks.sas:1157Data Files and Code/JFE ATP Value during Shocks.sas, line 1157
create table crsp6 as select a.*, b.vwret as vwret0, b.ewret as ewret0, a.vwret-b.vwret as dvwret, a.ewret-b.ewret as dewret
from crsp5 as a inner join crsp5 as b
on a.snmo=b.snmo and a.port=1 and b.port=0; |
dvwret |
outcome in 4 | dvwret = a.vwret-b.vwret (proc sql as) JFE ATP Value during Shocks.sas:1063Data Files and Code/JFE ATP Value during Shocks.sas, line 1063
create table crsp6 as select a.*, b.vwret as vwret0, b.ewret as ewret0, a.vwret-b.vwret as dvwret, a.ewret-b.ewret as dewret
from crsp5 as a inner join crsp5 as b
on a.snmo=b.snmo and a.port=1 and b.port=0; dvwret = a.vwret-b.vwret (proc sql as) JFE ATP Value during Shocks.sas:1157Data Files and Code/JFE ATP Value during Shocks.sas, line 1157
create table crsp6 as select a.*, b.vwret as vwret0, b.ewret as ewret0, a.vwret-b.vwret as dvwret, a.ewret-b.ewret as dewret
from crsp5 as a inner join crsp5 as b
on a.snmo=b.snmo and a.port=1 and b.port=0; |
capxp1c |
outcome in 2 | capxp1c = b.capxp1 (proc sql as) JFE ATP Value during Shocks.sas:2530Data Files and Code/JFE ATP Value during Shocks.sas, line 2530
create table sample2 as select a.*, b.capxp1 as capxp1c, b.sg as sgc, b.om as omc, b.sa as sac, b.ag as agc,
abs(a.nmo-b.nmo) as diffc1
from sample1 as a left join compq2 as b
on a.gvkeyn=b.gvkeyn and (a.nmo-2)<=b.nmo<=(a.nmo+2); capxp1c = capxp1c*100 (replace) JFE ATP Value during Shocks Final.do:614Data Files and Code/JFE ATP Value during Shocks Final.do, line 614
replace capxp1c=capxp1c*100 |
omc |
outcome in 2 | omc = b.om (proc sql as) JFE ATP Value during Shocks.sas:2530Data Files and Code/JFE ATP Value during Shocks.sas, line 2530
create table sample2 as select a.*, b.capxp1 as capxp1c, b.sg as sgc, b.om as omc, b.sa as sac, b.ag as agc,
abs(a.nmo-b.nmo) as diffc1
from sample1 as a left join compq2 as b
on a.gvkeyn=b.gvkeyn and (a.nmo-2)<=b.nmo<=(a.nmo+2); omc = omc*100 (replace) JFE ATP Value during Shocks Final.do:612Data Files and Code/JFE ATP Value during Shocks Final.do, line 612
replace omc=omc*100 |
sac |
outcome in 2 | sac = b.sa (proc sql as) JFE ATP Value during Shocks.sas:2530Data Files and Code/JFE ATP Value during Shocks.sas, line 2530
create table sample2 as select a.*, b.capxp1 as capxp1c, b.sg as sgc, b.om as omc, b.sa as sac, b.ag as agc,
abs(a.nmo-b.nmo) as diffc1
from sample1 as a left join compq2 as b
on a.gvkeyn=b.gvkeyn and (a.nmo-2)<=b.nmo<=(a.nmo+2); sac = sac*100 (replace) JFE ATP Value during Shocks Final.do:613Data Files and Code/JFE ATP Value during Shocks Final.do, line 613
replace sac = sac*100 |
sgc |
outcome in 2 | sgc = b.sg (proc sql as) JFE ATP Value during Shocks.sas:2530Data Files and Code/JFE ATP Value during Shocks.sas, line 2530
create table sample2 as select a.*, b.capxp1 as capxp1c, b.sg as sgc, b.om as omc, b.sa as sac, b.ag as agc,
abs(a.nmo-b.nmo) as diffc1
from sample1 as a left join compq2 as b
on a.gvkeyn=b.gvkeyn and (a.nmo-2)<=b.nmo<=(a.nmo+2); sgc = sgc*100 (replace) JFE ATP Value during Shocks Final.do:615Data Files and Code/JFE ATP Value during Shocks Final.do, line 615
replace sgc=sgc*100 |
lnatqc |
outcome in 1 | lnatqc = ln(atqc/cpi) (gen) JFE ATP Value during Shocks Final.do:720Data Files and Code/JFE ATP Value during Shocks Final.do, line 720
gen lnatqc=ln(atqc/cpi) |
premp63 |
outcome in 1 | premp63 = (prcpd/prc63)-1 (assign) JFE ATP Value during Shocks.sas:1816Data Files and Code/JFE ATP Value during Shocks.sas, line 1816
premp63 = (prcpd/prc63)-1; |
neg |
regressor in 907 | neg = 0 (assign) JFE ATP Value during Shocks.sas:673Data Files and Code/JFE ATP Value during Shocks.sas, line 673
neg=0; neg = 1 (assign) JFE ATP Value during Shocks.sas:674Data Files and Code/JFE ATP Value during Shocks.sas, line 674
if mkt<=-.1 then neg=1; neg = 0 (assign) JFE ATP Value during Shocks.sas:850Data Files and Code/JFE ATP Value during Shocks.sas, line 850
neg=0; +19 more statements set it |
comb |
regressor in 200 | comb = bcd+csd+fpd+ddd+ppd (assign) JFE ATP Value during Shocks.sas:614Data Files and Code/JFE ATP Value during Shocks.sas, line 614
comb=bcd+csd+fpd+ddd+ppd; comb = mean(comb) (proc sql as) JFE ATP Value during Shocks.sas:1052Data Files and Code/JFE ATP Value during Shocks.sas, line 1052
create table crsp5 as select distinct date, snmo, port, sum(cmve1*ret/tcmve1) as vwret, mean(ret) as ewret, mean(comb) as comb
from crsp4
group by port, snmo
order by snmo, port; comb = mean(comb) (proc sql as) JFE ATP Value during Shocks.sas:1146Data Files and Code/JFE ATP Value during Shocks.sas, line 1146
create table crsp5 as select distinct date, snmo, port, sum(cmve1*ret/tcmve1) as vwret, mean(ret) as ewret, mean(comb) as comb
from crsp4
group by port, snmo
order by snmo, port; +22 more statements set it |
betad |
regressor in 186 | betad = b.mktrf (proc sql as) JFE ATP Value during Shocks.sas:549Data Files and Code/JFE ATP Value during Shocks.sas, line 549
create table crsp2a as select a.*, b.mktrf as betad
from crsp2a as a left join beta1 as b
on a.permno=b.permno and a.snmo=b.snmo; |
blev |
regressor in 186 | blev = (dlcq+dlttq)/atq (assign) JFE ATP Value during Shocks.sas:631Data Files and Code/JFE ATP Value during Shocks.sas, line 631
blev = (dlcq+dlttq)/atq; |
edf |
regressor in 186 | edf = mean(b.edf) (proc sql as) JFE ATP Value during Shocks.sas:568Data Files and Code/JFE ATP Value during Shocks.sas, line 568
create table crsp2b as select distinct a.*, mean(b.edf) as edf
from crsp2a as a left join kmv as b
on a.permno=b.permno and (a.snmo-3)<=b.nmo<a.snmo
group by a.permno, a.snmo; |
io |
regressor in 186 | io = sum(pct) (proc sql as) JFE ATP Value during Shocks.sas:484Data Files and Code/JFE ATP Value during Shocks.sas, line 484
create table io4 as select distinct permno, nmo, sum(pct) as io
from io3
group by permno, nmo; io = b.io (proc sql as) JFE ATP Value during Shocks.sas:490Data Files and Code/JFE ATP Value during Shocks.sas, line 490
create table crsp2a as select a.*, b.io as io
from crsp2 as a left join io4 as b
on a.permno=b.permno and a.snmo=b.nmo+1; io = 0 (assign) JFE ATP Value during Shocks.sas:637Data Files and Code/JFE ATP Value during Shocks.sas, line 637
if io=. then io=0; +1 more statements set it |
lnfage |
regressor in 186 | lnfage = log(1+fage) (assign) JFE ATP Value during Shocks.sas:627Data Files and Code/JFE ATP Value during Shocks.sas, line 627
lnfage = log(1+fage); |
lnassets |
regressor in 184 | lnassets = log(atq/cpi) (assign) JFE ATP Value during Shocks.sas:619Data Files and Code/JFE ATP Value during Shocks.sas, line 619
lnassets = log(atq/cpi); |
oroa |
regressor in 184 | oroa = oibdpq/atq (assign) JFE ATP Value during Shocks.sas:634Data Files and Code/JFE ATP Value during Shocks.sas, line 634
oroa = oibdpq/atq; oroa = oibdpq/atq (assign) JFE ATP Value during Shocks.sas:2433Data Files and Code/JFE ATP Value during Shocks.sas, line 2433
oroa = oibdpq/atq; |
negt |
regressor in 86 | negt = b.neg (proc sql as) JFE ATP Value during Shocks.sas:1471Data Files and Code/JFE ATP Value during Shocks.sas, line 1471
create table sample1 as select a.*, b.neg as negt
from sample1 as a left join dates as b
on a.tqobs=b.qobs; negt = neg (assign) JFE ATP Value during Shocks.sas:1520Data Files and Code/JFE ATP Value during Shocks.sas, line 1520
if negt=. then negt=neg; negt = b.neg (proc sql as) JFE ATP Value during Shocks.sas:1736Data Files and Code/JFE ATP Value during Shocks.sas, line 1736
create table prem2b as select a.*, b.neg as negt
from prem2a as a left join dates as b
on a.qobs=b.qobs; |
post |
regressor in 25 | post = 0 (assign) JFE ATP Value during Shocks.sas:1321Data Files and Code/JFE ATP Value during Shocks.sas, line 1321
post=0; post = 1 (assign) JFE ATP Value during Shocks.sas:1332Data Files and Code/JFE ATP Value during Shocks.sas, line 1332
post=1; post = 0 (assign) JFE ATP Value during Shocks.sas:3162Data Files and Code/JFE ATP Value during Shocks.sas, line 3162
post=0; +1 more statements set it |
neg5 |
regressor in 18 | neg5 = 0 (assign) JFE ATP Value during Shocks.sas:675Data Files and Code/JFE ATP Value during Shocks.sas, line 675
neg5=0; neg5 = 1 (assign) JFE ATP Value during Shocks.sas:676Data Files and Code/JFE ATP Value during Shocks.sas, line 676
if mkt<=-.05 then neg5=1; |
pillsdc |
regressor in 16 | pillsdc = b.pill (proc sql as) JFE ATP Value during Shocks.sas:2949Data Files and Code/JFE ATP Value during Shocks.sas, line 2949
create table sample1 as select a.*, b.pill as pillsdc
from sample as a left join samp1 as b
on a.gvkeyn=b.gvkeyn and a.qobs=b.qobs+1; pillsdc = pill (assign) JFE ATP Value during Shocks.sas:3058Data Files and Code/JFE ATP Value during Shocks.sas, line 3058
if pillsdc=. then pillsdc=pill; pillsdc = pill (replace) JFE ATP Value during Shocks Final.do:996Data Files and Code/JFE ATP Value during Shocks Final.do, line 996
replace pillsdc=pill if pillsdc==. +2 more statements set it |
qobs |
regressor in 15 | qobs = (y-2000)*4+qtr (assign) Hoberg and Phillips Booms and Busts.sas:118Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 118
qobs = (y-2000)*4+qtr; qobs = (y-2000)*4+qtr (assign) Hoberg and Phillips Booms and Busts.sas:133Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 133
qobs = (y-2000)*4+qtr; qobs = (y-2000)*4+qtr (assign) Hoberg and Phillips Booms and Busts.sas:215Data Files and Code/Hoberg and Phillips Booms and Busts.sas, line 215
qobs = (y-2000)*4+qtr; +23 more statements set it |
cain_atp_wo5 |
regressor in 12 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
cash |
regressor in 12 | cash = cheq/atq (assign) JFE ATP Value during Shocks.sas:630Data Files and Code/JFE ATP Value during Shocks.sas, line 630
cash = cheq/atq; cash = cheq/atq (assign) JFE ATP Value during Shocks.sas:3501Data Files and Code/JFE ATP Value during Shocks.sas, line 3501
cash = cheq/atq; |
cbdefml |
regressor in 12 | cbdefml = b.sim-1 (proc sql as) JFE ATP Value during Shocks.sas:2963Data Files and Code/JFE ATP Value during Shocks.sas, line 2963
create table sample1 as select a.*, b.sim-1 as cbdefml
from sample1 as a left join cb as b
on a.gvkeyn=b.gvkeyn and a.fyearq=b.fyear+1; cbdefml = cb (assign) JFE ATP Value during Shocks.sas:3059Data Files and Code/JFE ATP Value during Shocks.sas, line 3059
if cbdefml=. then cbdefml=cb; cbdefml = cb (replace) JFE ATP Value during Shocks Final.do:997Data Files and Code/JFE ATP Value during Shocks Final.do, line 997
replace cbdefml=cb if cbdefml==. +2 more statements set it |
dmat |
regressor in 12 | dmat = dlcq/(dlcq+dlttq) (assign) JFE ATP Value during Shocks.sas:3503Data Files and Code/JFE ATP Value during Shocks.sas, line 3503
dmat = dlcq/(dlcq+dlttq); dmat = 0 (assign) JFE ATP Value during Shocks.sas:3504Data Files and Code/JFE ATP Value during Shocks.sas, line 3504
if dmat=. then dmat=0; |
hml |
regressor in 12 | hml = exp(sum(log(1+b.hml)))-1 (proc sql as) JFE ATP Value during Shocks.sas:1090Data Files and Code/JFE ATP Value during Shocks.sas, line 1090
exp(sum(log(1+b.mktrf)))-1 as mktrf, exp(sum(log(1+b.smb)))-1 as smb, exp(sum(log(1+b.hml)))-1 as hml, exp(sum(log(1+b.umd)))-1 as umd
from ff a inner join ff as b
on (a.nmo)<=b.nmo<=a.nmo+2
group by a.nmo; hml = exp(sum(log(1+b.hml)))-1 (proc sql as) JFE ATP Value during Shocks.sas:1182Data Files and Code/JFE ATP Value during Shocks.sas, line 1182
exp(sum(log(1+b.mktrf)))-1 as mktrf, exp(sum(log(1+b.smb)))-1 as smb, exp(sum(log(1+b.hml)))-1 as hml, exp(sum(log(1+b.umd)))-1 as umd
from ff a inner join ff as b
on (a.nmo)<=b.nmo<=a.nmo+2
group by a.nmo; |
mktrf |
regressor in 12 | mktrf = exp(sum(log(1+b.mktrf)))-1 (proc sql as) JFE ATP Value during Shocks.sas:1090Data Files and Code/JFE ATP Value during Shocks.sas, line 1090
exp(sum(log(1+b.mktrf)))-1 as mktrf, exp(sum(log(1+b.smb)))-1 as smb, exp(sum(log(1+b.hml)))-1 as hml, exp(sum(log(1+b.umd)))-1 as umd
from ff a inner join ff as b
on (a.nmo)<=b.nmo<=a.nmo+2
group by a.nmo; mktrf = exp(sum(log(1+b.mktrf)))-1 (proc sql as) JFE ATP Value during Shocks.sas:1182Data Files and Code/JFE ATP Value during Shocks.sas, line 1182
exp(sum(log(1+b.mktrf)))-1 as mktrf, exp(sum(log(1+b.smb)))-1 as smb, exp(sum(log(1+b.hml)))-1 as hml, exp(sum(log(1+b.umd)))-1 as umd
from ff a inner join ff as b
on (a.nmo)<=b.nmo<=a.nmo+2
group by a.nmo; |
ps_vwf |
regressor in 12 | ps_vwf = exp(sum(log(1+b.ps_vwf)))-1 (proc sql as) JFE ATP Value during Shocks.sas:1082Data Files and Code/JFE ATP Value during Shocks.sas, line 1082
create table ps1 as select distinct a.nmo, a.year, a.month, exp(sum(log(1+b.ps_vwf)))-1 as ps_vwf, exp(sum(log(1+b.ps_innov)))-1 as ps_innov
from ps a inner join ps as b
on (a.nmo)<=b.nmo<=a.nmo+2
group by a.nmo; ps_vwf = exp(sum(log(1+b.ps_vwf)))-1 (proc sql as) JFE ATP Value during Shocks.sas:1174Data Files and Code/JFE ATP Value during Shocks.sas, line 1174
create table ps1 as select distinct a.nmo, a.year, a.month, exp(sum(log(1+b.ps_vwf)))-1 as ps_vwf, exp(sum(log(1+b.ps_innov)))-1 as ps_innov
from ps a inner join ps as b
on (a.nmo)<=b.nmo<=a.nmo+2
group by a.nmo; |
smb |
regressor in 12 | smb = exp(sum(log(1+b.smb)))-1 (proc sql as) JFE ATP Value during Shocks.sas:1090Data Files and Code/JFE ATP Value during Shocks.sas, line 1090
exp(sum(log(1+b.mktrf)))-1 as mktrf, exp(sum(log(1+b.smb)))-1 as smb, exp(sum(log(1+b.hml)))-1 as hml, exp(sum(log(1+b.umd)))-1 as umd
from ff a inner join ff as b
on (a.nmo)<=b.nmo<=a.nmo+2
group by a.nmo; smb = exp(sum(log(1+b.smb)))-1 (proc sql as) JFE ATP Value during Shocks.sas:1182Data Files and Code/JFE ATP Value during Shocks.sas, line 1182
exp(sum(log(1+b.mktrf)))-1 as mktrf, exp(sum(log(1+b.smb)))-1 as smb, exp(sum(log(1+b.hml)))-1 as hml, exp(sum(log(1+b.umd)))-1 as umd
from ff a inner join ff as b
on (a.nmo)<=b.nmo<=a.nmo+2
group by a.nmo; |
umd |
regressor in 12 | umd = exp(sum(log(1+b.umd)))-1 (proc sql as) JFE ATP Value during Shocks.sas:1090Data Files and Code/JFE ATP Value during Shocks.sas, line 1090
exp(sum(log(1+b.mktrf)))-1 as mktrf, exp(sum(log(1+b.smb)))-1 as smb, exp(sum(log(1+b.hml)))-1 as hml, exp(sum(log(1+b.umd)))-1 as umd
from ff a inner join ff as b
on (a.nmo)<=b.nmo<=a.nmo+2
group by a.nmo; umd = exp(sum(log(1+b.umd)))-1 (proc sql as) JFE ATP Value during Shocks.sas:1182Data Files and Code/JFE ATP Value during Shocks.sas, line 1182
exp(sum(log(1+b.mktrf)))-1 as mktrf, exp(sum(log(1+b.smb)))-1 as smb, exp(sum(log(1+b.hml)))-1 as hml, exp(sum(log(1+b.umd)))-1 as umd
from ff a inner join ff as b
on (a.nmo)<=b.nmo<=a.nmo+2
group by a.nmo; |
betadt |
regressor in 8 | betadt = betadz (assign) JFE ATP Value during Shocks.sas:1535Data Files and Code/JFE ATP Value during Shocks.sas, line 1535
if zero=0 and tdeal=1 then betadt=betadz; betadt = betad (assign) JFE ATP Value during Shocks.sas:1536Data Files and Code/JFE ATP Value during Shocks.sas, line 1536
if betadt=. then betadt=betad; |
blevt |
regressor in 8 | blevt = ((dlttqc+dlcqc)/atqc) (assign) JFE ATP Value during Shocks.sas:1527Data Files and Code/JFE ATP Value during Shocks.sas, line 1527
if zero=0 and tdeal=1 then blevt=((dlttqc+dlcqc)/atqc); blevt = blev (assign) JFE ATP Value during Shocks.sas:1528Data Files and Code/JFE ATP Value during Shocks.sas, line 1528
if blevt=. then blevt=blev; |
bmt |
regressor in 8 | bmt = (ceqqc/(cmve/1000)) (assign) JFE ATP Value during Shocks.sas:1529Data Files and Code/JFE ATP Value during Shocks.sas, line 1529
if zero=0 and tdeal=1 then bmt=(ceqqc/(cmve/1000)); bmt = bm (assign) JFE ATP Value during Shocks.sas:1530Data Files and Code/JFE ATP Value during Shocks.sas, line 1530
if bmt=. then bmt=bm; |
bylaw |
regressor in 8 | bylaw = . (replace) JFE ATP Value during Shocks Final.do:1122Data Files and Code/JFE ATP Value during Shocks Final.do, line 1122
replace bylaw=. if year<1991 |
6 · Models, by the table or figure they feed — 180 estimations, 0 traced into 0 exhibits
Estimations not traced to a table or figure · 180
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
reghdfepanel fe |
mb |
comb qobs
|
fqtr, gvkeyn | default | JFE ATP Value during Shocks Final.do:72Data Files and Code/JFE ATP Value during Shocks Final.do, line 72
reghdfe mb comb qobs, a(fqtr gvkeyn) |
reghdfepanel fe |
`X' |
rcomb
|
— | cluster: incorp | JFE ATP Value during Shocks Final.do:95Data Files and Code/JFE ATP Value during Shocks Final.do, line 95
reghdfe `X' rcomb if sample==1 & neg==1, noabsorb cluster(incorp) |
reghdfepanel fe |
mb |
c.comb##c.neg qobs
|
gvkeyn, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:133Data Files and Code/JFE ATP Value during Shocks Final.do, line 133
reghdfe mb c.comb##c.$Z qobs, a(gvkeyn fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe mb c.comb##c.neg qobs, a(gvkeyn fqtr) cluster(incorp qobs) |
reghdfepanel fe |
mb |
c.comb##c.neg lnassets c.lnassets#c.neg lnfage c.lnfage#c.neg oroa c.oroa#c.neg blev c.blev#c.neg io c.io#c.neg edf +4 more
|
gvkeyn, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:136Data Files and Code/JFE ATP Value during Shocks Final.do, line 136
reghdfe mb c.comb##c.$Z $A $B qobs, a(gvkeyn fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe mb c.comb##c.neg lnassets c.lnassets#c.neg lnfage c.lnfage#c.neg oroa c.oroa#c.neg blev c.blev#c.neg io c.io#c.neg edf c.edf#c.neg betad c.betad#c.neg qobs, a(gvkeyn fqtr) cluster(incorp qobs) |
reghdfepanel fe |
mb |
c.comb##c.neg
|
gvkeyn, sic3#qobs, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:139Data Files and Code/JFE ATP Value during Shocks Final.do, line 139
reghdfe mb c.comb##c.$Z, a(gvkeyn sic3#qobs fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe mb c.comb##c.neg, a(gvkeyn sic3#qobs fqtr) cluster(incorp qobs) |
reghdfepanel fe |
mb |
c.comb##c.neg lnassets c.lnassets#c.neg lnfage c.lnfage#c.neg oroa c.oroa#c.neg blev c.blev#c.neg io c.io#c.neg edf +3 more
|
gvkeyn, sic3#qobs, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:142Data Files and Code/JFE ATP Value during Shocks Final.do, line 142
reghdfe mb c.comb##c.$Z $A $B , a(gvkeyn sic3#qobs fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe mb c.comb##c.neg lnassets c.lnassets#c.neg lnfage c.lnfage#c.neg oroa c.oroa#c.neg blev c.blev#c.neg io c.io#c.neg edf c.edf#c.neg betad c.betad#c.neg , a(gvkeyn sic3#qobs fqtr) cluster(incorp qobs) |
reghdfepanel fe |
fret |
c.comb##c.neg qobs i.port c.neg#i.port
|
gvkeyn, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:145Data Files and Code/JFE ATP Value during Shocks Final.do, line 145
reghdfe fret c.comb##c.$Z qobs i.port c.neg#i.port, a(gvkeyn fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe fret c.comb##c.neg qobs i.port c.neg#i.port, a(gvkeyn fqtr) cluster(incorp qobs) |
reghdfepanel fe |
fret |
c.comb##c.neg lnassets c.lnassets#c.neg lnfage c.lnfage#c.neg oroa c.oroa#c.neg blev c.blev#c.neg io c.io#c.neg edf +6 more
|
gvkeyn, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:148Data Files and Code/JFE ATP Value during Shocks Final.do, line 148
reghdfe fret c.comb##c.$Z $A $B qobs i.port c.neg#i.port, a(gvkeyn fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe fret c.comb##c.neg lnassets c.lnassets#c.neg lnfage c.lnfage#c.neg oroa c.oroa#c.neg blev c.blev#c.neg io c.io#c.neg edf c.edf#c.neg betad c.betad#c.neg qobs i.port c.neg#i.port, a(gvkeyn fqtr) cluster(incorp qobs) |
reghdfepanel fe |
fret |
c.comb##c.neg
|
gvkeyn, port#qobs, sic3#qobs, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:151Data Files and Code/JFE ATP Value during Shocks Final.do, line 151
reghdfe fret c.comb##c.$Z, a(gvkeyn port#qobs sic3#qobs fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe fret c.comb##c.neg, a(gvkeyn port#qobs sic3#qobs fqtr) cluster(incorp qobs) |
reghdfepanel fe |
fret |
c.comb##c.neg lnassets c.lnassets#c.neg lnfage c.lnfage#c.neg oroa c.oroa#c.neg blev c.blev#c.neg io c.io#c.neg edf +3 more
|
gvkeyn, port#qobs, sic3#qobs, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:154Data Files and Code/JFE ATP Value during Shocks Final.do, line 154
reghdfe fret c.comb##c.$Z $A $B, a(gvkeyn port#qobs sic3#qobs fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe fret c.comb##c.neg lnassets c.lnassets#c.neg lnfage c.lnfage#c.neg oroa c.oroa#c.neg blev c.blev#c.neg io c.io#c.neg edf c.edf#c.neg betad c.betad#c.neg, a(gvkeyn port#qobs sic3#qobs fqtr) cluster(incorp qobs) |
reghdfepanel fe |
mb |
c.comb##i.shock
|
gvkeyn, sic3#qobs, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:186Data Files and Code/JFE ATP Value during Shocks Final.do, line 186
reghdfe mb c.comb##i.shock, a(gvkeyn sic3#qobs fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe mb c.comb##i.shock, a(gvkeyn sic3#qobs fqtr) cluster(incorp qobs) |
reghdfepanel fe |
mb |
c.comb##i.shock lnassets c.lnassets#c.neg lnfage c.lnfage#c.neg oroa c.oroa#c.neg blev c.blev#c.neg io c.io#c.neg edf +3 more
|
gvkeyn, sic3#qobs, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:189Data Files and Code/JFE ATP Value during Shocks Final.do, line 189
reghdfe mb c.comb##i.shock $A $B , a(gvkeyn sic3#qobs fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe mb c.comb##i.shock lnassets c.lnassets#c.neg lnfage c.lnfage#c.neg oroa c.oroa#c.neg blev c.blev#c.neg io c.io#c.neg edf c.edf#c.neg betad c.betad#c.neg , a(gvkeyn sic3#qobs fqtr) cluster(incorp qobs) |
reghdfepanel fe |
fret |
c.comb##i.shock
|
gvkeyn, port#qobs, sic3#qobs, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:192Data Files and Code/JFE ATP Value during Shocks Final.do, line 192
reghdfe fret c.comb##i.shock, a(gvkeyn port#qobs sic3#qobs fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe fret c.comb##i.shock, a(gvkeyn port#qobs sic3#qobs fqtr) cluster(incorp qobs) |
reghdfepanel fe |
fret |
c.comb##i.shock lnassets c.lnassets#c.neg lnfage c.lnfage#c.neg oroa c.oroa#c.neg blev c.blev#c.neg io c.io#c.neg edf +3 more
|
gvkeyn, port#qobs, sic3#qobs, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:195Data Files and Code/JFE ATP Value during Shocks Final.do, line 195
reghdfe fret c.comb##i.shock $A $B, a(gvkeyn port#qobs sic3#qobs fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe fret c.comb##i.shock lnassets c.lnassets#c.neg lnfage c.lnfage#c.neg oroa c.oroa#c.neg blev c.blev#c.neg io c.io#c.neg edf c.edf#c.neg betad c.betad#c.neg, a(gvkeyn port#qobs sic3#qobs fqtr) cluster(incorp qobs) |
reghdfepanel fe |
mb |
c.comb##c.neg4 c.comb##c.neg3 c.comb##c.neg2 c.comb##c.neg1 c.comb##c.neg c.comb##c.negp1 c.comb##c.negp2 c.comb##c.negp3 c.comb##c.negp4 qobs
|
gvkeyn, sic3#qobs, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:237Data Files and Code/JFE ATP Value during Shocks Final.do, line 237
reghdfe mb c.comb##c.neg4 c.comb##c.neg3 c.comb##c.neg2 c.comb##c.neg1 c.comb##c.neg c.comb##c.negp1 c.comb##c.negp2 c.comb##c.negp3 c.comb##c.negp4 qobs, a(gvkeyn sic3#qobs fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe mb c.comb##c.neg4 c.comb##c.neg3 c.comb##c.neg2 c.comb##c.neg1 c.comb##c.neg c.comb##c.negp1 c.comb##c.negp2 c.comb##c.negp3 c.comb##c.negp4 qobs, a(gvkeyn sic3#qobs fqtr) cluster(incorp qobs) |
reghdfepanel fe |
mb |
c.comb##c.neg4 c.comb##c.neg3 c.comb##c.neg2 c.comb##c.neg1 c.comb##c.neg c.comb##c.negp1 c.comb##c.negp2 c.comb##c.negp3 c.comb##c.negp4 lnassets c.lnassets#c.neg lnfage +11 more
|
gvkeyn, sic3#qobs, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:240Data Files and Code/JFE ATP Value during Shocks Final.do, line 240
reghdfe mb c.comb##c.neg4 c.comb##c.neg3 c.comb##c.neg2 c.comb##c.neg1 c.comb##c.neg c.comb##c.negp1 c.comb##c.negp2 c.comb##c.negp3 c.comb##c.negp4 $A $B , a(gvkeyn sic3#qobs fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe mb c.comb##c.neg4 c.comb##c.neg3 c.comb##c.neg2 c.comb##c.neg1 c.comb##c.neg c.comb##c.negp1 c.comb##c.negp2 c.comb##c.negp3 c.comb##c.negp4 lnassets c.lnassets#c.neg lnfage c.lnfage#c.neg oroa c.oroa#c.neg blev c.blev#c.neg io c.io … |
reghdfepanel fe |
fret |
c.comb##c.neg4 c.comb##c.neg3 c.comb##c.neg2 c.comb##c.neg1 c.comb##c.neg c.comb##c.negp1 c.comb##c.negp2 c.comb##c.negp3 c.comb##c.negp4 qobs
|
gvkeyn, port#qobs, sic3#qobs, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:243Data Files and Code/JFE ATP Value during Shocks Final.do, line 243
reghdfe fret c.comb##c.neg4 c.comb##c.neg3 c.comb##c.neg2 c.comb##c.neg1 c.comb##c.neg c.comb##c.negp1 c.comb##c.negp2 c.comb##c.negp3 c.comb##c.negp4 qobs, a(gvkeyn port#qobs sic3#qobs fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe fret c.comb##c.neg4 c.comb##c.neg3 c.comb##c.neg2 c.comb##c.neg1 c.comb##c.neg c.comb##c.negp1 c.comb##c.negp2 c.comb##c.negp3 c.comb##c.negp4 qobs, a(gvkeyn port#qobs sic3#qobs fqtr) cluster(incorp qobs) |
reghdfepanel fe |
fret |
c.comb##c.neg4 c.comb##c.neg3 c.comb##c.neg2 c.comb##c.neg1 c.comb##c.neg c.comb##c.negp1 c.comb##c.negp2 c.comb##c.negp3 c.comb##c.negp4 lnassets c.lnassets#c.neg lnfage +11 more
|
gvkeyn, port#qobs, sic3#qobs, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:246Data Files and Code/JFE ATP Value during Shocks Final.do, line 246
reghdfe fret c.comb##c.neg4 c.comb##c.neg3 c.comb##c.neg2 c.comb##c.neg1 c.comb##c.neg c.comb##c.negp1 c.comb##c.negp2 c.comb##c.negp3 c.comb##c.negp4 $A $B , a(gvkeyn port#qobs sic3#qobs fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe fret c.comb##c.neg4 c.comb##c.neg3 c.comb##c.neg2 c.comb##c.neg1 c.comb##c.neg c.comb##c.negp1 c.comb##c.negp2 c.comb##c.negp3 c.comb##c.negp4 lnassets c.lnassets#c.neg lnfage c.lnfage#c.neg oroa c.oroa#c.neg blev c.blev#c.neg io c. … |
neweyols |
dvwret |
neg mktrf smb hml umd ps_vwf
|
— | newey_west | JFE ATP Value during Shocks Final.do:283Data Files and Code/JFE ATP Value during Shocks Final.do, line 283
newey dvwret neg mktrf smb hml umd ps_vwf, lag(3) |
neweyols |
dvwret |
neg mktrf c.mktrf#c.neg smb c.smb#c.neg hml c.hml#c.neg umd c.umd#c.neg ps_vwf c.neg#c.ps_vwf
|
— | newey_west | JFE ATP Value during Shocks Final.do:285Data Files and Code/JFE ATP Value during Shocks Final.do, line 285
newey dvwret neg mktrf c.mktrf#c.neg smb c.smb#c.neg hml c.hml#c.neg umd c.umd#c.neg ps_vwf c.neg#c.ps_vwf, lag(3) |
neweyols |
dewret |
neg mktrf smb hml umd ps_vwf
|
— | newey_west | JFE ATP Value during Shocks Final.do:287Data Files and Code/JFE ATP Value during Shocks Final.do, line 287
newey dewret neg mktrf smb hml umd ps_vwf, lag(3) |
neweyols |
dewret |
neg mktrf c.mktrf#c.neg smb c.smb#c.neg hml c.hml#c.neg umd c.umd#c.neg ps_vwf c.neg#c.ps_vwf
|
— | newey_west | JFE ATP Value during Shocks Final.do:289Data Files and Code/JFE ATP Value during Shocks Final.do, line 289
newey dewret neg mktrf c.mktrf#c.neg smb c.smb#c.neg hml c.hml#c.neg umd c.umd#c.neg ps_vwf c.neg#c.ps_vwf, lag(3) |
neweyols |
dvwret |
neg4 neg3 neg2 neg1 neg negp1 negp2 negp3 negp4 mktrf smb hml +2 more
|
— | newey_west | JFE ATP Value during Shocks Final.do:311Data Files and Code/JFE ATP Value during Shocks Final.do, line 311
newey dvwret neg4 neg3 neg2 neg1 neg negp1 negp2 negp3 negp4 mktrf smb hml umd ps_vwf, lag(3) |
neweyols |
dvwret |
neg4 neg3 neg2 neg1 neg negp1 negp2 negp3 negp4 mktrf c.mktrf#c.neg smb +7 more
|
— | newey_west | JFE ATP Value during Shocks Final.do:313Data Files and Code/JFE ATP Value during Shocks Final.do, line 313
newey dvwret neg4 neg3 neg2 neg1 neg negp1 negp2 negp3 negp4 mktrf c.mktrf#c.neg smb c.smb#c.neg hml c.hml#c.neg umd c.umd#c.neg ps_vwf c.neg#c.ps_vwf, lag(3) |
neweyols |
dewret |
neg4 neg3 neg2 neg1 neg negp1 negp2 negp3 negp4 mktrf smb hml +2 more
|
— | newey_west | JFE ATP Value during Shocks Final.do:315Data Files and Code/JFE ATP Value during Shocks Final.do, line 315
newey dewret neg4 neg3 neg2 neg1 neg negp1 negp2 negp3 negp4 mktrf smb hml umd ps_vwf, lag(3) |
neweyols |
dewret |
neg4 neg3 neg2 neg1 neg negp1 negp2 negp3 negp4 mktrf c.mktrf#c.neg smb +7 more
|
— | newey_west | JFE ATP Value during Shocks Final.do:317Data Files and Code/JFE ATP Value during Shocks Final.do, line 317
newey dewret neg4 neg3 neg2 neg1 neg negp1 negp2 negp3 negp4 mktrf c.mktrf#c.neg smb c.smb#c.neg hml c.hml#c.neg umd c.umd#c.neg ps_vwf c.neg#c.ps_vwf, lag(3) |
reghdfepanel fe |
`X' |
rcomb
|
— | cluster: incorp | JFE ATP Value during Shocks Final.do:356Data Files and Code/JFE ATP Value during Shocks Final.do, line 356
reghdfe `X' rcomb if post==0, noabsorb cluster(incorp) |
reghdfepanel fe |
mb |
c.comb##c.post
|
— | cluster: incorp | JFE ATP Value during Shocks Final.do:379Data Files and Code/JFE ATP Value during Shocks Final.do, line 379
reghdfe mb c.comb##c.post, noabsorb cluster(incorp) |
reghdfepanel fe |
mb |
c.comb##c.post lnassets c.lnassets#c.post lnfage c.lnfage#c.post oroa c.oroa#c.post blev c.blev#c.post io c.io#c.post edf +3 more
|
— | cluster: incorp | JFE ATP Value during Shocks Final.do:382Data Files and Code/JFE ATP Value during Shocks Final.do, line 382
reghdfe mb c.comb##c.post $A $B, noabsorb cluster(incorp)
as we read it (macros filled in / loop expanded):
reghdfe mb c.comb##c.post lnassets c.lnassets#c.post lnfage c.lnfage#c.post oroa c.oroa#c.post blev c.blev#c.post io c.io#c.post edf c.edf#c.post betad c.betad#c.post, noabsorb cluster(incorp) |
reghdfepanel fe |
abret |
c.comb##c.post
|
— | cluster: incorp | JFE ATP Value during Shocks Final.do:385Data Files and Code/JFE ATP Value during Shocks Final.do, line 385
reghdfe abret c.comb##c.post, noabsorb cluster(incorp) |
reghdfepanel fe |
abret |
c.comb##c.post lnassets c.lnassets#c.post lnfage c.lnfage#c.post oroa c.oroa#c.post blev c.blev#c.post io c.io#c.post edf +3 more
|
— | cluster: incorp | JFE ATP Value during Shocks Final.do:388Data Files and Code/JFE ATP Value during Shocks Final.do, line 388
reghdfe abret c.comb##c.post $A $B, noabsorb cluster(incorp)
as we read it (macros filled in / loop expanded):
reghdfe abret c.comb##c.post lnassets c.lnassets#c.post lnfage c.lnfage#c.post oroa c.oroa#c.post blev c.blev#c.post io c.io#c.post edf c.edf#c.post betad c.betad#c.post, noabsorb cluster(incorp) |
reghdfepanel fe |
premp63 |
c.negt##c.comb qobs
|
sic3, incorp | cluster: qobs, incorp | JFE ATP Value during Shocks Final.do:415Data Files and Code/JFE ATP Value during Shocks Final.do, line 415
reghdfe premp63 c.negt##c.comb qobs, a(sic3 incorp) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe premp63 c.negt##c.comb qobs, a(sic3 incorp) cluster(qobs incorp) |
reghdfepanel fe |
`X' |
c.negt##c.rcomb
|
— | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:439Data Files and Code/JFE ATP Value during Shocks Final.do, line 439
reghdfe `X' c.negt##c.rcomb, noabsorb cluster(incorp qobs) |
reghdfepanel fe |
`Y' |
c.negt##c.comb qobs
|
sic3, incorp | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:463Data Files and Code/JFE ATP Value during Shocks Final.do, line 463
reghdfe `Y' c.$Z##c.comb qobs, a(sic3 incorp) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe `Y' c.negt##c.comb qobs, a(sic3 incorp) cluster(incorp qobs) |
reghdfepanel fe |
`Y' |
c.negt##c.comb lnassets c.lnassets#c.negt lnfage c.lnfage#c.negt oroa c.oroa#c.negt blev c.blev#c.negt io c.io#c.negt edf +14 more
|
sic3, incorp | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:466Data Files and Code/JFE ATP Value during Shocks Final.do, line 466
reghdfe `Y' c.$Z##c.comb $A $B qobs, a(sic3 incorp) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe `Y' c.negt##c.comb lnassets c.lnassets#c.negt lnfage c.lnfage#c.negt oroa c.oroa#c.negt blev c.blev#c.negt io c.io#c.negt edf c.edf#c.negt betad c.betad#c.negt pctheld c.pctheld#c.negt pctacqc c.pctacqc#c.negt pctcash c.pctcash#c.ne … |
reghdfepanel fe |
`Y' |
c.negt##c.comb
|
sic3, qobs, incorp | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:469Data Files and Code/JFE ATP Value during Shocks Final.do, line 469
reghdfe `Y' c.$Z##c.comb, a(sic3 qobs incorp) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe `Y' c.negt##c.comb, a(sic3 qobs incorp) cluster(incorp qobs) |
reghdfepanel fe |
`Y' |
c.negt##c.comb lnassets c.lnassets#c.negt lnfage c.lnfage#c.negt oroa c.oroa#c.negt blev c.blev#c.negt io c.io#c.negt edf +13 more
|
sic3, qobs, incorp | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:472Data Files and Code/JFE ATP Value during Shocks Final.do, line 472
reghdfe `Y' c.$Z##c.comb $A $B , a(sic3 qobs incorp) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe `Y' c.negt##c.comb lnassets c.lnassets#c.negt lnfage c.lnfage#c.negt oroa c.oroa#c.negt blev c.blev#c.negt io c.io#c.negt edf c.edf#c.negt betad c.betad#c.negt pctheld c.pctheld#c.negt pctacqc c.pctacqc#c.negt pctcash c.pctcash#c.ne … |
reghdfepanel fe |
mb |
c.comb##c.neg##c.`R1'
|
gvkeyn, sic3#qobs, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:526Data Files and Code/JFE ATP Value during Shocks Final.do, line 526
reghdfe mb c.comb##c.neg##c.`R1', a(gvkeyn sic3#qobs fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe mb c.comb##c.neg##c.`R1', a(gvkeyn sic3#qobs fqtr) cluster(incorp qobs) |
reghdfepanel fe |
mb |
c.comb##c.neg##c.`R1' lnassets c.lnassets#c.neg lnfage c.lnfage#c.neg oroa c.oroa#c.neg blev c.blev#c.neg io c.io#c.neg edf +3 more
|
gvkeyn, sic3#qobs, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:531Data Files and Code/JFE ATP Value during Shocks Final.do, line 531
reghdfe mb c.comb##c.neg##c.`R1' $A $B, a(gvkeyn sic3#qobs fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe mb c.comb##c.neg##c.`R1' lnassets c.lnassets#c.neg lnfage c.lnfage#c.neg oroa c.oroa#c.neg blev c.blev#c.neg io c.io#c.neg edf c.edf#c.neg betad c.betad#c.neg, a(gvkeyn sic3#qobs fqtr) cluster(incorp qobs) |
reghdfepanel fe |
fret |
c.comb##c.neg##c.`R1'
|
gvkeyn, port#qobs, sic3#qobs, fqtr | cluster: incorp, qobs | JFE ATP Value during Shocks Final.do:536Data Files and Code/JFE ATP Value during Shocks Final.do, line 536
reghdfe fret c.comb##c.neg##c.`R1', a(gvkeyn port#qobs sic3#qobs fqtr) cluster($cluster)
as we read it (macros filled in / loop expanded):
reghdfe fret c.comb##c.neg##c.`R1', a(gvkeyn port#qobs sic3#qobs fqtr) cluster(incorp qobs) |
Tables and figures the code writes:
results.csv JFE ATP Value during Shocks Final.do:79
Data Files and Code/JFE ATP Value during Shocks Final.do, line 79
esttab using results.csv , replace cells("count mean sd p5 p25 p50 p75 p95")
7 · Figures: how each is drawn — 7 figures in the code (command, layers, options, the file it is saved to)
event-study plot 4 · coefficient plot 2 · bar 1
| command | layers | variables | options | saved as | where |
|---|---|---|---|---|---|
graph barbar
|
bar |
y obs0, obs1, obs2, obs3, obs4, obs5
by quarter
|
ytitle Number of Firms · legend cols(3) size(small) order(1 ATP=0 2 ATP=1 3 ATP=2 4 ATP=3 5 ATP=4 6 ATP=5) |
not saved | JFE ATP Value during Shocks Final.do:56Data Files and Code/JFE ATP Value during Shocks Final.do, line 56
graph bar obs0 obs1 obs2 obs3 obs4 obs5, over(quarter, label(angle(45) labsize(small))) bar(1,color(ltblue*.5)) bar(2,color(ltblue*1.1)) bar(3,color(blue*.6)) bar(4,color(blue)) bar(5,color(blue*1.5)) bar(6,color(dknavy … |
coefplotcoefficient plot
|
coefplot + coefplot |
estimates mb3, mb4
|
title DV = Tobin's Q_t · ytitle Shock { c 215} ATP Coefficient · yline 0 · ci rcap · legend symxsize(small) size(vsmall) · vertical yes |
temp4.gph |
JFE ATP Value during Shocks Final.do:204Data Files and Code/JFE ATP Value during Shocks Final.do, line 204
coefplot (mb3, label(No Controls)) (mb4, label(Full Controls)), byopts(compact cols(2)) coeflabels(, angle(45)) vertical levels(90) ciopts(lwidth(.5) recast(rcap)) msize(1.5) keep(1.shock#c.comb 2.shock#c.comb 3.shock#c. … |
coefplotcoefficient plot
|
coefplot + coefplot |
estimates fret3, fret4
|
title DV = Shareholder Return_t · ytitle Shock { c 215} ATP Coefficient · yline 0 · ci rcap · legend symxsize(small) size(vsmall) · vertical yes |
temp5.gph |
JFE ATP Value during Shocks Final.do:210Data Files and Code/JFE ATP Value during Shocks Final.do, line 210
coefplot (fret3, label(No Controls)) (fret4, label(Full Controls)), byopts(compact cols(2)) coeflabels(, angle(45)) vertical levels(90) ciopts(lwidth(.5) recast(rcap)) msize(1.5) keep(1.shock#c.comb 2.shock#c.comb 3.sho … |
coefplotevent-study plot
|
coefplot + coefplot |
estimates mb1, mb2
|
title DV = Tobin's Q_t · xtitle Time Relative to Shock · ytitle Shock { c 215} ATP Coefficient · xline 5 · yline 0 · ci rcap · legend symxsize(small) size(vsmall) · vertical yes |
temp.gph |
JFE ATP Value during Shocks Final.do:253Data Files and Code/JFE ATP Value during Shocks Final.do, line 253
coefplot (mb1, label(No Controls)) (mb2, label(Full Controls)), byopts(compact cols(2) yrescale) vertical levels(90) ciopts(lwidth(.5) recast(rcap)) msize(2) keep(c.comb#c.neg4 c.comb#c.neg3 c.comb#c.neg2 c.comb#c.neg1 … |
coefplotevent-study plot
|
coefplot + coefplot |
estimates fret1, fret2
|
title DV = Shareholder Return_t · xtitle Time Relative to Shock · ytitle Shock { c 215} ATP Coefficient · xline 5 · yline 0 · ci rcap · legend symxsize(small) size(vsmall) · vertical yes |
temp1.gph |
JFE ATP Value during Shocks Final.do:257Data Files and Code/JFE ATP Value during Shocks Final.do, line 257
coefplot (fret1, label(No Controls)) (fret2, label(Full Controls)), byopts(compact cols(2) yrescale) vertical levels(90) ciopts(lwidth(.5) recast(rcap)) msize(2) keep(c.comb#c.neg4 c.comb#c.neg3 c.comb#c.neg2 c.comb#c.n … |
coefplotevent-study plot
|
coefplot + coefplot |
estimates m1, m2
|
title DV = VW Shareholder Return High ATP - Low ATP · xtitle Time Relative to Shock · ytitle Shock Coefficient · xline 5 · yline 0 · ci rcap · legend symxsize(small) size(vsmall) · vertical yes |
temp.gph |
JFE ATP Value during Shocks Final.do:324Data Files and Code/JFE ATP Value during Shocks Final.do, line 324
coefplot (m1, label(Controls)) (m2, label(Interacted Controls)), byopts(compact cols(2) yrescale) vertical levels(90) ciopts(lwidth(.5) recast(rcap)) msize(2) keep(neg4 neg3 neg2 neg1 neg negp1 negp2 negp3 negp4) rename … |
coefplotevent-study plot
|
coefplot + coefplot |
estimates m3, m4
|
title DV = EW Shareholder Return High ATP - Low ATP · xtitle Time Relative to Shock · ytitle Shock Coefficient · xline 5 · yline 0 · ci rcap · legend symxsize(small) size(vsmall) · vertical yes |
temp1.gph |
JFE ATP Value during Shocks Final.do:328Data Files and Code/JFE ATP Value during Shocks Final.do, line 328
coefplot (m3, label(Controls)) (m4, label(Interacted Controls)), byopts(compact cols(2) yrescale) vertical levels(90) ciopts(lwidth(.5) recast(rcap)) msize(2) keep(neg4 neg3 neg2 neg1 neg negp1 negp2 negp3 negp4) rename … |