apply_woe: Weight of Evidence based segmentation of a variable

Description Usage Arguments Value Examples

Description

This function applies the binning generated from woe_binning to new data

Usage

1
apply_woe(df, woe_object)

Arguments

df

A data frame. The variable names and types need to be identical to the ones passed to woe_binning

woe_object

Output object from woe_binning function

Value

Input data frame is returned with two new columns - bin & woe

Examples

1
2
3
4
5
6
library(smbinning)
data("chileancredit")
## Not run: woe_object <- woe_binning(chileancredit, "cbs1", "fgood", initial_bins = 10)
out <- apply_woe(chileancredit, woe_object)
#Above example to create and apply woe segmentation 
## End(Not run)

kraken19/woeR documentation built on May 29, 2019, 3:39 a.m.