pvalueWeightedEst {OVESEG} | R Documentation |
This function estimates p-values by aggregating weighted permutations.
pvalueWeightedEst(tt, ttperm, w)
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 |
P-values are estimated by weightedly accumulating test statistics from permutations that are larger than observations
p-values.
#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)