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.dta Stata
    01_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 …
  • $data\crsp_vol.dta Stata
    01_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.dta Stata
    01_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.dta Stata
    01_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.dta Stata
    03_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.dta Stata
    03_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.dta Stata
    07_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.dta Stata
    07_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.dta Stata
    01_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.dta Stata
    01_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).

01_GMMSV_RFS_sample_format.do → 03_GMMSV_RFS_sample_merge_descriptive_stats.do: GMMSV_sample.dta03_GMMSV_RFS_sample_merge_descriptive_stats.do → 04_GMMSV_RFS_cash_sensitivity.do: GMMSV_reg_sample.dta03_GMMSV_RFS_sample_merge_descriptive_stats.do → 05_GMMSV_RFS_equityissuance_regressions.do: GMMSV_reg_sample.dta03_GMMSV_RFS_sample_merge_descriptive_stats.do → 06_GMMSV_RFS_debtandequityissuance_regressions.do: GMMSV_reg_sample.dta03_GMMSV_RFS_sample_merge_descriptive_stats.do → 07_GMMSV_RFS_descriptives.do: GMMSV_reg_sample.dta07_GMMSV_RFS_descriptives.do → Figure5RhoDistributionbyFF17.m: EstimatesbygvkeyandFF17.csv 02_GMMSV_MatlabCode_ParameterEstimation_cols.m 1. 02_GMMSV_MatlabCode_ParameterEstimation_col… 02_GMMSV_MatlabCode_ParameterEstimation_rows.m 2. 02_GMMSV_MatlabCode_ParameterEstimation_row… 02_GMMSV_MatlabCode_ParameterEstimation_estimation_sequential_industries.m 3. 02_GMMSV_MatlabCode_ParameterEstimation_est… 02_GMMSV_MatlabCode_ParameterEstimation_loglike_model_cash_flow_reparam_alpha_sigmaA_rho_mv.m 4. 02_GMMSV_MatlabCode_ParameterEstimation_log… 02_GMMSV_MatlabCode_ParameterEstimation_param_convert_reparam_true_alpha_sigmaA_rho.m 5. 02_GMMSV_MatlabCode_ParameterEstimation_par… 02_GMMSV_MatlabCode_ParameterEstimation_loglike_model_cash_flow_timeseries_mv.m 6. 02_GMMSV_MatlabCode_ParameterEstimation_log… 02_GMMSV_MatlabCode_ParameterEstimation_gradp.m 7. 02_GMMSV_MatlabCode_ParameterEstimation_gra… 02_GMMSV_MatlabCode_ParameterEstimation_diagrv.m 8. 02_GMMSV_MatlabCode_ParameterEstimation_dia… 01_GMMSV_RFS_sample_format.do · reads 6 input files 9. 01_GMMSV_RFS_sample_format.do 03_GMMSV_RFS_sample_merge_descriptive_stats.do · reads 2 input files · 1 estimation 10. 03_GMMSV_RFS_sample_merge_descriptive_stats… 1 est.04_GMMSV_RFS_cash_sensitivity.do · 12 estimations 11. 04_GMMSV_RFS_cash_sensitivity.do 12 est.05_GMMSV_RFS_equityissuance_regressions.do · 8 estimations 12. 05_GMMSV_RFS_equityissuance_regressions.do 8 est.06_GMMSV_RFS_debtandequityissuance_regressions.do · 6 estimations 13. 06_GMMSV_RFS_debtandequityissuance_regressi… 6 est.07_GMMSV_RFS_descriptives.do · reads 2 input files 14. 07_GMMSV_RFS_descriptives.do Figure5RhoDistributionbyFF17.m 15. Figure5RhoDistributionbyFF17.m
  1. 1.02_GMMSV_MatlabCode_ParameterEstimation_cols.m setup file sourced by 2 scripts
  2. 2.02_GMMSV_MatlabCode_ParameterEstimation_rows.m setup file sourced by 2 scripts
  3. 3.02_GMMSV_MatlabCode_ParameterEstimation_estimation_sequential_industries.m master script
  4. 4.02_GMMSV_MatlabCode_ParameterEstimation_loglike_model_cash_flow_reparam_alpha_sigmaA_rho_mv.m run by 02_GMMSV_MatlabCode_ParameterEstimation_estimation_sequential_industries.m line 219
  5. 5.02_GMMSV_MatlabCode_ParameterEstimation_param_convert_reparam_true_alpha_sigmaA_rho.m run by 02_GMMSV_MatlabCode_ParameterEstimation_estimation_sequential_industries.m line 220
  6. 6.02_GMMSV_MatlabCode_ParameterEstimation_loglike_model_cash_flow_timeseries_mv.m run by 02_GMMSV_MatlabCode_ParameterEstimation_estimation_sequential_industries.m line 240
  7. 7.02_GMMSV_MatlabCode_ParameterEstimation_gradp.m run by 02_GMMSV_MatlabCode_ParameterEstimation_estimation_sequential_industries.m line 241
  8. 8.02_GMMSV_MatlabCode_ParameterEstimation_diagrv.m run by 02_GMMSV_MatlabCode_ParameterEstimation_gradp.m line 75
  9. 9.01_GMMSV_RFS_sample_format.do reads 6 input files · 5 merges ·
    writes GMMSV_sample.dta → read by 03_GMMSV_RFS_sample_merge_descriptive_stats.do
    writes (not read again): GMMSV_CFdata_estimation.dta
  10. 10.03_GMMSV_RFS_sample_merge_descriptive_stats.do reads 2 input files · 2 merges · 1 estimation
    reads what 01_GMMSV_RFS_sample_format.do wrote
    writes GMMSV_reg_sample.dta → read by 04_GMMSV_RFS_cash_sensitivity.do, 05_GMMSV_RFS_equityissuance_regressions.do, 06_GMMSV_RFS_debtandequityissuance_regressions.do, 07_GMMSV_RFS_descriptives.do
  11. 11.04_GMMSV_RFS_cash_sensitivity.do 12 estimations
    reads what 03_GMMSV_RFS_sample_merge_descriptive_stats.do wrote
  12. 12.05_GMMSV_RFS_equityissuance_regressions.do 8 estimations
    reads what 03_GMMSV_RFS_sample_merge_descriptive_stats.do wrote
  13. 13.06_GMMSV_RFS_debtandequityissuance_regressions.do 6 estimations
    reads what 03_GMMSV_RFS_sample_merge_descriptive_stats.do wrote
  14. 14.07_GMMSV_RFS_descriptives.do reads 2 input files · 2 merges ·
    reads what 03_GMMSV_RFS_sample_merge_descriptive_stats.do wrote
    writes EstimatesbygvkeyandFF17.csv → read by Figure5RhoDistributionbyFF17.m
  15. 15.Figure5RhoDistributionbyFF17.m
    reads what 07_GMMSV_RFS_descriptives.do wrote

