Description Usage Arguments Value Examples
Calculates false-discovery proportions and statistical power
1 2 3 |
rej |
integer indices of rejected hypotheses |
support |
integer indices of the underlying true hypotheses (with true alternative hypotheses) |
fdp
returns the false-discovery proportions and pwr
returns statistical power
1 2 3 4 5 6 7 8 9 10 11 12 | # Underlying support is the first 100 hypotheses, but the rejection is
# 2 to 101
support <- 1:100
rejection <- c(2:101)
# Total rejection (length(rejection)) is 100; false rejection is 1
# FDP = 1/100
fdp(rejection, support)
# True positives = 99, total true hypotheses is 100
# power is 99/100
pwr(rejection, support)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.