getrankp: getrankp

Description Usage Arguments Details Value Author(s) Examples

Description

Compute probability (fraction) of values in a large population more extreme than input series.

Usage

1
  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.

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

1
2
3
x=abs(rnorm(100))
y=abs(rnorm(10000))
getrankp(x,y)[1:4]

NetWeaver documentation built on May 2, 2019, 11:26 a.m.