high_cor_selector: Compare the two highly correlated variables

Description Usage Arguments Value

View source: R/variable_selection.R

Description

high_cor_selector is function for comparing the two highly correlated variables, select a variable with the largest IV value.

Usage

1
2
3
4
5
6
7
high_cor_selector(
  cor_mat,
  p = 0.95,
  x_list = NULL,
  com_list = NULL,
  retain = TRUE
)

Arguments

cor_mat

A correlation matrix.

p

The threshold of high correlation.

x_list

Names of independent variables.

com_list

A data.frame with important values of each variable. eg : IV_list.

retain

Logical, output selected variables, if FALSE, output filtered variables.

Value

A list of selected variables.


creditmodel documentation built on Jan. 25, 2021, 5:08 p.m.