pvalueWeightedEst: p-value by weighted permutation scheme

Description Usage Arguments Details Value Examples

View source: R/pvalueWeightedEst.R

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)

OVESEG documentation built on Nov. 8, 2020, 4:51 p.m.