Performs a permutation test to assess statistical significance of
quality and behavior indices.
Usage
perm_test(D_high, D_low, K, n_perm = 1000)
Arguments
- D_high
High-dimensional distance matrix (n x n).
- D_low
Low-dimensional distance matrix (n x n).
- K
Integer neighborhood size.
- n_perm
Number of permutations (default 1000).
Value
A list with elements:
- vals
Named vector of observed index values.
- pQ
P-values for quality indices (one-tailed).
- pB
P-values for behavior indices (two-tailed).