Skip to contents

Mantel test of two condensed distance matrices on the same cells, permuting cells (Mantel, 1967)

Usage

structure_mantel(
  first,
  second,
  method = "spearman",
  permutations = 999L,
  alternative = "greater",
  seed = 0,
  threads = NULL
)

Arguments

first, second

Condensed distance vectors over the same cells.

method

"spearman", "pearson" or "kendall".

permutations

Number of permutations.

alternative

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

seed

Random seed.

threads

Worker threads, or NULL.

Value

A list with statistic, p_value, permutations, null_mean and null_sd.