woe.table.calc: Calculate WOE Table

Description Usage Arguments Examples

Description

This function allows the calculation of the WOE table for a given variable. It can be useful for manual interventions in WOE transformations.

Usage

1
woe.table.calc(data, default_flag, variable)

Arguments

data

A data set needs to be specified.

default_flag

The default flag need to specified as string.

variable

A variable need to be defined as a string.

Examples

1
2
3
4
5
default_f <- c('1','0','0', '1','1','0','0','1')
birth_year <- c(1980, 1985, 1971,1971,1985,1971,1980,1980)
salary <- c(20000,2000,10000, 10050,2000,21500,12422,10521)
example_data <- data.frame(default_f,birth_year,salary)
woe.table.calc(example_data, "default_f", "birth_year")

ayhandis/creditR documentation built on May 9, 2019, 8:41 a.m.