smbinning.sumiv: Information Value Summary

Description Usage Arguments Value Examples

View source: R/smbinning.R

Description

It gives the user the ability to calculate, in one step, the IV for each characteristic of the dataset. This function also shows a progress bar so the user can see the status of the process.

Usage

1

Arguments

df

A data frame.

y

Binary response variable (0,1). Integer (int) is required. Name of y must not have a dot. Name "default" is not allowed.

Value

The command smbinning.sumiv generates a table that lists each characteristic with its corresponding IV for those where the calculation is possible, otherwise it will generate a missing value (NA).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Load library and its dataset
library(smbinning)

# Test sample
test=subset(chileancredit,rnd>0.9) # Training sample
test$rnd=NULL

# Example: Information Value Summary
testiv=smbinning.sumiv(test,y="fgood")
testiv

# Example: Plot of Information Value Summary
smbinning.sumiv.plot(testiv)

smbinning documentation built on Dec. 1, 2017, 9:02 a.m.