Get a vector of pivotal statistics associated to permutation p-values and to a reference family
Source:R/calibration.R
get_pivotal_stat.Rd
Get a vector of pivotal statistics associated to permutation p-values and to a reference family
Usage
get_pivotal_stat(p0, m, t_inv = t_inv_linear, K = nrow(p0))
Arguments
- p0
A matrix with B rows. Each row is a vector of null p-values
- m
The total number of tested hypotheses
- t_inv
An inverse threshold function (same I/O as 't_inv_linear')
- K
An integer value in
[1,m]
, the number of elements in the reference family. Defaults tom
Value
A vector of length B
pivotal statitics, whose j-th entry
corresponds to psi(g_j.X)
with notation of the AoS 2020 paper cited
below (section 4.5)