Description Usage Arguments Value Examples
Generate buckets for numerical features using 'smbinning'.
1 2 | gen_buckets(data, target, x, fitLimits = range(data[, x]), minNumCuts = 4,
minBktPct = 0.1)
|
data |
A data frame contains target and numerical variable that to be binned. Has to be exactly 'data.frame', "smbinning::smbinning()" won't accept, say, tibbles. |
target |
Character string indicating name of the target variable. |
x |
Character string indicating name of the continuous numerical variable. |
fitLimits |
Vector of two float numbers indicating model fitting limits of x. |
minNumCuts |
Integer representing minimum number of cut points required/wanted. |
minBktPct |
Float number indicating minimum percent of observation required for each 'smbinning' generated buckets. A number to be used to indicate parameter 'p' in function 'smbinning'. |
A 'smbinning' object.
1 2 | BinsFICO_UsedPlat <- gen_buckets(data = Data_UsedPlat, target = 'BadInd',
x = 'CreditScore', fitLimits = c(450, 900), minNumCuts = 5, minBktPct = 0.15)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.