forceIncrTrend: Force a numerical variable to follow a monotonically...

Description Usage Arguments Value Examples

View source: R/logiBin.R

Description

This function forces a variable to follow a monotonically increasing trend by grouping bins. In case such a trend can not be forced a message is printed to the console

Usage

1
forceIncrTrend(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

1
2
b1 <- getBins(loanData, "bad_flag", c('age', 'score'), minCr=0.6, minProp = 0.01)
b1 <- forceIncrTrend(b1, c('score','age'))

logiBin documentation built on May 2, 2019, 2:01 p.m.