Description Usage Arguments Value Examples
replace.woe
replace the original levels with the calculated WOE from
the level.stat
function. It will replace all variables that can be
found from stat
1 | replace.woe(data, stat, replace = FALSE)
|
data |
The data frame needs to be replaced |
stat |
The statistics generated from |
replace |
Whether to replace (replace = TRUE) the original values or add a new column to the end of the data (replace = FALSE). |
a data frame with WOE values.
1 2 3 | data <- rpart::stagec
st <- level.stat(data, x = c('eet', 'ploidy'), y = 'pgstat')
replace.woe(data, stat = st)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.