getWOE: Compute the Given Binning WOE

Description Usage Arguments Value See Also Examples

Description

getWOE will compute the given binning WOE of x variable, return a numeric.

Usage

1
getWOE(df, cutbound, totalgood = NULL, totalbad = NULL)

Arguments

df

A dataframe only with two variables, X and Y.

cutbound

A single value for factor variable, or a vector with lbound and ubound for numeric variable.

totalgood

Default NULL. if not default, will use them directly, otherwise will recalculate based on df.

totalbad

Default NULL. if not default, will use them directly, otherwise will recalculate based on df.

Value

a numeric

See Also

Other WOE and IV computing functions: dfIV, getIV, sumIV

Examples

1
2
3
4
5
6
data(CreditData)
getWOE(CreditData[c("gender","target")], cutbound = "M")
getWOE(CreditData[c("gscore","target")], cutbound = c(-Inf,534))
getWOE(CreditData[c("gscore","target")], cutbound = c(577,617))
getWOE(CreditData[c("gscore","target")], cutbound = c(617,Inf))
getWOE(CreditData[c("gscore","target")], cutbound = NA)

xxzcool/scoremodel documentation built on May 4, 2019, 10:56 a.m.