removeCorrelatedCovariates: A function to remove correlated covariets

Description Usage Arguments Value Examples

View source: R/removeCorrelatedCovariets.R

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)

joh4n/JGTools documentation built on May 24, 2019, 4:06 a.m.