rng_bin {mob}R Documentation

Monotonic binning by quantile based on value range

Description

The function rng_bin implements the quantile-based monotonic binning by the iterative discretization based on the equal-width range of values.

Usage

rng_bin(x, y)

Arguments

x

A numeric vector

y

A numeric vector with 0/1 binary values

Value

A list of binning outcomes, including a numeric vector with cut points and a dataframe with binning summary

Examples

data(hmeq)
rng_bin(hmeq$DEROG, hmeq$BAD)

[Package mob version 0.4.2 Index]