styles_breach_counts: Count covenant breaches by style under the bullet-debt...

View source: R/utils.R

styles_breach_countsR Documentation

Count covenant breaches by style under the bullet-debt scenario

Description

This helper aggregates, for a set of styles, the number of periods in which bullet-debt credit metrics breach simple covenant guardrails:

  • DSCR < min_dscr_guard,

  • forward LTV > max_ltv_guard.

Usage

styles_breach_counts(
  styles = c("core", "core_plus", "value_added", "opportunistic"),
  min_dscr_guard = 1.2,
  max_ltv_guard = 0.65
)

Arguments

styles

Character vector of style names (e.g. "core", "core_plus", "value_added", "opportunistic"). The output style factor will follow this ordering.

min_dscr_guard

Numeric scalar, DSCR guardrail below which a period is counted as a DSCR breach.

max_ltv_guard

Numeric scalar, forward-LTV guardrail above which a period is counted as an LTV breach.

Details

It relies on style_bullet_ratios(), which is expected to return, for each style, a tibble of yearly ratios in the bullet-debt scenario with at least the columns: style, year, dscr, ltv_forward.

Value

A tibble with one row per style and the columns:

  • style (factor, levels = styles),

  • n_dscr_breach: number of years with dscr < min_dscr_guard,

  • n_ltv_breach: number of years with ltv_forward > max_ltv_guard. Year 0 is excluded from the counts.


cre.dcf documentation built on April 10, 2026, 5:08 p.m.