apply_woe: Weight of Evidence based segmentation of a variable

Description Usage Arguments Value Examples

View source: R/apply_woe.R

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
library(smbinning)
## Not run: woe_object <- woe_binning(smbsimdf1, "cbs1", "fgood", initial_bins = 10)
out <- apply_woe(smbsimdf1, woe_object)
#Above example to create and apply woe segmentation
## End(Not run)

woeR documentation built on May 1, 2019, 8:24 p.m.

Related to apply_woe in woeR...