Learn R Programming

mob (version 0.4.2)

qtl_bin: Monotonic binning by quantile

Description

The function qtl_bin implements the quantile-based monotonic binning by the iterative discretization

Usage

qtl_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

Run this code
# NOT RUN {
data(hmeq)
qtl_bin(hmeq$DEROG, hmeq$BAD)
# }

Run the code above in your browser using DataLab