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.
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
