pvalueWeightedEst: p-value by weighted permutation scheme

Description Usage Arguments Details Value Examples

Description

This function estimates p-values by aggregating weighted permutations.

Usage

1
pvalueWeightedEst(tt, ttperm, w)

Arguments

tt

a vector of test statistics.

ttperm

a matrix of test statistics from permutations. Rows correspond to probes and columns to one permutation.

w

a matrix containing weights for each spot in ttperm. Provided by postProbNull.

Details

P-values are estimated by weightedly accumulating test statistics from permutations that are larger than observations

Value

p-values.

Examples

1
2
3
4
5
6
#generate some example data
t.obs <- rnorm(100)
t.perm <- matrix(rnorm(100*1000),nrow=100)
w <- matrix(runif(100*1000),nrow=100)

pv <- pvalueWeightedEst(t.obs, t.perm, w)

Lululuella/OVESEG documentation built on May 21, 2019, 2:28 a.m.