Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/Feature_Selection.R
This function allows the user to remove highly correlated features.
1 | DaMiR.FReduct(data, th.corr = 0.85, type = c("spearman", "pearson"))
|
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" |
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.
An expression matrix without highly correlated features.
Mattia Chiesa, Luca Piacentini
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.