3 · Merges — 9 joins, 9 followed by a check of the merge result

JoinsHowOn keysCheck that followsWhere
compustat_na_annual_1965_2019 ← gdpdeflator_2000 merge m:1 year drop if _merge == 2
01_GMMSV_RFS_sample_format.do:93
01_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:488
01_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:495
01_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:558
01_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:596
01_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:46
03_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:51
03_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:31
07_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:36
07_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<7000
    01_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<5000
    01_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 >= mincfobs
    01_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 < minfirmsresid
    01_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 == 1
    01_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 >= 2
    01_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 >= y0
    01_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 == 2
    01_GMMSV_RFS_sample_format.do:94
    01_GMMSV_RFS_sample_format.do, line 94 drop if _merge == 2
  • drop if _merge == 2
    01_GMMSV_RFS_sample_format.do:489
    01_GMMSV_RFS_sample_format.do, line 489 drop if _merge == 2
  • drop if _merge == 2
    01_GMMSV_RFS_sample_format.do:496
    01_GMMSV_RFS_sample_format.do, line 496 drop if _merge == 2
  • drop if _merge == 2
    01_GMMSV_RFS_sample_format.do:559
    01_GMMSV_RFS_sample_format.do, line 559 drop if _merge == 2
  • drop if _merge == 2
    01_GMMSV_RFS_sample_format.do:597
    01_GMMSV_RFS_sample_format.do, line 597 drop if _merge == 2
  • keep if _merge == 3
    03_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 == 3
    03_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 == 2
    07_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 leverage
