powered by
Performs a Mantel test between two distance matrices.
mantel.randtest(m1, m2, nrepet = 999, ...)
an object of class randtest (randomization tests)
randtest
an object of class dist
dist
the number of permutations
further arguments passed to or from other methods
Jean Thioulouse Jean.Thioulouse@univ-lyon1.fr
Mantel, N. (1967) The detection of disease clustering and a generalized regression approach. Cancer Research, 27, 209--220.
data(yanomama) gen <- quasieuclid(as.dist(yanomama$gen)) geo <- quasieuclid(as.dist(yanomama$geo)) plot(r1 <- mantel.randtest(geo,gen), main = "Mantel's test") r1
Run the code above in your browser using DataLab