pvalueWeightedEst {OVESEG} | R Documentation

## p-value by weighted permutation scheme

### Description

This function estimates p-values by aggregating weighted permutations.

### Usage

    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

    #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)

[Package OVESEG version 1.6.0 Index]