Learn R Programming

scorecard (version 0.1.0)

woebin_ply: Application of Binning

Description

woebin_ply converts original input data into woe values based on the binning information generated by woebin.

Usage

woebin_ply(dt, bins)

Arguments

dt

A data frame.

bins

Binning information generated by woebin.

Value

Binning information

See Also

woebin, woebin_plot

Examples

Run this code
# NOT RUN {
# load germancredit data
data(germancredit)

dt <- germancredit[, c("creditability", "credit.amount", "purpose")]

# binning
bins <- woebin(dt, y = "creditability")

# converting original value to woe
dt_woe <- woebin_ply(dt, bins=bins)

# }
# NOT RUN {
# binning for germancredit dataset
bins_all <- woebin(germancredit, y="creditability")

# converting the values of germancredit into woe
germancredit_woe <- woebin_ply(germancredit, bins_all)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab