OptimalBinningWoE: Optimal Binning and Weight of Evidence Framework for Modeling

High-performance implementation of 28 binning algorithms (37 implementations: 21 numerical, 16 categorical) for Weight of Evidence ('WoE') transformation, credit scoring, and risk modeling. Methods include dynamic programming over ordered levels, entropy-based ('MDLP') and chi-square ('ChiMerge') partitioning, isotonic regression, simulated annealing, kernel-density binning, sketch-based binning (KLL and Count-Min), and greedy merging heuristics. Features a default algorithm chosen from the target type, monotonicity enforcement where the algorithm supports it, and efficient handling of large datasets via 'Rcpp'. Provides automated variable screening by Information Value strength and bin ordering, and generation of the equivalent 'SQL' 'CASE' expressions for in-database scoring. Fully integrated with the 'tidymodels' ecosystem for building robust machine learning pipelines. Based on methods described in Siddiqi (2006) <doi:10.1002/9781119201731> and Navas-Palencia (2020) <doi:10.48550/arXiv.2001.08025>.

Version: 1.14.1
Depends: R (≥ 4.1.0)
Imports: Rcpp, recipes, rlang, tibble, dials, stats, utils, graphics
LinkingTo: Rcpp
Suggests: testthat (≥ 3.0.0), data.table, openxlsx, glmnet, generics, knitr, rmarkdown, tidymodels, workflows, parsnip, tune
Published: 2026-11-22
DOI: 10.32614/CRAN.package.OptimalBinningWoE
Author: José Evandeilton Lopes ORCID iD [aut, cre, cph]
Maintainer: José Evandeilton Lopes <evandeilton at gmail.com>
BugReports: https://github.com/evandeilton/OptimalBinningWoE/issues
License: MIT + file LICENSE
URL: https://github.com/evandeilton/OptimalBinningWoE, https://evandeilton.github.io/OptimalBinningWoE/
NeedsCompilation: yes
SystemRequirements: C++17
Language: en-US
Materials: README, NEWS
CRAN checks: OptimalBinningWoE results

Documentation:

Reference manual: OptimalBinningWoE.html , OptimalBinningWoE.pdf
Vignettes: Algorithm Reference: the 37 Binning Engines (source, R code)
An Industrial Scorecard Pipeline (source, R code)
Optimal Binning and Weight of Evidence: A Practical Guide (source, R code)

Downloads:

Package source: OptimalBinningWoE_1.14.1.tar.gz
Windows binaries: r-devel: OptimalBinningWoE_1.14.1.zip, r-release: OptimalBinningWoE_1.14.0.zip, r-oldrel: OptimalBinningWoE_1.14.0.zip
macOS binaries: r-release (arm64): OptimalBinningWoE_1.14.1.tgz, r-oldrel (arm64): OptimalBinningWoE_1.14.1.tgz, r-release (x86_64): OptimalBinningWoE_1.14.1.tgz, r-oldrel (x86_64): OptimalBinningWoE_1.14.1.tgz
Old sources: OptimalBinningWoE archive

Reverse dependencies:

Reverse imports: scorecraft

Linking:

Please use the canonical form https://CRAN.R-project.org/package=OptimalBinningWoE to link to this page.