| scr_moc | R Documentation |
Appends entries to the MoC ledger of an scr_grades() object. Category
"C" (general estimation error) is quantified: "ci_timeseries" takes
the upper bound of a one-sided level interval of the long-run average
from the cohort series, t_{q, T-1}\, sd(DR_t)/\sqrt{T} per grade;
"ci_binomial" uses z_q \sqrt{PD(1-PD)/n} on the obligors (or
obligor-years when a series exists); "bootstrap" resamples the
outcomes of the sample within each grade (drawn as the resampled default
rate, Binomial(n, DR) / n, its exact distribution) and takes the level
quantile of the default rate above the estimate. Categories "A" (data and
methodological deficiencies) and "B" (changes in standards or
environment) are expert quantities: value (one number or one per
grade, in PD units) and a non-empty reason are mandatory. The ledger
is append-only: A and B entries accumulate, a new C supersedes the
previous one (kept with active = FALSE).
scr_moc(
x,
category = c("A", "B", "C"),
method = NULL,
level = NULL,
value = NULL,
reason = NULL,
dr = NULL,
n_boot = 200L,
seed = NULL
)
x |
An |
category |
|
method |
For |
level |
One-sided confidence level; |
value |
For |
reason |
Justification (mandatory for |
dr |
Optional |
n_boot, seed |
Bootstrap resamples and seed for |
The scr_grades object with the entries appended to moc.
Other irb-pd:
predict.scr_grades(),
predict.scr_pd(),
scr_calibrate(),
scr_grades(),
scr_master_scale(),
scr_migration(),
scr_pd(),
scr_pd_pit_ttc(),
scr_pd_validate()
cfg <- scr_config(verbose = FALSE, nthread = 1, use_ranger = FALSE,
use_lightgbm = FALSE, xgb_rounds = 40, n_boot = 10)
res <- scr_select(scr_demo, "default", config = cfg, drop = c("id", "churn"),
date_col = "ref_date")
sc <- scr_scorecard(res)
gr <- scr_grades(sc, n_grades = 6, min_defaults = 10)
gr <- scr_moc(gr, "C", method = "ci_binomial")
gr <- scr_moc(gr, "A", value = 0.002, reason = "missing unlikeliness-to-pay trigger before 2024")
gr$moc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.