Compute probability (fraction) of values in a large population more extreme than input series.
Usage
getrankp(x, y, truncated.size=0)
Arguments
x
A vector of input series.
y
A vector of population values.
truncated.size
See Details. Only use when you know this.
Value
A vector of the same size as x.
Details
This function can be used to compute permutation-based false discovery rate (two-tailed). In such case, x contains test statistics from observed data while y contains test statistics from permutation. x could be a truncated set, with small values discarded to save memory.