true-discovery-guarantee | R Documentation |
These functions determine a lower confidence bound for the number of true discoveries, a lower confidence bound for the true discovery proportion (TDP), and an upper confidence bound for the false discovery proportion (FDP) within a set of interest. The bounds remain valid under post-hoc selection.
discoveries(object)
tdp(object)
fdp(object)
object |
an object of class |
discoveries
, tdp
and fdp
return a (1-alpha
)-confidence bound for the corresponding quantity in the subset.
Anna Vesely.
Create a sumObj
object: sumStats
, sumPvals
# generate matrix of p-values for 5 variables and 10 permutations
G <- simData(prop = 0.6, m = 5, B = 10, alpha = 0.4, seed = 42)
# subset of interest (variables 1 and 2)
S <- c(1,2)
# create object of class sumObj
# combination: harmonic mean (Vovk and Wang with r = -1)
res <- sumPvals(G, S, alpha = 0.4, r = -1)
res
summary(res)
# lower confidence bound for the number of true discoveries in S
discoveries(res)
# lower confidence bound for the true discovery proportion in S
tdp(res)
# upper confidence bound for the false discovery proportion in S
fdp(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.