bin: Binning Continous Varaibles Based on Information value

Description Usage Arguments Value Methods (by class)

Description

bin bins a continous variable by maximizing the infomation value.

Usage

1
2
3
4
5
6
7
8
9
bin(...)

## Default S3 method:
bin(target, predictor, nbin = 5,
  early_stop_threshold = NA, min.node.pct = 0.05, p = 0.05,
  single.values = NULL, ...)

## S3 method for class 'data.frame'
bin(df, y, x, ...)

Arguments

target

the response variable

predictor

the continous variable to bin

nbin

numbers of binning

early_stop_threshold

iv increasing value less than the threshold will cause the binning process stopped. If not NA, nbin will be ignored.

min.node.pct

the smallest sample proportion of the bins

p

p value used for fisher test rejection

single.values

some values will be split as a level

df

a data frame

y

name of target variable

x

name of predictor

Value

a bin object

cuts the cut points IV the information value WOE the weight of evidence tagble

Methods (by class)


siyuany/autobin documentation built on May 29, 2019, 11 p.m.