Skip to contents

Tests are evaluated in the given order and the procedure stops at the first non-rejection; reached hypotheses need no multiplicity adjustment. The gMCP package implements the equivalent procedure via a chain graph.

Usage

fixed_sequence(p_values, alpha = 0.05, labels = NULL)

Arguments

p_values

Numeric vector of raw p-values.

alpha

Significance level.

labels

Optional character vector of test labels.

Value

An object of class "morie_multiple_testing_result".

Examples

res <- fixed_sequence(c(0.01, 0.02, 0.5, 0.001))
res$n_rejected
#> [1] 2
res$rejected
#> [1]  TRUE  TRUE FALSE FALSE