Skip to contents

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
)

Arguments

x, y

Paired numeric vectors (same length).

statistic

"mean_diff" or "median_diff".

n_permutations

Number of permutations.

alternative

"two-sided", "greater", "less".

seed

Random seed.

Value

A morie_permutation_test_result.