perm.rank.test: AUC permutation test

View source: R/plot_results.R

perm.rank.testR Documentation

AUC permutation test

Description

computes the area under the rank enrichment score curve and does a permutation test to compute the p-value

Usage

perm.rank.test(
  x,
  y = NULL,
  alternative = c("two.sided", "less", "greater"),
  iter = 1000
)

Arguments

x

numeric vector of ranks

y

numeric vector of the superset of x

alternative

character for test type: 'less','greater','two.sided'

iter

integer number of iterations

Value

p-value

Author(s)

Martin Pirkl

Examples

x <- 1:10
y <- 1:100
perm.rank.test(x,y,alternative='less')
perm.rank.test(x,y,alternative='greater')

cbg-ethz/epiNEM documentation built on Nov. 9, 2023, 8:56 p.m.