powered by
This function splits variables based on cuts that have been input manually
manualSplit(binObj, splitVar, y, splits, df)
- An object returned by getBins or any other function (except createBins) in this package
- The name of the variable that has to be split
- The dependent variable
- The splits for the variable
- A data frame
Returns a list containing 3 objects. Similar to the getBins function
# NOT RUN { b1 <- getBins(loanData, "bad_flag", c('age', 'score', 'balance'), minCr=0.8) b1 <- manualSplit(b1, 'age', 'bad_flag', c(25,40,55), loanData) # }
Run the code above in your browser using DataLab