iv.str: Calculate Information Value for character or factor columns

Description Usage Arguments Examples

Description

This function calculates information value for character or factor columns of data frame.

Usage

1
  iv.str(df, x, y, verbose = FALSE)

Arguments

df

data frame with at least two columns (predictor x and outcome y)

x

column (character or factor) for which Information Value should be calculated

y

column (integer) with binary outcome. y has to be a column in df data frame. It is suggested that y is factor with two levels "bad" and "good" If there are no levels good/bad than the following assumptions are applied - if y is integer, than 0=good and 1=bad. If y is factor than level 2 is assumed to mean bad and 1 good.

verbose

Prints additional details when TRUE. Useful mainly for debugging.

Examples

1
2
iv.str(german_data,"purpose","gb")
iv.str(german_data,"savings","gb")

tomasgreif/woe documentation built on May 31, 2019, 5:16 p.m.