03_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_A
03_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
mu
03_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 → 0
    07_GMMSV_RFS_descriptives.do:48
    07_GMMSV_RFS_descriptives.do, line 48 replace numpats = 0 if _merge == 1 & numpats == .
  • patvalue_cw → 0
    07_GMMSV_RFS_descriptives.do:49
    07_GMMSV_RFS_descriptives.do, line 49 replace patvalue_cw = 0 if _merge == 1 & patvalue_cw == .
  • patvalue_mkt → 0
    07_GMMSV_RFS_descriptives.do:50
    07_GMMSV_RFS_descriptives.do, line 50 replace patvalue_mkt = 0 if _merge == 1 & patvalue_mkt == .
  • tagfirm2 → 0
    01_GMMSV_RFS_sample_format.do:161
    01_GMMSV_RFS_sample_format.do, line 161 replace tagfirm2 = 0 if tagfirm2 == .
  • xrd → 0
    01_GMMSV_RFS_sample_format.do:231
    01_GMMSV_RFS_sample_format.do, line 231 replace xrd = 0 if xrd == .
  • gross_eq_issue_dummy → 0
    01_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 (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)
), Asset Growth (at_growth
01_GMMSV_RFS_sample_format.do:133
01_GMMSV_RFS_sample_format.do, line 133 g at_growth = (at - atl1) / atl1
), Asset Turnover (sales_at
07_GMMSV_RFS_descriptives.do:45
07_GMMSV_RFS_descriptives.do, line 45 g sales_at = sale/at
), Book Leverage (td_at
01_GMMSV_RFS_sample_format.do:203
01_GMMSV_RFS_sample_format.do, line 203 g td_at = td/at
), Capital Expenditure (capex_at
01_GMMSV_RFS_sample_format.do:224
01_GMMSV_RFS_sample_format.do, line 224 g capex_at = capx/at
), Cash Holdings (cash_at
01_GMMSV_RFS_sample_format.do:191
01_GMMSV_RFS_sample_format.do, line 191 g cash_at = che / at
), Distance to Default (
01_GMMSV_RFS_sample_format.do:601
01_GMMSV_RFS_sample_format.do, line 601 g debt_vol = 0.05 + 0.25*equity_vol
), Dividend Payer (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 Issuance (equity_issue_at
01_GMMSV_RFS_sample_format.do:256
01_GMMSV_RFS_sample_format.do, line 256 g equity_issue_at = sstk/atl1
), Log Market Cap (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)
), Log Total Assets (l_a
01_GMMSV_RFS_sample_format.do:184
01_GMMSV_RFS_sample_format.do, line 184 g l_a = ln(at)
), Long-term Debt Ratio (ltd_at
01_GMMSV_RFS_sample_format.do:204
01_GMMSV_RFS_sample_format.do, line 204 g ltd_at = dltt/at
), Net Working Capital (nwc_at
01_GMMSV_RFS_sample_format.do:250
01_GMMSV_RFS_sample_format.do, line 250 g nwc_at = (act - lct - che)/at
), R&D Intensity (rd_sale
01_GMMSV_RFS_sample_format.do:232
01_GMMSV_RFS_sample_format.do, line 232 g rd_sale = xrd/sale
), Return on Assets (ROA) (roa
01_GMMSV_RFS_sample_format.do:220
01_GMMSV_RFS_sample_format.do, line 220 g roa = ni/at
), Sales / Revenue (l_sale
01_GMMSV_RFS_sample_format.do:188
01_GMMSV_RFS_sample_format.do, line 188 g l_sale = ln(sale)
), Sales Growth (sale_growth
01_GMMSV_RFS_sample_format.do:134
01_GMMSV_RFS_sample_format.do, line 134 g sale_growth = (sale - salel1) / salel1
), Tangibility (PPE/Assets) (ppe_at
01_GMMSV_RFS_sample_format.do:201
01_GMMSV_RFS_sample_format.do, line 201 g ppe_at = ppent/at
), Tobin's Q / Market-to-Book (mb
01_GMMSV_RFS_sample_format.do:248
01_GMMSV_RFS_sample_format.do, line 248 g mb = mv/at
)
VariableUsed in models asBuilt by
cash_savings_at outcome in 12
cash_savings_at = cash_savings/atl1 (gen)
01_GMMSV_RFS_sample_format.do:218
01_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:36
05_GMMSV_RFS_equityissuance_regressions.do, line 36 g depvar = equity_issue_at
depvar = gross_eq_issue_dummy (gen)
05_GMMSV_RFS_equityissuance_regressions.do:86
05_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:136
05_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:343
01_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:344
01_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:58
03_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
CommandOutcomeRegressors Fixed effectsStandard errorsWhere
reg
ols
mbl1 rho sigma_P sigma_A — default
03_GMMSV_RFS_sample_merge_descriptive_stats.do:57
03_GMMSV_RFS_sample_merge_descriptive_stats.do, line 57 reg mbl1 rho sigma_P sigma_A
xtabond
gmm
cash_savings_at cf5_lagat l_al1 mbl1 — default
04_GMMSV_RFS_cash_sensitivity.do:105
04_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)
xtabond
gmm
cash_savings_at cf5_lagat l_al1 mbl1 — default
04_GMMSV_RFS_cash_sensitivity.do:114
04_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)
xtabond
gmm
cash_savings_at cf5_lagat l_al1 mbl1 — default
04_GMMSV_RFS_cash_sensitivity.do:125
04_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)
xtabond
gmm
cash_savings_at cf5_lagat l_al1 mbl1 — default
04_GMMSV_RFS_cash_sensitivity.do:135
04_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)
xtabond
gmm
cash_savings_at cf5_lagat l_al1 mbl1 — default
04_GMMSV_RFS_cash_sensitivity.do:150
04_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)
xtabond
gmm
cash_savings_at cf5_lagat l_al1 mbl1 — default
04_GMMSV_RFS_cash_sensitivity.do:160
04_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)
xtabond
gmm
cash_savings_at cf5_lagat l_al1 mbl1 — default
04_GMMSV_RFS_cash_sensitivity.do:172
04_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)
xtabond
gmm
cash_savings_at cf5_lagat l_al1 mbl1 — default
04_GMMSV_RFS_cash_sensitivity.do:182
04_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)
xtabond
gmm
cash_savings_at cf5_lagat l_al1 mbl1 — default
04_GMMSV_RFS_cash_sensitivity.do:198
04_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)
xtabond
gmm
cash_savings_at cf5_lagat l_al1 mbl1 — default
04_GMMSV_RFS_cash_sensitivity.do:208
04_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)
xtabond
gmm
cash_savings_at cf5_lagat l_al1 mbl1 — default
04_GMMSV_RFS_cash_sensitivity.do:220
04_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)
xtabond
gmm
cash_savings_at cf5_lagat l_al1 mbl1 — default
04_GMMSV_RFS_cash_sensitivity.do:230
04_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)
reghdfe
panel fe
depvar rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 fyear cluster: sic3
05_GMMSV_RFS_equityissuance_regressions.do:38
05_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)
reghdfe
panel 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:61
05_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)
reghdfe
panel fe
depvar rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 fyear cluster: sic3
05_GMMSV_RFS_equityissuance_regressions.do:88
05_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)
reghdfe
panel 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:111
05_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)
reghdfe
panel fe
depvar rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 fyear cluster: sic3
05_GMMSV_RFS_equityissuance_regressions.do:138
05_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)
reghdfe
panel 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:161
05_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)
reghdfe
panel fe
depvar rho sigma_P sigma_A sd_indcf5_lagatl1 l_al1 cf5_lagatl1 mbresid5 fyear cluster: sic3
05_GMMSV_RFS_equityissuance_regressions.do:188
05_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)
reghdfe
panel 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:211
05_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)
areg
ols
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:38
06_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))
areg
ols
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:59
06_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))
areg
ols
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:86
06_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))
areg
ols
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:107
06_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))
sureg
systems
— — default
06_GMMSV_RFS_debtandequityissuance_regressions.do:131
06_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
sureg
systems
— — default
06_GMMSV_RFS_debtandequityissuance_regressions.do:168
06_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 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. …
· Table 10 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
commandlayersvariables optionssaved aswhere
boxplot
box
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:36
Figure5RhoDistributionbyFF17.m, line 36 figure(fig)
–47