matrix_cor_ts {heterocop} | R Documentation |
matrix_cor_ts
Description
This function enables the user to threshold matrix coefficients
Usage
matrix_cor_ts(R, TS, binary = TRUE)
Arguments
R |
a correlation matrix |
TS |
a threshold |
binary |
a boolean specifying whether the coefficients should be binarized, TRUE by defaut (zero if the coefficient is less than the threshold in absolute value, 1 otherwise) |
Value
the thresholded input matrix
Examples
M <- diag_block_matrix(c(3,4,5),c(0.7,0.8,0.2))
matrix_cor_ts(M,0.5)
[Package heterocop version 1.0.0 Index]