Last chance! 50% off unlimited learning
Sale ends in
woebin_adj
interactively adjust the binning breaks.
woebin_adj(bins, dt, y, all_var = FALSE, count_distr_limit = 0.05)
A list or data frame. Binning information generated by woebin
.
A data frame.
Name of y variable.
Logical, default FALSE. It means whether to adjust all variables' binning breaks.
The count_distr limit to adjust binning breaks, default 0.05.
# NOT RUN {
# Load German credit data
data(germancredit)
# Example I
dt = germancredit[, c("creditability", "age.in.years", "credit.amount")]
bins = woebin(dt, y="creditability")
breaks_adj = woebin_adj(bins, dt, y="creditability")
bins_final = woebin(dt, y="creditability",
breaks_list=breaks_adj)
# Example II
binsII = woebin(germancredit, y="creditability")
breaks_adjII = woebin_adj(binsII, germancredit, "creditability")
bins_finalII = woebin(germancredit, y="creditability",
breaks_list=breaks_adjII)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab