woe_cal_table: woe_cal_table

Description Usage Arguments Details Value Author(s) Examples

View source: R/information_value.R View source: R/woe_cal_df.R

Description

Compute the woe_cal_table that shows the Weights Of Evidence (WOE) for each group and respeective Information Values (IVs).

Usage

1
woe_cal_table(df, y, valueOfBad = 1)

Arguments

df

data.frame.

y

The actual 1/0 flags for the binary response variable. It can take values of either 1 or 0, where 1 represents the 'Bad' or 'Events' while 0 represents 'Good' or 'Non-Events'.

valueOfBad

The value in y that is used to represent 'Bad' or the occurence of the event of interest. Defaults to 1.

Details

For a given actual for a Binary Y variable and a data.frame, the WOE table is generated with calculated WOE's and IV's

Value

The WOE table with the respective weights of evidence for each group and the IV's.

Author(s)

Nguyen Ngoc Binh nguyenngocbinhneu@gmail.com

Examples

1
2
3
data('hmeq')
hmeq1 <- hmeq[,c("bad", "reason", "job")]
woe_table <- woe_cal_table(df = hmeq1, y = "bad")

nguyenngocbinh/scorecard.sea documentation built on Jan. 4, 2020, 11:43 a.m.