Gini_elimination: Gini Elimination

Description Usage Arguments Examples

Description

This function allows you to eliminate variables which have Gini less than a given threshold for a given data set.

Usage

1
Gini_elimination(data, default_flag, gini_threshold)

Arguments

data

A data set needs to be defined.

default_flag

Default flag must be specified as a string.

gini_threshold

The IV threshold must be specified in order to make an elimination.

Examples

1
2
3
4
5
default_f <- c('1','0','0', '1','1','0','0','1','1')
birth_year <- c(1980, 1985, 1971,1971,1985,1971,1980,1980,1985)
job <- c(1,1,2, 2,2,3,3,2,3)
example_data <- data.frame(default_f,birth_year,job)
Gini_elimination(example_data,"default_f" ,0.15)

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