Algorithm 2.
The procedure that accepts original hypotheses while controlling type-II MCER
| Input: matrix , nominal FDR , nominal type-II MCER |
| Step 1: construct a -level one-sided for . |
| Calculate , , and then . |
| For each bootstrap replicate , |
| Sample columns from with replacement to form . |
| Calculate , , and then . |
| Find to be the smallest that guarantees . |
| Find , the smallest that satisfies (A3), to be the quantile of . |
| Find the upper limit to be the BH cutoff of p-values in (A2) indexed by . |
| Step 2: Test hypotheses in (A1) given while controlling the FWER at . |
| Set . |
| While , |
| If (A4) does not hold, accept all remaining hypotheses and exit the loop. |
| Otherwise, reject , update . |
| Whenever is rejected, is accepted. |
| Output: a decision for every hypothesis between “accepted” and “non-accepted”. |