manualSplit {logiBin}R Documentation

Split a variable based on specified cuts

Description

This function splits variables based on cuts that have been input manually

Usage

manualSplit(binObj, splitVar, y, splits, df)

Arguments

binObj

- An object returned by getBins or any other function (except createBins) in this package

splitVar

- The name of the variable that has to be split

y

- The dependent variable

splits

- The splits for the variable

df

- A data frame

Value

Returns a list containing 3 objects. Similar to the getBins function

Examples

b1 <- getBins(loanData, "bad_flag", c('age', 'score', 'balance'), minCr=0.8)
b1 <- manualSplit(b1, 'age', 'bad_flag', c(25,40,55), loanData)


[Package logiBin version 0.3 Index]