iqbin_stretch: Stretching to Add Tolerance Buffer to outermost Iterative...

Description Usage Arguments Value See Also Examples

View source: R/IterativeQuantileBinning.R

Description

We may wish to include values just outside the constructed bins in future applications. iqbin_stretch redefines the outermost bin in each dimension from a definition created by iqbin

Usage

1
iqbin_stretch(iq_def, tol)

Arguments

iq_def

iterative quantile binning definition list from iqbin function

tol

vector of tolerance values to stretch each dimension for future binning

Value

updated binning definition list with outermost bin boundaries extended by tolerance values

See Also

Other iterative quantile binning functions: iqbin_assign, iqbin

Examples

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

kmaurer/iqbin documentation built on Jan. 1, 2020, 6:48 p.m.