Description Usage Arguments Examples
Replaces variables in data frame with Weight of Evidence. This will add new columns with "_woe" suffix to specified data frame.
1 | iv.replace.woe(df, iv, verbose = FALSE)
|
df |
data frame with original data |
iv |
list of information values for variables -
output from |
verbose |
Prints additional details when TRUE. Useful mainly for debugging. |
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Replace WoE for list of variables
outiv <- iv.mult(german_data,"gb",vars=c("ca_status","housing","duration"))
x <- iv.replace.woe(german_data,outiv)
str(x)
# Replace WoE for all variables
outiv <- iv.mult(german_data,"gb")
x <- iv.replace.woe(german_data,outiv)
str(x)
# Replace WoE for all numeric variables- ultimate one-liner
x <- iv.replace.woe(german_data,iv.mult(german_data,"gb",vars=varlist(german_data,"numeric")))
str(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.