matrix_cor_ts: matrix_cor_ts

View source: R/heterocop.R

matrix_cor_tsR 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)


heterocop documentation built on April 3, 2025, 11:04 p.m.