Lower Bound of an Exact Two-Sided Permutation P Value
Source:R/figure-data-tests.R
ExactPermutationBound.RdFor an exact permutation test of two groups of sizes n_a and n_b
(all allocations of the pooled values), the observed allocation always
reaches its own statistic; with equal group sizes its mirror allocation
reaches the same absolute difference. The smallest attainable two-sided
P is therefore at least 2 / choose(n_a + n_b, n_a) for equal and
1 / choose(n_a + n_b, n_a) for unequal sizes.