| styles_distressed_exit | R Documentation |
This helper applies a simple lender-driven distressed-exit rule to a set of preset style scenarios. For each style and covenant regime, it:
Runs the baseline case via run_case().
Identifies the first covenant breach under the bullet-debt scenario (DSCR and forward LTV).
Optionally shifts very early breaches to a minimum refinancing year (refinancing window logic).
Re-runs the case with a shortened horizon and a fire-sale exit-yield penalty, and extracts:
distressed equity IRR (possibly NA),
distressed equity multiple and loss percentage,
distressed sale value.
styles_distressed_exit(
styles,
regimes,
fire_sale_bps = 100,
refi_min_year = 3L,
allow_year1_distress = TRUE,
underwriting_mode = c("transition", "stabilized"),
exit_shock_bps = 0,
growth_shock = 0,
ext_dir = system.file("extdata", package = "cre.dcf")
)
styles |
Character vector of style tags, e.g.
|
regimes |
A data frame or tibble with at least three columns:
|
fire_sale_bps |
Numeric scalar. Widening (in basis points) applied to
the exit-yield spread in the distressed run (e.g. |
refi_min_year |
Integer scalar. Minimum year at which a lender-driven
distressed exit can occur. If a breach is detected before this year and
|
allow_year1_distress |
Logical. If |
underwriting_mode |
Character scalar. Either |
exit_shock_bps |
Numeric scalar. Additive shock (in basis points)
applied to the preset's |
growth_shock |
Numeric scalar. Additive shock applied to the preset's
|
ext_dir |
Optional directory where style presets (YAML) are stored.
Defaults to the package |
A tibble with one row per combination of style and regime, and the columns:
style, regime, min_dscr, max_ltv,
underwriting_mode, covenant_start_year,
breach_year, breach_type,
irr_equity_base, irr_equity_distress,
distress_undefined (logical),
equity_multiple_base, equity_multiple_distress,
equity_loss_pct_base, equity_loss_pct_distress,
sale_value_distress.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.