Description Usage Arguments Value Author(s) Examples
The function returns a list of variables that can be dropped because of low discriminatory power, based on Information Value. If IV for a variable is less than a user defined threshold, the variable will be recommended to be dropped by this function.
1 |
base |
input dataframe |
iv_table |
dataframe of class iv_table with two columns - Variable_name, iv |
threshold |
threshold IV value below which the variable will be recommended to be dropped |
An object of class "iv_filter" is a list containing the following components:
retain_var_tab |
variables remaining post IV filter as a dataframe |
retain_var_name |
array of column names of variables to be retained |
dropped_var_tab |
variables that can be dropped based on IV filter as a dataframe |
threshold |
threshold IV value used as input parameter |
Arya Poddar <aryapoddar290990@gmail.com>
1 2 3 4 5 6 7 8 9 | data <- iris
data$Y <- sample(0:1,size=nrow(data),replace=TRUE)
x <- c("Sepal.Length","Sepal.Width","Petal.Length","Petal.Width")
iv_table_list <- iv_table(base = data,target = "Y",num_var_name = x,cat_var_name = "Species")
ivf_list <- iv_filter(base = data,iv_table = iv_table_list$iv_table,threshold = 0.02)
ivf_list$retain_var_tab
ivf_list$retain_var_name
ivf_list$dropped_var_tab
ivf_list$threshold
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.