stretch_iq_bins: Adding Tolerance Buffer to outermost bins from Iterative...

Description Usage Arguments Value Examples

Description

New observations selected from the same population as the data used to build bin definitions may fall just outside the bins. If we wish to include nearby values we can either allow outer bins to be extended (this function) or to leave the outer bins unbounded.

Usage

1
stretch_iq_bins(iq_def, tol)

Arguments

iq_def

iterative quantile binning definition list

tol

vector of tolerance values to stretch each dimension for future binning

Value

updated binning definition with bins extended by tolerance values

Examples

1
2
3
4
5
iq_def <- iterative_quant_bin(data=iris, bin_cols=c("Sepal.Length","Sepal.Width","Petal.Width"),
                              nbins=c(3,2,2), output="both")
stretch_iq_def <- stretch_iq_bins(iq_def, tol = c(1,1,1))
iq_def$bin_def$bin_bounds
stretch_iq_def$bin_def$bin_bounds

kmaurer/binsemble documentation built on May 7, 2019, 9:50 p.m.