forceDecrTrend {logiBin} | R Documentation |
Force a numerical variable to follow a monotonically decreasing trend
Description
This function forces a variable to follow a monotonically decreasing trend by grouping bins. In case such a trend can not be forced a message is printed to the console
Usage
forceDecrTrend(binObj, xVars)
Arguments
binObj |
- An object returned by getBins or any other function (except createBins) in this package |
xVars |
- A vector of the name of variables |
Value
Returns a list containing 3 objects. Similar to the getBins function
Examples
b1 <- getBins(loanData, "bad_flag", c('age', 'score'), minCr=0.6, minProp = 0.01)
b1 <- forceDecrTrend(b1, c('score','age'))
[Package logiBin version 0.3 Index]