max.gini.model: Maximum Gini Model

Description Usage Arguments Examples

Description

This function allows the finding the model which gives the maximum gini value. Statistical requirements will not be provided. Can only be used to give an inference.

Usage

1
2
## S3 method for class 'gini.model'
max(data, default_flag, seed_value = 1)

Arguments

data

A data set needs to be specified.

default_flag

The default flag need to specified as string.

seed_value

A seed value need to specified for replicability.

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)
max.gini.model(example_data, "default_f",10)

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