| scr_reject | R Documentation |
Does not ship parceling as the default behavior: instead of inventing a single multiplier and reweighting, it declares the population scope of the scorecard, measures the coverage per band (where an observed outcome exists, and in what volume) and presents a sensitivity band: the event rate each band would have if the population without an outcome were 2, 4 or 8 times worse than the observed one, with the effect on the total. The analyst reads the band; no single number is fabricated.
scr_reject(
x,
population = NULL,
accepted = NULL,
multipliers = NULL,
sample = "holdout"
)
x |
An object from |
population |
Optional: a table of the full population (accepted and
rejected, without outcome), scored by |
accepted |
Optional: a logical vector, of the length of
|
multipliers |
Sensitivity band. |
sample |
Reference sample of the observed outcomes. |
An scr_reject object with scope, coverage (per band) and
sensitivity (per band and multiplier, plus the TOTAL row).
Other stages:
scr_align(),
scr_bin(),
scr_cutoff(),
scr_model(),
scr_scorecard(),
scr_select(),
scr_split(),
scr_strategy(),
scr_triage()
cfg <- scr_config(verbose = FALSE, nthread = 1, use_ranger = FALSE,
xgb_rounds = 60, n_boot = 20)
res <- scr_select(scr_demo, "default", config = cfg, drop = "id",
date_col = "ref_date")
sc <- scr_scorecard(res)
scr_reject(sc)
# with a through-the-door population: rows with an outcome are the hold-out
acc <- seq_len(nrow(scr_demo)) %in% res$split$holdout_idx
scr_reject(sc, population = scr_demo, accepted = acc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.