Replication package 228 · dataverse · 2021
· open the deposit
How the code gets from data to results
Understanding Cash Flow Risk
Code for: Understanding Cash Flow Risk Review of Financial Studies 2022
15
scripts
10
input files
6
file hand-offs
9
merges
38
sample steps
27
estimations
1 · Data in — files the code reads and no script of the package writes
Datasets this package uses (item detector / README):
Compustat
$data/Compustat_NA_Annual_1965_2019.dtaStata01_GMMSV_RFS_sample_format.do:56
01_GMMSV_RFS_sample_format.do, line 56 use gvkey cusip tic sic sich conm datadate fyear fyr indfmt datafmt popsrc consol curcd fic loc scf emp /* */ ch che at ppent ppegt sale dltt dlc csho prcc_f capx xrd ib dp oibdp ceq prstkc xint txc txt dvc dvp/* */ ivch aqc fuseo …
CRSP US Stock Database
1 file
$data\crsp_vol.dtaStata01_GMMSV_RFS_sample_format.do:596
01_GMMSV_RFS_sample_format.do, line 596 merge m:1 cusip year using "$data\crsp_vol.dta"
Other input files
8 files
$data/fitted_hhi.dtaStata01_GMMSV_RFS_sample_format.do:488
01_GMMSV_RFS_sample_format.do, line 488 merge m:1 sic3 year using "$data/fitted_hhi.dta"$data/GDPdeflator_2000.dtaStata01_GMMSV_RFS_sample_format.do:93
01_GMMSV_RFS_sample_format.do, line 93 merge m:1 year using "$data/GDPdeflator_2000.dta"$data/GMMSV_estimates.dtaStata03_GMMSV_RFS_sample_merge_descriptive_stats.do:30
03_GMMSV_RFS_sample_merge_descriptive_stats.do, line 30 use "$data/GMMSV_estimates.dta",clear$data/GMMVS_gvkeytogroup.dtaStata03_GMMSV_RFS_sample_merge_descriptive_stats.do:46
03_GMMSV_RFS_sample_merge_descriptive_stats.do, line 46 merge m:1 gvkey using "$data/GMMVS_gvkeytogroup.dta"$data/kpss_by_gvkey.dtaStata07_GMMSV_RFS_descriptives.do:36
07_GMMSV_RFS_descriptives.do, line 36 merge 1:m gvkey fyear using "$data/kpss_by_gvkey.dta"$data/markups_by_gvkey.dtaStata07_GMMSV_RFS_descriptives.do:31
07_GMMSV_RFS_descriptives.do, line 31 merge 1:1 gvkey fyear using "$data/markups_by_gvkey.dta"$data\bonds.dtaStata01_GMMSV_RFS_sample_format.do:558
01_GMMSV_RFS_sample_format.do, line 558 merge m:1 cusip_issuer year using "$data\bonds.dta"$data\credit_lines.dtaStata01_GMMSV_RFS_sample_format.do:495
01_GMMSV_RFS_sample_format.do, line 495 merge m:1 gvkey year using "$data\credit_lines.dta"
2 · The file pipeline — which script writes which file that a later script reads
15 scripts, in run order for the master script 02_GMMSV_MatlabCode_ParameterEstimation_estimation_sequential_industries.m and the 7 scripts it runs (directly or through each other); the other 7 are not run by a master script and follow in file-name order;
6 hand-offs through 3 intermediate files; 1 files written and never read back (outputs).
-
1.
02_GMMSV_MatlabCode_ParameterEstimation_cols.msetup file sourced by 2 scripts -
2.
02_GMMSV_MatlabCode_ParameterEstimation_rows.msetup file sourced by 2 scripts -
3.
02_GMMSV_MatlabCode_ParameterEstimation_estimation_sequential_industries.mmaster script -
4.
02_GMMSV_MatlabCode_ParameterEstimation_loglike_model_cash_flow_reparam_alpha_sigmaA_rho_mv.mrun by 02_GMMSV_MatlabCode_ParameterEstimation_estimation_sequential_industries.m line 219 -
5.
02_GMMSV_MatlabCode_ParameterEstimation_param_convert_reparam_true_alpha_sigmaA_rho.mrun by 02_GMMSV_MatlabCode_ParameterEstimation_estimation_sequential_industries.m line 220 -
6.
02_GMMSV_MatlabCode_ParameterEstimation_loglike_model_cash_flow_timeseries_mv.mrun by 02_GMMSV_MatlabCode_ParameterEstimation_estimation_sequential_industries.m line 240 -
7.
02_GMMSV_MatlabCode_ParameterEstimation_gradp.mrun by 02_GMMSV_MatlabCode_ParameterEstimation_estimation_sequential_industries.m line 241 -
8.
02_GMMSV_MatlabCode_ParameterEstimation_diagrv.mrun by 02_GMMSV_MatlabCode_ParameterEstimation_gradp.m line 75 -
9.
01_GMMSV_RFS_sample_format.doreads 6 input files · 5 merges ·writesGMMSV_sample.dta→ read by03_GMMSV_RFS_sample_merge_descriptive_stats.dowrites (not read again):GMMSV_CFdata_estimation.dta -
10.
03_GMMSV_RFS_sample_merge_descriptive_stats.doreads 2 input files · 2 merges · 1 estimationreads what01_GMMSV_RFS_sample_format.dowrotewritesGMMSV_reg_sample.dta→ read by04_GMMSV_RFS_cash_sensitivity.do,05_GMMSV_RFS_equityissuance_regressions.do,06_GMMSV_RFS_debtandequityissuance_regressions.do,07_GMMSV_RFS_descriptives.do -
11.
04_GMMSV_RFS_cash_sensitivity.do12 estimationsreads what03_GMMSV_RFS_sample_merge_descriptive_stats.dowrote -
12.
05_GMMSV_RFS_equityissuance_regressions.do8 estimationsreads what03_GMMSV_RFS_sample_merge_descriptive_stats.dowrote -
13.
06_GMMSV_RFS_debtandequityissuance_regressions.do6 estimationsreads what03_GMMSV_RFS_sample_merge_descriptive_stats.dowrote -
14.
07_GMMSV_RFS_descriptives.doreads 2 input files · 2 merges ·reads what03_GMMSV_RFS_sample_merge_descriptive_stats.dowrotewritesEstimatesbygvkeyandFF17.csv→ read byFigure5RhoDistributionbyFF17.m -
15.
Figure5RhoDistributionbyFF17.mreads what07_GMMSV_RFS_descriptives.dowrote
3 · Merges — 9 joins, 9 followed by a check of the merge result
| Joins | How | On keys | Check that follows | Where |
|---|---|---|---|---|
compustat_na_annual_1965_2019 ← gdpdeflator_2000 |
merge m:1 | year |
drop if _merge == 2 |
01_GMMSV_RFS_sample_format.do:9301_GMMSV_RFS_sample_format.do, line 93
merge m:1 year using "$data/GDPdeflator_2000.dta" |
compustat_na_annual_1965_2019 ← fitted_hhi |
merge m:1 | sic3 year |
drop if _merge == 2 |
01_GMMSV_RFS_sample_format.do:48801_GMMSV_RFS_sample_format.do, line 488
merge m:1 sic3 year using "$data/fitted_hhi.dta" |
compustat_na_annual_1965_2019 ← credit_lines |
merge m:1 | gvkey year |
drop if _merge == 2 |
01_GMMSV_RFS_sample_format.do:49501_GMMSV_RFS_sample_format.do, line 495
merge m:1 gvkey year using "$data\credit_lines.dta" |
compustat_na_annual_1965_2019 ← bonds |
merge m:1 | cusip_issuer year |
drop if _merge == 2 |
01_GMMSV_RFS_sample_format.do:55801_GMMSV_RFS_sample_format.do, line 558
merge m:1 cusip_issuer year using "$data\bonds.dta" |
compustat_na_annual_1965_2019 ← crsp_vol |
merge m:1 | cusip year |
drop if _merge == 2 |
01_GMMSV_RFS_sample_format.do:59601_GMMSV_RFS_sample_format.do, line 596
merge m:1 cusip year using "$data\crsp_vol.dta" |
gmmsv_sample ← gmmvs_gvkeytogroup |
merge m:1 | gvkey |
keep if _merge == 3 |
03_GMMSV_RFS_sample_merge_descriptive_stats.do:4603_GMMSV_RFS_sample_merge_descriptive_stats.do, line 46
merge m:1 gvkey using "$data/GMMVS_gvkeytogroup.dta" |
gmmsv_sample ← gmmsv_estimates_winsorized |
merge m:1 | sic3_by_g_cf5_lagat |
keep if _merge == 3 |
03_GMMSV_RFS_sample_merge_descriptive_stats.do:5103_GMMSV_RFS_sample_merge_descriptive_stats.do, line 51
merge m:1 sic3_by_g_cf5_lagat using "$data/GMMSV_estimates_winsorized.dta" |
gmmsv_reg_sample ← markups_by_gvkey |
merge 1:1 | gvkey fyear |
drop if _merge == 2 |
07_GMMSV_RFS_descriptives.do:3107_GMMSV_RFS_descriptives.do, line 31
merge 1:1 gvkey fyear using "$data/markups_by_gvkey.dta" |
gmmsv_reg_sample ← kpss_by_gvkey |
merge 1:m | gvkey fyear |
drop if _merge == 2 |
07_GMMSV_RFS_descriptives.do:3607_GMMSV_RFS_descriptives.do, line 36
merge 1:m gvkey fyear using "$data/kpss_by_gvkey.dta" |
4 · The sample — 21 keep/drop steps, 17 variables winsorized or trimmed
Filters, by kind
industry screens ×2
- drop if
sic>=6000 & sic<700001_GMMSV_RFS_sample_format.do:116
01_GMMSV_RFS_sample_format.do, line 116 drop if sic>=6000 & sic<7000 - drop if
sic>=4900 & sic<500001_GMMSV_RFS_sample_format.do:117
01_GMMSV_RFS_sample_format.do, line 117 drop if sic>=4900 & sic<5000
time period ×2
- keep if
(fyear>=1970)01_GMMSV_RFS_sample_format.do:112
01_GMMSV_RFS_sample_format.do, line 112 keep if (fyear>=1970) - keep if
(fyear<=2018)01_GMMSV_RFS_sample_format.do:113
01_GMMSV_RFS_sample_format.do, line 113 keep if (fyear<=2018)
value ranges ×2
- keep if
n_cf5_at >= mincfobs01_GMMSV_RFS_sample_format.do:639
01_GMMSV_RFS_sample_format.do, line 639 keep if n_cf5_at >= mincfobs - drop if
n_sic3_by_g_cf5_lagat < minfirmsresid01_GMMSV_RFS_sample_format.do:720
01_GMMSV_RFS_sample_format.do, line 720 drop if n_sic3_by_g_cf5_lagat < minfirmsresid
indicator subsets ×1
- drop if
tagfirm2 == 101_GMMSV_RFS_sample_format.do:163
01_GMMSV_RFS_sample_format.do, line 163 drop if tagfirm2 == 1
missing values ×4
- keep if
(gvkey!=.)01_GMMSV_RFS_sample_format.do:120
01_GMMSV_RFS_sample_format.do, line 120 keep if (gvkey!=.) - keep if
(fyear!=.)01_GMMSV_RFS_sample_format.do:121
01_GMMSV_RFS_sample_format.do, line 121 keep if (fyear!=.) - drop if
(at == .)01_GMMSV_RFS_sample_format.do:140
01_GMMSV_RFS_sample_format.do, line 140 drop if (at == .) - drop if
varmean_gvk == . & tempcount >= 201_GMMSV_RFS_sample_format.do:678
01_GMMSV_RFS_sample_format.do, line 678 drop if varmean_gvk == . & tempcount >= 2
time windows set by a variable — a loop or a computed date, not fixed years (rolling estimation windows, not the sample period) ×1
- keep if
fyear >= y001_GMMSV_RFS_sample_format.do:637
01_GMMSV_RFS_sample_format.do, line 637 keep if fyear >= y0
drops after a merge (_merge) ×9
- drop if
_merge == 201_GMMSV_RFS_sample_format.do:94
01_GMMSV_RFS_sample_format.do, line 94 drop if _merge == 2 - drop if
_merge == 201_GMMSV_RFS_sample_format.do:489
01_GMMSV_RFS_sample_format.do, line 489 drop if _merge == 2 - drop if
_merge == 201_GMMSV_RFS_sample_format.do:496
01_GMMSV_RFS_sample_format.do, line 496 drop if _merge == 2 - drop if
_merge == 201_GMMSV_RFS_sample_format.do:559
01_GMMSV_RFS_sample_format.do, line 559 drop if _merge == 2 - drop if
_merge == 201_GMMSV_RFS_sample_format.do:597
01_GMMSV_RFS_sample_format.do, line 597 drop if _merge == 2 - keep if
_merge == 303_GMMSV_RFS_sample_merge_descriptive_stats.do:47
03_GMMSV_RFS_sample_merge_descriptive_stats.do, line 47 keep if _merge == 3 - keep if
_merge == 303_GMMSV_RFS_sample_merge_descriptive_stats.do:52
03_GMMSV_RFS_sample_merge_descriptive_stats.do, line 52 keep if _merge == 3 - drop if
_merge == 207_GMMSV_RFS_descriptives.do:33
07_GMMSV_RFS_descriptives.do, line 33 drop if _merge == 2 - first 8 of 9
Outliers
winsorize at 1/99
· 10 variables
rho `v' creditline_at creditline_at_issue creditline_td clmean_td bonds_at bonds_at_issue naive_D leverage03_GMMSV_RFS_sample_merge_descriptive_stats.do:34
03_GMMSV_RFS_sample_merge_descriptive_stats.do, line 34
winsor2 rho, replace cuts(1 99)
01_GMMSV_RFS_sample_format.do:443
01_GMMSV_RFS_sample_format.do, line 443
winsor `v' 1
01_GMMSV_RFS_sample_format.do:525
01_GMMSV_RFS_sample_format.do, line 525
winsor creditline_at 1
01_GMMSV_RFS_sample_format.do:526
01_GMMSV_RFS_sample_format.do, line 526
winsor creditline_at_issue 1
winsorize at 1/90
· 2 variables
sigma_P sigma_A03_GMMSV_RFS_sample_merge_descriptive_stats.do:32
03_GMMSV_RFS_sample_merge_descriptive_stats.do, line 32
winsor2 sigma_P, replace cuts(1 90)
03_GMMSV_RFS_sample_merge_descriptive_stats.do:33
03_GMMSV_RFS_sample_merge_descriptive_stats.do, line 33
winsor2 sigma_A, replace cuts(1 90)
winsorize at 10/90
· 1 variable
mu03_GMMSV_RFS_sample_merge_descriptive_stats.do:35
03_GMMSV_RFS_sample_merge_descriptive_stats.do, line 35
winsor2 mu, replace cuts(10 90)
winsorize_manual at 1/–
· 1 variable
`1'01_GMMSV_RFS_sample_format.do:35
01_GMMSV_RFS_sample_format.do, line 35
replace `1' = r(p1) if `1' ~= . & (`1' < r(p1)) & `2' == 1
winsorize_manual at –/99
· 1 variable
`1'01_GMMSV_RFS_sample_format.do:36
01_GMMSV_RFS_sample_format.do, line 36
replace `1' = r(p99) if `1' ~= . & (`1' > r(p99)) & `2' == 1
winsorize_manual at 5/–
· 1 variable
`1'01_GMMSV_RFS_sample_format.do:37
01_GMMSV_RFS_sample_format.do, line 37
replace `1' = r(p5) if `1' ~= . & (`1' < r(p5)) & `2' == 5
winsorize_manual at –/95
· 1 variable
`1'01_GMMSV_RFS_sample_format.do:38
01_GMMSV_RFS_sample_format.do, line 38
replace `1' = r(p95) if `1' ~= . & (`1' > r(p95)) & `2' == 5
Missing values
set to zero ×14
numpats→007_GMMSV_RFS_descriptives.do:48
07_GMMSV_RFS_descriptives.do, line 48 replace numpats = 0 if _merge == 1 & numpats == .patvalue_cw→007_GMMSV_RFS_descriptives.do:49
07_GMMSV_RFS_descriptives.do, line 49 replace patvalue_cw = 0 if _merge == 1 & patvalue_cw == .patvalue_mkt→007_GMMSV_RFS_descriptives.do:50
07_GMMSV_RFS_descriptives.do, line 50 replace patvalue_mkt = 0 if _merge == 1 & patvalue_mkt == .tagfirm2→001_GMMSV_RFS_sample_format.do:161
01_GMMSV_RFS_sample_format.do, line 161 replace tagfirm2 = 0 if tagfirm2 == .xrd→001_GMMSV_RFS_sample_format.do:231
01_GMMSV_RFS_sample_format.do, line 231 replace xrd = 0 if xrd == .gross_eq_issue_dummy→001_GMMSV_RFS_sample_format.do:259
01_GMMSV_RFS_sample_format.do, line 259 replace gross_eq_issue_dummy = 0 if gross_eq_issue_dummy == .
dropped ×4
01_GMMSV_RFS_sample_format.do:120
01_GMMSV_RFS_sample_format.do, line 120 keep if (gvkey!=.)01_GMMSV_RFS_sample_format.do:121
01_GMMSV_RFS_sample_format.do, line 121 keep if (fyear!=.)01_GMMSV_RFS_sample_format.do:140
01_GMMSV_RFS_sample_format.do, line 140 drop if (at == .)01_GMMSV_RFS_sample_format.do:678
01_GMMSV_RFS_sample_format.do, line 678 drop if varmean_gvk == . & tempcount >= 2
5 · Key variables — what enters the models, and where the code builds it
Standard measures computed here:
Altman Z-Score (), Asset Growth (), Asset Turnover (), Book Leverage (), Capital Expenditure (), Cash Holdings (), Distance to Default (), Dividend Payer (), Equity Issuance (), Log Market Cap (), Log Total Assets (), Long-term Debt Ratio (), Net Working Capital (), R&D Intensity (), Return on Assets (ROA) (), Sales / Revenue (), Sales Growth (), Tangibility (PPE/Assets) (), Tobin's Q / Market-to-Book ()
zscore 01_GMMSV_RFS_sample_format.do:299
01_GMMSV_RFS_sample_format.do, line 299
g zscore = 1.2*((act-lct)/at)+1.4*(re/at)+3.3*(pi/at)+0.6*((prcc_f*csho)/td)+ 0.999*(sale/at)
at_growth 01_GMMSV_RFS_sample_format.do:133
01_GMMSV_RFS_sample_format.do, line 133
g at_growth = (at - atl1) / atl1
sales_at 07_GMMSV_RFS_descriptives.do:45
07_GMMSV_RFS_descriptives.do, line 45
g sales_at = sale/at
td_at 01_GMMSV_RFS_sample_format.do:203
01_GMMSV_RFS_sample_format.do, line 203
g td_at = td/at
capex_at 01_GMMSV_RFS_sample_format.do:224
01_GMMSV_RFS_sample_format.do, line 224
g capex_at = capx/at
cash_at 01_GMMSV_RFS_sample_format.do:191
01_GMMSV_RFS_sample_format.do, line 191
g cash_at = che / at
01_GMMSV_RFS_sample_format.do:601
01_GMMSV_RFS_sample_format.do, line 601
g debt_vol = 0.05 + 0.25*equity_vol
div_d 01_GMMSV_RFS_sample_format.do:238
01_GMMSV_RFS_sample_format.do, line 238
replace div_d = 1 if dvc > 0
equity_issue_at 01_GMMSV_RFS_sample_format.do:256
01_GMMSV_RFS_sample_format.do, line 256
g equity_issue_at = sstk/atl1
l_market_eq 01_GMMSV_RFS_sample_format.do:186
01_GMMSV_RFS_sample_format.do, line 186
g l_market_eq = ln(market_eq)
l_a 01_GMMSV_RFS_sample_format.do:184
01_GMMSV_RFS_sample_format.do, line 184
g l_a = ln(at)
ltd_at 01_GMMSV_RFS_sample_format.do:204
01_GMMSV_RFS_sample_format.do, line 204
g ltd_at = dltt/at
nwc_at 01_GMMSV_RFS_sample_format.do:250
01_GMMSV_RFS_sample_format.do, line 250
g nwc_at = (act - lct - che)/at
rd_sale 01_GMMSV_RFS_sample_format.do:232
01_GMMSV_RFS_sample_format.do, line 232
g rd_sale = xrd/sale
roa 01_GMMSV_RFS_sample_format.do:220
01_GMMSV_RFS_sample_format.do, line 220
g roa = ni/at
l_sale 01_GMMSV_RFS_sample_format.do:188
01_GMMSV_RFS_sample_format.do, line 188
g l_sale = ln(sale)
sale_growth 01_GMMSV_RFS_sample_format.do:134
01_GMMSV_RFS_sample_format.do, line 134
g sale_growth = (sale - salel1) / salel1
ppe_at 01_GMMSV_RFS_sample_format.do:201
01_GMMSV_RFS_sample_format.do, line 201
g ppe_at = ppent/at
mb 01_GMMSV_RFS_sample_format.do:248
01_GMMSV_RFS_sample_format.do, line 248
g mb = mv/at
| Variable | Used in models as | Built by |
|---|---|---|
cash_savings_at |
outcome in 12 | cash_savings_at = cash_savings/atl1 (gen) 01_GMMSV_RFS_sample_format.do:21801_GMMSV_RFS_sample_format.do, line 218
g cash_savings_at = cash_savings/atl1 |
depvar |
outcome in 12 | depvar = equity_issue_at (gen) 05_GMMSV_RFS_equityissuance_regressions.do:3605_GMMSV_RFS_equityissuance_regressions.do, line 36
g depvar = equity_issue_at depvar = gross_eq_issue_dummy (gen) 05_GMMSV_RFS_equityissuance_regressions.do:8605_GMMSV_RFS_equityissuance_regressions.do, line 86
g depvar = gross_eq_issue_dummy depvar = net_equity_issue2_at (gen) 05_GMMSV_RFS_equityissuance_regressions.do:13605_GMMSV_RFS_equityissuance_regressions.do, line 136
g depvar = net_equity_issue2_at +4 more statements set it |
mbl1 |
outcome in 1, regressor in 12 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
l_al1 |
regressor in 24 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
rho |
regressor in 13 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
sigma_A |
regressor in 13 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
sigma_P |
regressor in 13 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
cf5_lagat |
regressor in 12 | cf5_lagat = cf5/atl1 (gen) 01_GMMSV_RFS_sample_format.do:34301_GMMSV_RFS_sample_format.do, line 343
g cf5_lagat = cf5/atl1 |
cf5_lagatl1 |
regressor in 12 | cf5_lagatl1 = l1.cf5_lagat (gen) 01_GMMSV_RFS_sample_format.do:34401_GMMSV_RFS_sample_format.do, line 344
g cf5_lagatl1 = l1.cf5_lagat |
mbresid5 |
regressor in 12 | mbresid5 = predict(resid) (predict) 03_GMMSV_RFS_sample_merge_descriptive_stats.do:5803_GMMSV_RFS_sample_merge_descriptive_stats.do, line 58
predict mbresid5, resid |
sd_indcf5_lagatl1 |
regressor in 12 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
fyear |
regressor in 4 | no statement builds it — a column of an input file, or made by a reshape/merge we do not trace |
6 · Models, by the table or figure they feed — 27 estimations, 0 traced into 0 exhibits
Estimations not traced to a table or figure · 27
| Command | Outcome | Regressors | Fixed effects | Standard errors | Where |
|---|---|---|---|---|---|
regols |
mbl1 |
rho sigma_P sigma_A
|
— | default | 03_GMMSV_RFS_sample_merge_descriptive_stats.do:5703_GMMSV_RFS_sample_merge_descriptive_stats.do, line 57
reg mbl1 rho sigma_P sigma_A |
xtabondgmm |
cash_savings_at |
cf5_lagat l_al1 mbl1
|
— | default | 04_GMMSV_RFS_cash_sensitivity.do:10504_GMMSV_RFS_cash_sensitivity.do, line 105
xtabond cash_savings_at cf5_lagat l_al1 mbl1 if rho < -0.02 & vol_ratio > top_vol, lags(2) vce(gmm) |
xtabondgmm |
cash_savings_at |
cf5_lagat l_al1 mbl1
|
— | default | 04_GMMSV_RFS_cash_sensitivity.do:11404_GMMSV_RFS_cash_sensitivity.do, line 114
xtabond cash_savings_at cf5_lagat l_al1 mbl1 if rho > 0.02 & vol_ratio > top_vol, lags(2) vce(gmm) |
xtabondgmm |
cash_savings_at |
cf5_lagat l_al1 mbl1
|
— | default | 04_GMMSV_RFS_cash_sensitivity.do:12504_GMMSV_RFS_cash_sensitivity.do, line 125
xtabond cash_savings_at cf5_lagat l_al1 mbl1 if rho < -0.03 & vol_ratio > top_vol, lags(2) vce(gmm) |
xtabondgmm |
cash_savings_at |
cf5_lagat l_al1 mbl1
|
— | default | 04_GMMSV_RFS_cash_sensitivity.do:13504_GMMSV_RFS_cash_sensitivity.do, line 135
xtabond cash_savings_at cf5_lagat l_al1 mbl1 if rho > 0.03 & vol_ratio > top_vol, lags(2) vce(gmm) |
xtabondgmm |
cash_savings_at |
cf5_lagat l_al1 mbl1
|
— | default | 04_GMMSV_RFS_cash_sensitivity.do:15004_GMMSV_RFS_cash_sensitivity.do, line 150
xtabond cash_savings_at cf5_lagat l_al1 mbl1 if rho < -0.02 & vol_ratio > top_vol, lags(2) vce(gmm) |
xtabondgmm |
cash_savings_at |
cf5_lagat l_al1 mbl1
|
— | default | 04_GMMSV_RFS_cash_sensitivity.do:16004_GMMSV_RFS_cash_sensitivity.do, line 160
xtabond cash_savings_at cf5_lagat l_al1 mbl1 if rho > 0.02 & vol_ratio > top_vol, lags(2) vce(gmm) |
xtabondgmm |
cash_savings_at |
cf5_lagat l_al1 mbl1
|
— | default | 04_GMMSV_RFS_cash_sensitivity.do:17204_GMMSV_RFS_cash_sensitivity.do, line 172
xtabond cash_savings_at cf5_lagat l_al1 mbl1 if rho < -0.03 & vol_ratio > top_vol, lags(2) vce(gmm) |
xtabondgmm |
cash_savings_at |
cf5_lagat l_al1 mbl1
|
— | default | 04_GMMSV_RFS_cash_sensitivity.do:18204_GMMSV_RFS_cash_sensitivity.do, line 182
xtabond cash_savings_at cf5_lagat l_al1 mbl1 if rho > 0.03 & vol_ratio > top_vol, lags(2) vce(gmm) |
xtabondgmm |
cash_savings_at |
cf5_lagat l_al1 mbl1
|
— | default | 04_GMMSV_RFS_cash_sensitivity.do:19804_GMMSV_RFS_cash_sensitivity.do, line 198
xtabond cash_savings_at cf5_lagat l_al1 mbl1 if rho < -0.02 & vol_ratio > top_vol, lags(2) vce(gmm) |
xtabondgmm |
cash_savings_at |
cf5_lagat l_al1 mbl1
|
— | default | 04_GMMSV_RFS_cash_sensitivity.do:20804_GMMSV_RFS_cash_sensitivity.do, line 208
xtabond cash_savings_at cf5_lagat l_al1 mbl1 if rho > 0.02 & vol_ratio > top_vol, lags(2) vce(gmm) |
xtabondgmm |
cash_savings_at |
cf5_lagat l_al1 mbl1
|
— | default | 04_GMMSV_RFS_cash_sensitivity.do:22004_GMMSV_RFS_cash_sensitivity.do, line 220
xtabond cash_savings_at cf5_lagat l_al1 mbl1 if rho < -0.03 & vol_ratio > top_vol, lags(2) vce(gmm) |
xtabondgmm |
cash_savings_at |
cf5_lagat l_al1 mbl1
|
— | default | 04_GMMSV_RFS_cash_sensitivity.do:23004_GMMSV_RFS_cash_sensitivity.do, line 230
xtabond cash_savings_at cf5_lagat l_al1 mbl1 if rho > 0.03 & vol_ratio > top_vol, lags(2) vce(gmm) |
reghdfepanel fe |
depvar |
rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5
|
fyear | cluster: sic3 | 05_GMMSV_RFS_equityissuance_regressions.do:3805_GMMSV_RFS_equityissuance_regressions.do, line 38
reghdfe depvar rho sigma_P sigma_A $c if dummy1 == 1, a(fyear) vce(cluster sic3)
as we read it (macros filled in / loop expanded):
reghdfe depvar rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 if dummy1 == 1, a(fyear) vce(cluster sic3) |
reghdfepanel fe |
depvar |
rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5
|
fyear, sic2 | cluster: sic3 | 05_GMMSV_RFS_equityissuance_regressions.do:6105_GMMSV_RFS_equityissuance_regressions.do, line 61
reghdfe depvar rho sigma_P sigma_A $c if dummy1 == 1, a(fyear sic2) vce(cluster sic3)
as we read it (macros filled in / loop expanded):
reghdfe depvar rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 if dummy1 == 1, a(fyear sic2) vce(cluster sic3) |
reghdfepanel fe |
depvar |
rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5
|
fyear | cluster: sic3 | 05_GMMSV_RFS_equityissuance_regressions.do:8805_GMMSV_RFS_equityissuance_regressions.do, line 88
reghdfe depvar rho sigma_P sigma_A $c if dummy1 == 1, a(fyear) vce(cluster sic3)
as we read it (macros filled in / loop expanded):
reghdfe depvar rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 if dummy1 == 1, a(fyear) vce(cluster sic3) |
reghdfepanel fe |
depvar |
rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5
|
fyear, sic2 | cluster: sic3 | 05_GMMSV_RFS_equityissuance_regressions.do:11105_GMMSV_RFS_equityissuance_regressions.do, line 111
reghdfe depvar rho sigma_P sigma_A $c if dummy1 == 1, a(fyear sic2) vce(cluster sic3)
as we read it (macros filled in / loop expanded):
reghdfe depvar rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 if dummy1 == 1, a(fyear sic2) vce(cluster sic3) |
reghdfepanel fe |
depvar |
rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5
|
fyear | cluster: sic3 | 05_GMMSV_RFS_equityissuance_regressions.do:13805_GMMSV_RFS_equityissuance_regressions.do, line 138
reghdfe depvar rho sigma_P sigma_A $c if dummy1 == 1, a(fyear) vce(cluster sic3)
as we read it (macros filled in / loop expanded):
reghdfe depvar rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 if dummy1 == 1, a(fyear) vce(cluster sic3) |
reghdfepanel fe |
depvar |
rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5
|
fyear, sic2 | cluster: sic3 | 05_GMMSV_RFS_equityissuance_regressions.do:16105_GMMSV_RFS_equityissuance_regressions.do, line 161
reghdfe depvar rho sigma_P sigma_A $c if dummy1 == 1, a(fyear sic2) vce(cluster sic3)
as we read it (macros filled in / loop expanded):
reghdfe depvar rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 if dummy1 == 1, a(fyear sic2) vce(cluster sic3) |
reghdfepanel fe |
depvar |
rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5
|
fyear | cluster: sic3 | 05_GMMSV_RFS_equityissuance_regressions.do:18805_GMMSV_RFS_equityissuance_regressions.do, line 188
reghdfe depvar rho sigma_P sigma_A $c if dummy1 == 1, a(fyear) vce(cluster sic3)
as we read it (macros filled in / loop expanded):
reghdfe depvar rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 if dummy1 == 1, a(fyear) vce(cluster sic3) |
reghdfepanel fe |
depvar |
rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5
|
fyear, sic2 | cluster: sic3 | 05_GMMSV_RFS_equityissuance_regressions.do:21105_GMMSV_RFS_equityissuance_regressions.do, line 211
reghdfe depvar rho sigma_P sigma_A $c if dummy1 == 1, a(fyear sic2) vce(cluster sic3)
as we read it (macros filled in / loop expanded):
reghdfe depvar rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 if dummy1 == 1, a(fyear sic2) vce(cluster sic3) |
aregols |
depvar |
rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 i.fyear
|
sic2 | cluster: sic3 | 06_GMMSV_RFS_debtandequityissuance_regressions.do:3806_GMMSV_RFS_debtandequityissuance_regressions.do, line 38
areg depvar rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 i.fyear if dummy1 == 1, a(sic2) vce(boot, seed(10101) reps(100) cluster(sic3) id(uisic3) group(gvkey)) |
aregols |
depvar |
rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 i.fyear
|
sic2 | cluster: sic3 | 06_GMMSV_RFS_debtandequityissuance_regressions.do:5906_GMMSV_RFS_debtandequityissuance_regressions.do, line 59
areg depvar rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 i.fyear if dummy1 == 1, a(sic2) vce(boot, seed(10101) reps(100) cluster(sic3) id(uisic3) group(gvkey)) |
aregols |
depvar |
rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 i.fyear
|
sic2 | cluster: sic3 | 06_GMMSV_RFS_debtandequityissuance_regressions.do:8606_GMMSV_RFS_debtandequityissuance_regressions.do, line 86
areg depvar rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 i.fyear if dummy1 == 1, a(sic2) vce(boot, seed(10101) reps(100) cluster(sic3) id(uisic3) group(gvkey)) |
aregols |
depvar |
rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 i.fyear
|
sic2 | cluster: sic3 | 06_GMMSV_RFS_debtandequityissuance_regressions.do:10706_GMMSV_RFS_debtandequityissuance_regressions.do, line 107
areg depvar rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 i.fyear if dummy1 == 1, a(sic2) vce(boot, seed(10101) reps(100) cluster(sic3) id(uisic3) group(gvkey)) |
suregsystems |
— |
— | default | 06_GMMSV_RFS_debtandequityissuance_regressions.do:13106_GMMSV_RFS_debtandequityissuance_regressions.do, line 131
sureg (Eq: depvar1 = rho sigma_P sigma_A $c i.fyear i.sic2) (Dt: depvar2 = rho sigma_P sigma_A $c i.fyear) if dummy1 == 1, corr
as we read it (macros filled in / loop expanded):
sureg (Eq: depvar1 = rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 i.fyear i.sic2) (Dt: depvar2 = rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 i.fyear) if dummy1 == 1, corr |
|
suregsystems |
— |
— | default | 06_GMMSV_RFS_debtandequityissuance_regressions.do:16806_GMMSV_RFS_debtandequityissuance_regressions.do, line 168
sureg (Eq: depvar1 = rho sigma_P sigma_A $c i.fyear i.sic2) (Dt: depvar2 = rho sigma_P sigma_A $c i.fyear) if dummy1 == 1, corr
as we read it (macros filled in / loop expanded):
sureg (Eq: depvar1 = rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 i.fyear i.sic2) (Dt: depvar2 = rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 i.fyear) if dummy1 == 1, corr |
Tables and figures the code writes:
Table 9 · Table 10 ·
Table9.txt 05_GMMSV_RFS_equityissuance_regressions.do:249
05_GMMSV_RFS_equityissuance_regressions.do, line 249
estout ols1 ife1 ols2 ife2 ols3 ife3 ols4 ife4 using "Table9.txt", replace ///
mlabels("G.eq.OLS" "G.eq.IFE" "Geq.dum.OLS" "Geq.dum.IFE" "N.eq.OLS" "N.eq.IFE" "NEq.dum.OLS" "NEq.dum.IFE") num ///
cells(b(star fmt(%9. …
Table10.txt 06_GMMSV_RFS_debtandequityissuance_regressions.do:217
06_GMMSV_RFS_debtandequityissuance_regressions.do, line 217
estout ols ife olsprob ifeprob sureg dsureg using "Table10.txt", replace ///
mlabels("Net.OLS" "Net.IFE" "1{N>0}.OLS" "1{N>0}.IFE" "sureg" "dsureg") num unstack ///
cells(b(star fmt(%9.3f)) se(par)) stats(N r2 r2_a, fmt(%9. …
7 · Figures: how each is drawn — 1 figure in the code (command, layers, options, the file it is saved to)
box 1
| command | layers | variables | options | saved as | where |
|---|---|---|---|---|---|
boxplotbox
|
boxplot + scatter + line |
y rho, ff17means, [0 0]
x (min(get(gca,'Xlim'))+0.5:max(get(gca,'Xlim'))-0.5)', xlim
|
legend h2, 'FF17 Industry Mean', 'Location', 'south' |
not saved | Figure5RhoDistributionbyFF17.m:36Figure5RhoDistributionbyFF17.m, line 36
figure(fig) |