Skip to contents

Compute permutation test p-value

Usage

permutation_test(permuted_test_stats, observed_test_stat, n_permutations = Inf)

Arguments

permuted_test_stats

a numeric() vector

observed_test_stat

a numeric() with length 1

n_permutations

how many permutations to use (Inf means use all in permuted_test_stats)

Value

a numeric()