removeCorrelatedCovariates: A function to remove correlated covariets

Description Usage Arguments Value Examples

Description

This function takes column names and looks for correlations between these columns and drops one of them if the correlation is above the tolerance

Usage

1
removeCorrelatedCovariates(names, tolerance, myDataFrame)

Arguments

names

The columnames to be annalyzed

tolerance

The highest allowed correlation

myDataFrame

Data frame which should be annalyzed

Value

A data frame with the correlation coefficents in descending order

Examples

1
2
names = c('one', 'kpi', 'sun')
removeCorrelatedCovariates(names = names, tolerance = .9, myDataFrame = mydf)

johan-gudmundsson/JGTools documentation built on May 19, 2019, 3:02 p.m.