superv_bin: Supervised Binning

Description Usage Arguments Value Examples

Description

Automatic supervised binning

Usage

1
superv_bin(variable, target, min.p = 0.05, min.cri = 0.95, max.depth = 5)

Arguments

variable

A variable

target

A numeric binary vector 0,1

min.p

Minimal proportion in a group (a ctree_control argument).

min.cri

Minimal critetion (a ctree_control argument).

max.depth

Maximun depth in the tree

Value

A list of elements

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data("credit")

variable <-  credit$age
target <- credit$bad

superv_bin(variable, target)

variable <- credit$marital_status

superv_bin(variable, target)

jbkunst/riskr documentation built on May 18, 2019, 7 p.m.