Performs a sign-flipping paired permutation test on the paired
differences. coin::symmetry_test(distribution = "approximate")
is the canonical CRAN equivalent (cross-referenced); rmorie keeps
the inline path because the rmorie API returns the full null
distribution.
Usage
paired_permutation_test(
x,
y,
statistic = "mean_diff",
n_permutations = 9999L,
alternative = "two-sided",
seed = 42L
)