pub fn parallel_permutation_test(
group1: &[f64],
group2: &[f64],
n_permutations: usize,
seed: Option<u64>,
) -> StatsResult<PermutationTestResult>Expand description
Parallel permutation test for the difference in means between two groups.
Randomly permutes group labels and recomputes the test statistic to build a null distribution.
§Arguments
group1- First group’s datagroup2- Second group’s datan_permutations- Number of random permutationsseed- Optional random seed for reproducibility
§Returns
PermutationTestResult with observed statistic and p-value.