WGCNA (version 1.68)

corPvalueFisher: Fisher's asymptotic p-value for correlation

Description

Calculates Fisher's asymptotic p-value for given correlations.

Usage

corPvalueFisher(cor, nSamples, twoSided = TRUE)

Arguments

cor

A vector of correlation values whose corresponding p-values are to be calculated

nSamples

Number of samples from which the correlations were calculated

twoSided

logical: should the calculated p-values be two sided?

Value

A vector of p-values of the same length as the input correlations.