scr_reject: Stage 6: honest reject inference through a sensitivity band

scr_rejectR Documentation

Stage 6: honest reject inference through a sensitivity band

Description

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.

Usage

scr_reject(
  x,
  population = NULL,
  accepted = NULL,
  multipliers = NULL,
  sample = "holdout"
)

Arguments

x

An object from scr_scorecard().

population

Optional: a table of the full population (accepted and rejected, without outcome), scored by scr_apply(). NULL restricts the scope to the population with an outcome.

accepted

Optional: a logical vector, of the length of population, marking the rows with an observed outcome. NULL treats the whole population as without an outcome beyond the development sample.

multipliers

Sensitivity band. NULL uses the configuration.

sample

Reference sample of the observed outcomes.

Value

An scr_reject object with scope, coverage (per band) and sensitivity (per band and multiplier, plus the TOTAL row).

See Also

Other stages: scr_align(), scr_bin(), scr_cutoff(), scr_model(), scr_scorecard(), scr_select(), scr_split(), scr_strategy(), scr_triage()

Examples

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)

scorecraft documentation built on Dec. 6, 2026, 1:09 a.m.