Learn R Programming

⚠️There's a newer version (1.1-2) of this package.Take me there.

AssocBin (version 1.1-1)

Measuring Association with Recursive Binning

Description

An iterative implementation of a recursive binary partitioning algorithm to measure pairwise dependence with a modular design that allows user specification of the splitting logic and stop criteria. Helper functions provide suggested versions of both and support visualization and the computation of summary statistics on final binnings. For a complete description of the functionality and algorithm, see Salahub and Oldford (2025) .

Copy Link

Version

Install

install.packages('AssocBin')

Monthly Downloads

192

Version

1.1-1

License

GPL (>= 3)

Maintainer

Chris Salahub

Last Published

August 29th, 2025

Functions in AssocBin (1.1-1)

rIntSplit

Random integer splitting
makeCriteria

Make stop crteria
chiScores

Scoring functions
summary.DepSearch

S3 methods for `DepSearch`
maxScoreSplit

Size-restricted bivariate score maximizing splitting
plotBinning

Plot a binning using shaded rectangles
uniMaxScoreSplit

Univariate score maximizing splitting
uniRIntSplit

Univariate random integer splitting
depthFill

Encoding bin features to bin colour fills
sp500pseudo

De-Garched S&P 500 returns
singleBinner

Single split recursive binning
stopper

Check bins against stop criteria
uniBinner

Single margin binning
binChi

Statistics for bins
numNumFittedDf

Computing a binning's degrees of freedom
binner

Many split recursive binning
heart

Heart Disease Diagnosis Data
depDisplay

Generate a departure display
halfCutTie

Halve continuously to break ties
halfSplit

Halve at an observed point
makeBin

Make a bin
DepSearch

Test pairwise variable independence
catBinner

Binning of categorical variable pairs
sandboxMaxSplit

Bivariate score maximizing splitting
splitX

Helper functions for marginal splitting
rUnifSplit

Random uniform splitting