getrankp {NetWeaver} | R Documentation |
Compute probability (fraction) of values in a large population more extreme than input series.
getrankp(x, y, truncated.size=0)
x |
A vector of input series. |
y |
A vector of population values. |
truncated.size |
See |
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.
A vector of the same size as x
.
Minghui Wang <m.h.wang@live.com>
x=abs(rnorm(100))
y=abs(rnorm(10000))
getrankp(x,y)[1:4]