Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

hommelFast

Calculates adjusted p-values of Hommel's method efficiently.


Description

Calculates adjusted p-values of Hommel's method efficiently.

Usage

hommelFast (pvalues, simes = TRUE)

Arguments

pvalues

A vector of p-values.

simes

If TRUE, a Simes' test is used, if FALSE Hommel's test is used.

Value

Returns a hommel object.

Author(s)

Rosa Meijer: r.j.meijer@lumc.nl

Examples

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

cherry

Multiple Testing Methods for Exploratory Research

v0.6-14
GPL (>= 2)
Authors
Jelle Goeman, Aldo Solari, Rosa Meijer
Initial release
2021-05-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.