hypothesis_table: Bounds for each hypothesis

View source: R/selections.R

hypothesis_tableR Documentation

Bounds for each hypothesis

Description

Lists each hypothesis with its statistic, its p-value, its rank, whether it is significant individually, and a bound on the false discovery proportion (FDP) that can be reported next to its p-value.

Usage

hypothesis_table(fit, sort = FALSE)

Arguments

fit

a result of combined_bound.

sort

logical; if TRUE, rows are ordered from the most significant hypothesis, otherwise they follow the input.

Details

For the hypothesis of rank s, fdp_at_most is the smallest FDP bound among the selections of the k most significant hypotheses with k \ge s, that is, among the lists of most significant hypotheses that contain it. It is built in the same way as the q-value of Storey (2003) from the FDP bounds of ranked_bounds, and it is nondecreasing in the rank. With probability at least 1 - alpha, for every level q at once, the hypotheses with fdp_at_most <= q have a false discovery proportion of at most q.

Value

A data frame with the columns

hypothesis

label, or index if the statistics had no names.

z

statistic.

p_value

one-sided p-value, not adjusted for multiplicity.

rank

rank from the largest statistic.

significant

TRUE if the hypothesis is a true discovery on its own; these hypotheses control the familywise error rate at level alpha.

fdp_at_most

bound on the false discovery proportion, as in Details.

References

Storey, J. D. (2003). The positive false discovery rate: a Bayesian interpretation and the q-value. The Annals of Statistics, 31, 2013–2035. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1214/aos/1074290335")}

See Also

select_by_fdp, ranked_bounds

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)
head(hypothesis_table(fit, sort = TRUE))

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