Learn R Programming

NetWeaver (version 0.0.6)

getrankp: 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. 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.

Examples

Run this code
# NOT RUN {
x=abs(rnorm(100))
y=abs(rnorm(10000))
getrankp(x,y)[1:4]
# }

Run the code above in your browser using DataLab