Description Usage Arguments Value See Also Examples
getWOE
will compute the given binning WOE of x variable, return a numeric.
1 |
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 |
totalbad |
Default |
a numeric
Other WOE and IV computing functions: dfIV
,
getIV
, sumIV
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.