Description Usage Arguments Value Examples
A merge function to collapse bin objects. This function is used by other functions in the binsmlr package, but it is also useful on a standalone basis when manual binning is required (enforce monotonicity across bins in terms of default rates).
1 | merge_list_of_bins(list_of_bins, idx)
|
list_of_bins |
A list of bins. |
idx |
An integer (index) vector indicating which bins in
|
A list of bins. Each list component in the returned list is a bin (of
class bin). Total length equal to length(list_of_bins) - length(idx)
+ 1
.
1 2 3 4 5 6 7 | # example of manual binning
autobins <- autobin(bin_data, 30, "score", "default", 12, 0.01)
length(autobins)
is_monotonic(autobins, verbose = TRUE)
man_bins <- merge_list_of_bins(autobins, 3:4)
length(man_bins)
is_monotonic(man_bins)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.