ranked_bounds: Bounds for the most significant hypotheses

View source: R/selections.R

ranked_boundsR Documentation

Bounds for the most significant hypotheses

Description

Reports, for each k, the bounds for the selection of the k hypotheses with the largest statistics. As a function of k, the lower bound on true discoveries is a confidence envelope.

Usage

ranked_bounds(fit, k = NULL)

Arguments

fit

a result of combined_bound.

k

numbers of most significant hypotheses; the default NULL gives every k from 1 to the number of hypotheses.

Details

Ties among the statistics are broken by the order of the input. The bounds hold simultaneously for all k, and for all other selections, with probability at least 1 - alpha.

Value

A data frame with the columns

k

number of most significant hypotheses.

z_k

the k-th largest statistic.

true_at_least

lower bound on the number of true discoveries among them.

false_at_most

upper bound on the number of false discoveries among them.

fdp_at_most

upper bound on their false discovery proportion.

See Also

combined_bound, plot.combined_bound, hypothesis_table

Examples

set.seed(1)
z <- rnorm(2000, mean = c(rep(2, 300), rep(0, 1700)))
fit <- combined_bound(z)
ranked_bounds(fit, k = c(10, 50, 100, 200, 300, 500))

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