Description Usage Arguments Value See Also Examples
Compute the p-values from a single set of permutations obtained from calibrate_test
.
Useful if testing a large number of variables at once since it allows
running permutations only once beforehand rather than for every variable.
Used in conjunction with "calibrate_test
"
1 | get_calibrated_pvalues(calibration, es1, conservative = T)
|
calibration |
Output of function |
es1 |
Max Enrichment score given by function |
conservative |
Default=TRUE. p-values = b+1/ (1+ #permutations) is the returned value. As described in Phibson 2010: "Permutation p-values should never be zero" |
calibrated p-value(s) corresponding to the max enrichment score(s) given
1 2 3 4 5 6 7 8 | y = c(rep(1,200),rep(0,200))
x = rnorm(400)
calibration = calibrate_test(y,rep=1000)
es = aziz.test(y,x,rep=0)$es #No need for permutations, p-values computed from calibration
get_calibrated_pvalues(calibration,es)
x[1:20]=x[1:20]-2;
es2 = aziz.test(y,x,rep=0)$es
get_calibrated_pvalues(calibration,es2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.