Description Usage Arguments Details Value Examples
Removes Correlated Variables
1 | remove_cor(data, threshold = 0.8)
|
data |
The data.frame to check for multicollinearity. |
threshold |
Correlation threshold. |
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.
The name of the correlated variables.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.