Adjusted p-values for several hypotheses tested together, from the joint null distribution of their statistics (permutations or bootstrap draws), holding the family-wise error rate while using the correlation between the tests.
Value
A data frame, one row per hypothesis in the order of obs:
stat, p (the share of draws of that statistic at least as large in
absolute value) and padj (the stepdown p-value).
Details
The statistics are ordered by size, |t_(1)| >= ... >= |t_(K)|. For each
null draw b, q_bj = max_{r >= j} |t*_b(r)|; the adjusted p-value of
the j-th is the share of draws with q_bj >= |t_(j)|, made monotone:
p~_(j) = max(p~_(j-1), p_(j)) (Westfall and Young 1993, algorithm
2.8). Draws with a missing or infinite statistic are left out.