informationValue: Information Value of a Contineous Variable

Description Usage Arguments Value Examples

View source: R/informationValue.R

Description

Information Value of a Contineous Variable

Usage

1
informationValue(target, variable, event, upper, by)

Arguments

target

Depedent Variable

variable

Indepedent Variable

upper

Upper bound of the bins

by

Binning difference of contieous variable

Value

Information Value of the Variable

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
vec <- c(1,1,1,1,1,2,2,2,2,2,2,5,5,5,6,6,7,8,9,9,10,11,13,15,77,99)
y <- sample(0:1,NROW(vec_),replace = T)

informationValue(target = y,variable = vec)
informationValue(target = y,variable = vec,by=2)
informationValue(target = y,variable = vec,by=1)
informationValue(target = y,variable = vec,by=4)
informationValue(target = y,variable = vec,by=3)
informationValue(target = y,variable = vec,by=3,upper = 50)
informationValue(target = y,variable = vec,by=3,upper = 20)
informationValue(target = y,variable = vec,by=3,upper = 15)
informationValue(target = y,variable = vec,by=3,upper = 12)
informationValue(target = y,variable = vec,by=3,upper = 9)
informationValue(target = y,variable = vec,by=3,upper = 6)

jkapila/vcvn documentation built on Aug. 29, 2017, 12:45 a.m.