R/mantel.R

Defines functions mantel

Documented in mantel

mantel <- function(y, x) {
 d1 <- Rfast::Dist(y, result = "vector")
 d2 <- Rfast::Dist(x, result = "vector")
 cor(y, x)
}

Try the mvcor package in your browser

Any scripts or data that you put into this service are public.

mvcor documentation built on April 11, 2025, 5:39 p.m.