remove_cor: Removes Correlated Variables

Description Usage Arguments Details Value Examples

Description

Removes Correlated Variables

Usage

1
remove_cor(data, threshold = 0.8)

Arguments

data

The data.frame to check for multicollinearity.

threshold

Correlation threshold.

Details

Calculates the correlation matrix using cor. Then for each variable checks the correlation against all the other variables and removes the ones that are highly correlated according to the set threshold. Repeats the process until there are no correlated variables left.

Value

The name of the correlated variables.

Examples

1

LyzandeR/D2DF documentation built on May 8, 2019, 3:16 p.m.