empiricalPval: empiricalPval

Description Usage Arguments Value Examples

Description

empiricalPval estimates the single-sided empirical pvalues of observed statistics based on the shuffled statistics

Usage

1
empiricalPval(observedStats, shuffledStats, step = 1)

Arguments

observedStats

a vector of observed statistics

shuffledStats

a vector of shuffled statistics

Value

a vector of p values taking values in [0,1]

Examples

1
2
3
4
5
observedStats = qnorm( seq(0,1,0.1) )
shuffledStats = rnorm(100000)
# estimate the single-sided empirical pvalue
emp = getEmpiricalNum(observedStats,shuffledStats) 
cat(round(emp,2),'\n') 

zhushijia/GIGSEA documentation built on May 3, 2019, 10:45 p.m.