HCdetection: Higher Criticism for detecting rare and weak signals
Description
This function takes a bunch of p-values as input and ouput the Higher Criticism statistics as well as the decision (rejection or not).
Usage
HCdetection(p, alpha = 0.5, pvalcut = NA)
Arguments
p
A vector of size n containing p-values from data
alpha
A number between 0 and 1. The smallest alpha*n p-values will be
used to calculate the HC statistic. Default is 0.5.
pvalcut
A number between 0 and 1. Those small p-values (smaller than
pvalcut) will be taken away to avoid heavy tails of test
statistic. Set it to NA is equivalent to setting it to \(1/n\).
Value
Returns a list containing the following items
H
0 or 1 scalar indicating whether \(H_0\) the global null is rejected (1) or not rejected (0)