batch_woe: Apply WoE transformations to vectors in dataframe

Description Usage Arguments Value Examples

View source: R/batch_woe.R

Description

The function batch_woe applies WoE transformations to vectors in the dataframe.

Usage

1
batch_woe(xs, bin_out)

Arguments

xs

A dataframe with numeric vectors to discretize.

bin_out

A binning output from the function batch_bin().

Value

A dataframe with identical headers as the input xs. However, values of each variable have been transformed to WoE values.

Examples

1
2
3
data(hmeq)
bin_out <- batch_bin(hmeq$BAD, hmeq[, c('DEROG', 'DELINQ')])$bin_out
head(batch_woe(hmeq[, c('DEROG', 'DELINQ')], bin_out))

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

Related to batch_woe in mob...