getrankp {NetWeaver} | R Documentation |
getrankp
Description
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
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.
Value
A vector of the same size as x
.
Author(s)
Minghui Wang <m.h.wang@live.com>
Examples
x=abs(rnorm(100))
y=abs(rnorm(10000))
getrankp(x,y)[1:4]
[Package NetWeaver version 0.0.6 Index]