Skip to main content
. Author manuscript; available in PMC: 2024 Mar 3.
Published in final edited form as: Stat Med. 2023 Nov 14;43(2):279–295. doi: 10.1002/sim.9959

Algorithm 2.

The procedure that accepts original hypotheses while controlling type-II MCER

Input: matrix I, nominal FDR ϕ, nominal type-II MCER α2
Step 1: construct a 1α~2-level one-sided CI0,τu for τ*.
 Calculate (X1,X2,,Xm), (pˆ1,pˆ2,,pˆm), and then F^.
 For each bootstrap replicate b=1,2,,B,
  Sample n columns from I with replacement to form I(b).
  Calculate (X1(b),X2(b),,Xm(b)), (pc,1(b),pc,2(b),,pc,m(b)), and then Fc(b).
  Find cu(b) to be the smallest c that guarantees F^Fc(b).
 Find cu, the smallest c that satisfies (A3), to be the 1α~2 quantile of (cu(1),cu(2),,cu(B)).
 Find the upper limit τu to be the BH cutoff of p-values in (A2) indexed by cu.
Step 2: Test hypotheses in (A1) given τu while controlling the FWER at α2α~2.
 Set i=m.
 While i1,
  If (A4) does not hold, accept all remaining hypotheses H~(i),0s and exit the loop.
  Otherwise, reject H~(i),0, update i=i1.
 Whenever H~(i),0 is rejected, H(i),0 is accepted.
Output: a decision for every hypothesis Hi,0 between “accepted” and “non-accepted”.