Description Usage Arguments Value Author(s) Examples
Calculates adjusted p-values of Hommel's method efficiently.
1 | hommelFast (pvalues, simes = TRUE)
|
pvalues |
A vector of p-values. |
simes |
If |
Returns a hommel
object.
Rosa Meijer: r.j.meijer@lumc.nl
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#Generate a vector of pvalues
set.seed(1)
n <- 1000
pvalues <- c(runif(0.50*n,0,0.001), runif(0.50*n,0,1))
#Create an hommel object in which the adjusted p-values are stored, based on a Simes'test
#(or Hommel's test, by choosing simes = FALSE):
hom <- hommelFast(pvalues, simes = TRUE)
#Retrieve the first 10 adjusted p-values by using the \code{p.adjust} method
# from the hommel package. Note that they are not sorted
hommel::p.adjust(hom)[1:10]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.