DaMiR.FReduct: Remove highly correlated features, based on...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/Feature_Selection.R

Description

This function allows the user to remove highly correlated features.

Usage

1
DaMiR.FReduct(data, th.corr = 0.85, type = c("spearman", "pearson"))

Arguments

data

A transposed data frame or matrix of normalized expression data. Rows and Cols should be, respectively, observations and features

th.corr

Feature-per-feature correlation threshold; default is 0.85

type

Type of correlation metric to be applied; default is "spearman"

Details

This function produces an absolute correlation matrix that it is then used to reduce pair-wise correlations. When two features present a correlation higher than that defined by the user in th.corr argument, the function, first, calculates the mean absolute correlation of each feature and, then, removes the feature with the largest mean absolute correlation.

Value

An expression matrix without highly correlated features.

Author(s)

Mattia Chiesa, Luca Piacentini

See Also

rcorr, findCorrelation

Examples

1
2
3
4
5
# use example data:
data(data_reduced)
# reduce the number of features:
data_Reduced <- DaMiR.FReduct(data_reduced,
th.corr = 0.75, type = "pearson")

DaMiRseq documentation built on Dec. 2, 2018, 6:01 p.m.