Skip to main content

permutation_test

Function permutation_test 

Source
pub fn permutation_test(
    x: &[f64],
    y: &[f64],
    n_perms: usize,
    seed: u64,
) -> Result<(f64, f64), String>
Expand description

Permutation test: test whether two groups differ on a statistic. Returns (observed_diff, p_value).