cal_woe: Perform WoE transformation of a numeric variable

Description Usage Arguments Value Examples

View source: R/cal_woe.R

Description

The function cal_woe applies the WoE transformation to a numeric vector based on the binning outcome from a binning function, e.g. qtl_bin() or iso_bin().

Usage

1
cal_woe(x, bin)

Arguments

x

A numeric vector that will be transformed to WoE values.

bin

A list with the binning outcome from the binning function, e.g. qtl_bin() or iso_bin()

Value

A numeric vector with WoE transformed values.

Examples

1
2
3
data(hmeq)
bin_out <- qtl_bin(hmeq$DEROG, hmeq$BAD)
cal_woe(hmeq$DEROG[1:10], bin_out)

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

Related to cal_woe in mob...