cut_equal {creditmodel}R Documentation

Generating Initial Equal Size Sample Bins

Description

cut_equal is used to generate initial breaks for equal frequency binning.

Usage

cut_equal(dat_x, g = 10, sp_values = NULL, cut_bin = "equal_depth")

Arguments

dat_x

A vector of an variable x.

g

numeric, number of initial bins for equal_bins.

sp_values

a list of special value. Default: list(-1, "missing")

cut_bin

A string, 'equal_depth' or 'equal_width', default is 'equal_depth'.

See Also

get_breaks, get_breaks_all,get_tree_breaks

Examples

#equal sample size breaks
equ_breaks = cut_equal(dat = UCICreditCard[, "PAY_AMT2"], g = 10)


[Package creditmodel version 1.3.0 Index]