manualSplit: Split a variable based on specified cuts

Description Usage Arguments Value Examples

View source: R/logiBin.R

Description

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

Usage

1
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

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

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