bad_bin: Monotonic binning by quantile with cases Y = 1

Description Usage Arguments Value Examples

View source: R/bad_bin.R

Description

The function bad_bin implements the quantile-based monotonic binning by the iterative discretization based on cases with Y = 1.

Usage

1
bad_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

1
2
data(hmeq)
bad_bin(hmeq$DEROG, hmeq$BAD)

mob documentation built on July 31, 2021, 9:06 a.m.

Related to bad_bin in mob...