
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>.
Last updated
binningcredit-scoringfeature-engineeringmodelingrisksupervised-learningwoecppopenmp
6.63 score 4 stars 1 dependents 14 scripts 554 downloadsgkwdist - Generalized Kumaraswamy Distribution Family
Implements the five-parameter Generalized Kumaraswamy ('gkw') distribution proposed by 'Carrasco, Ferrari and Cordeiro (2010)' <doi:10.48550/arXiv.1004.0911> and its seven nested sub-families for modeling bounded continuous data on the unit interval (0,1). The 'gkw' distribution extends the Kumaraswamy distribution described by Jones (2009) <doi:10.1016/j.stamet.2008.04.001>. Provides density, distribution, quantile, and random generation functions, along with analytical log-likelihood, gradient, and Hessian functions implemented in 'C++' via 'RcppArmadillo' for maximum computational efficiency. Suitable for modeling proportions, rates, percentages, and indices exhibiting complex features such as asymmetry, or heavy tails and other shapes not adequately captured by standard distributions like simple Beta or Kumaraswamy.
Last updated
cppdistributiongkwrcpparmadillounit-intervalcpp
5.65 score 1 stars 1 dependents 406 downloads
betaregscale - Beta Regression for Interval-Censored Scale-Derived Outcomes
Maximum-likelihood estimation of beta regression models for responses derived from bounded rating scales. Observations are treated as interval-censored on (0, 1) after a scale-to-unit transformation, and the likelihood is built from the difference of the beta CDF at the interval endpoints. The complete likelihood supports mixed censoring types: uncensored, left-censored, right-censored, and interval-censored observations. Both fixed- and variable-dispersion submodels are supported, with flexible link functions for the mean and precision components. A compiled C++ backend (via 'Rcpp' and 'RcppArmadillo') provides numerically stable, high-performance log-likelihood evaluation. Standard S3 methods (print(), summary(), coef(), fitted(), residuals(), predict(), plot(), confint(), vcov(), logLik(), AIC(), BIC()) are available for fitted objects.
Last updated
beta-mappingbeta-regressionnrs-101nrs-11nrs21openblascpp
5.28 score 1 stars 12 scripts 373 downloadsgkwreg - Generalized Kumaraswamy Regression Models for Bounded Data
Implements regression models for bounded continuous data in the open interval (0,1) using the five-parameter Generalized 'Kumaraswamy' distribution. Supports modeling all distribution parameters (alpha, beta, gamma, delta, lambda) as functions of predictors through various link functions. Provides efficient maximum likelihood estimation via Template Model Builder ('TMB'), offering comprehensive diagnostics, model comparison tools, and simulation methods. Particularly useful for analyzing proportions, rates, indices, and other bounded response data with complex distributional features not adequately captured by simpler models. Methods are described in Lopes and Bonat (2026) <doi:10.21105/joss.08991>.
Last updated
gkwregkumaraswamy-regressionrcpptmbunit-intervalcpp
5.15 score 2 stars 575 downloads