RF: Redundancy filtering of a square (correlation) matrix

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

View source: R/FMradio.R

Description

RF is a function that performs redundancy filtering (RF) of a square (correlation) matrix.

Usage

1
RF(R, t = .95)

Arguments

R

Square (correlation) matrix.

t

A scalar numeric indicating the absolute value for thresholding.

Details

Radiomic features can be very strongly correlated. The sample correlation matrix on extracted radiomic features will then often display strong collinearity. The collinearity may be so strong as to imply redundant information, in the sense that some entries will approach perfect (negative) correlation. Hence, one may wish to perform redundancy-filtering on the raw sample correlation matrix in such situations.

The RF function uses an Algorithm from Peeters et al. (2019) to remove the minimal number of redundant features under absolute marginal correlation threshold t. We recommend setting \mathrm{t} \in [.9,.95]. Details of the algorithm can be found in Peeters et al. (2019).

The function returns a redundancy-filtered correlation matrix. This return output may subsequently be used in the subSet function. This is a convenience function that subsets a dataset to the features retained after redundancy-filtering.

Value

Returns a redundancy-filtered matrix.

Note

Author(s)

Carel F.W. Peeters <cf.peeters@vumc.nl>

References

Peeters, C.F.W. et al. (2019). Stable prediction with radiomics data. arXiv:1903.11696 [stat.ML].

See Also

subSet, regcor

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Generate some (high-dimensional) data
## Get correlation matrix
p = 25
n = 10
set.seed(333)
X = matrix(rnorm(n*p), nrow = n, ncol = p)
colnames(X)[1:25] = letters[1:25]
R <- cor(X)

## Redundancy visualization, at threshold value .9
radioHeat(R, diag = FALSE, threshold = TRUE, threshvalue = .9)

## Redundancy-filtering of correlation matrix
Rfilter <- RF(R, t = .9)
dim(Rfilter)

Example output

[1] 23 23

FMradio documentation built on Dec. 16, 2019, 5:43 p.m.