Description Usage Arguments Value Author(s) References Examples
Performs a Mantel test between two distance matrices.
1 | mantel.randtest(m1, m2, nrepet = 999)
|
m1 |
an object of class |
m2 |
an object of class |
nrepet |
the number of permutations |
an object of class randtest
(randomization tests)
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.
1 2 3 4 5 | 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
|
Monte-Carlo test
Call: mantel.randtest(m1 = geo, m2 = gen)
Observation: 0.5095199
Based on 999 replicates
Simulated p-value: 0.003
Alternative hypothesis: greater
Std.Obs Expectation Variance
3.115074507 0.006679755 0.026056918
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.