batch_bin: Apply monotonic binning to all vectors in dataframe

Description Usage Arguments Value Examples

View source: R/batch_bin.R

Description

The function batch_bin applies multiple binning algorithms in batch to each vector in the dataframe.

Usage

1
batch_bin(y, xs, method = 1)

Arguments

y

A numeric vector with 0/1 binary values.

xs

A dataframe with numeric vectors to discretize.

method

A integer from 1 to 7 referring to implementations below: 1. Implementation of iso_bin() 2. Implementation of qtl_bin() 3. Implementation of bad_bin() 4. Implementation of rng_bin() 5. Implementation of gbm_bin() 6. Implementation of kmn_bin() 7. Implementation of arb_bin()

Value

A list of binning outcomes with 2 dataframes: bin_sum: A dataframe of binning summary. bin_out: A list of binning output from binning functions, e.g. qtl_bin().

Examples

1
2
data(hmeq)
batch_bin(hmeq$BAD, hmeq[, c('DEROG', 'DELINQ')])

mob documentation built on July 31, 2021, 9:06 a.m.

Related to batch_bin in mob...