matCorSig.fuzz: Calculate correlation matrix p-values, adding a small noise...

Description Usage Arguments Value References

Description

Calculate two-sided p-values from a pairwise correlations matrix and a corresponding "number of samples" matrix, adding a small random noise term which is defined as epsilon * rand(0,1).

Usage

1
matCorSig.fuzz(corrs, nsamp, secondMat = FALSE, epsilon = 1e-06)

Arguments

corrs

Computed correlation matrix.

nsamp

Computed number of samples used per call in the correlation matrix.

secondMat

Logical indicator of whether there is a second matrix in the comparison or not.

epsilon

A number representing the maximum noise to add to each p-value. Default is 1e-6.

Value

A matrix of p-values.

References

HMisc R package https://cran.r-project.org/web/packages/Hmisc/index.html; Yang et al., A Fuzzy Permutation Method for False Discovery Rate Control, Nat Sci Rep (2016), https://www.nature.com/articles/srep28507


nosarcasm/DGCA documentation built on June 13, 2019, 11:49 p.m.