select_by_fdp: Largest list of most significant hypotheses with a given FDP...

View source: R/selections.R

select_by_fdpR Documentation

Largest list of most significant hypotheses with a given FDP bound

Description

Returns the largest selection of most significant hypotheses whose bound on the false discovery proportion (FDP) is at most fdp.

Usage

select_by_fdp(fit, fdp = 0.1)

Arguments

fit

a result of combined_bound.

fdp

the largest FDP bound allowed, between 0 and 1.

Details

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.

Value

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.

See Also

hypothesis_table, true_discoveries

Examples

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)

posthocbounds documentation built on Nov. 28, 2026, 1:08 a.m.