| select_by_fdp | R Documentation |
Returns the largest selection of most significant hypotheses whose bound on
the false discovery proportion (FDP) is at most fdp.
select_by_fdp(fit, fdp = 0.1)
fit |
a result of |
fdp |
the largest FDP bound allowed, between 0 and 1. |
The selection consists of the hypotheses whose fdp_at_most in
hypothesis_table is at most fdp. With probability at
least 1 - alpha, the FDP of the returned selection is at most
fdp for every value of fdp at once.
An integer vector of hypothesis indices, from the most significant, named by the hypothesis labels when they exist. It is empty when no selection meets the bound.
hypothesis_table, true_discoveries
se <- (log(dialysis$upper) - log(dialysis$lower)) / (2 * qnorm(0.975))
z <- (log(1.2 * 22.2) - log(dialysis$mortality)) / se
fit <- combined_bound(z)
top <- select_by_fdp(fit, fdp = 0.1)
length(top)
true_discoveries(fit, top)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.