group_func_1 creates groups of variables based on thresholding the input matrix.

group_func_1(absXcor, c0)

Arguments

absXcor

A numeric matrix. The absolute value of a correlation or distance matrix.

c0

A numeric scalar. The thresholding

Value

A list with one entry: the list of groups. Attributes:

  • "type": "normal"

  • "length.groups" the length of each groups.

Details

This is a function used to create a list of groups using an input matrix and a thresholding value c0. A group is made, for every column in the input matrix.

References

selectBoost: a general algorithm to enhance the performance of variable selection methods in correlated datasets, Frédéric Bertrand, Ismaïl Aouadi, Nicolas Jung, Raphael Carapito, Laurent Vallat, Seiamak Bahram, Myriam Maumy-Bertrand, Bioinformatics, 2020. doi:10.1093/bioinformatics/btaa855

Author

Frederic Bertrand, frederic.bertrand@utt.fr

Examples

set.seed(314)
group_func_1(cor(matrix(rnorm(50),10,5)),.4)
#> [[1]]
#> [1] 1 5
#> 
#> [[2]]
#> [1] 2
#> 
#> [[3]]
#> [1] 3
#> 
#> [[4]]
#> [1] 4
#> 
#> [[5]]
#> [1] 1 5
#> 
#> attr(,"type")
#> [1] "normal"