permutationstest
A permutation test, also called a randomization test, is a nonparametric method for testing hypotheses by using the data themselves to build the null distribution. It relies on the idea that, under the null hypothesis, the labels or assignments of observations to groups are exchangeable, so all labelings are equally likely.
The basic procedure is straightforward. Choose a test statistic that measures the effect of interest, such
Common variants include the two-sample permutation test, used to compare independent groups; the paired or matched-pairs
Permutation tests are distribution-free and robust to many deviations from parametric assumptions, making them suitable for