Learn R Programming

ade4 (version 1.7-19)

mantel.rtest: Mantel test (correlation between two distance matrices (in R).)

Description

Performs a Mantel test between two distance matrices.

Usage

mantel.rtest(m1, m2, nrepet = 99, ...)

Value

an object of class rtest (randomization tests)

Arguments

m1

an object of class dist

m2

an object of class dist

nrepet

the number of permutations

...

further arguments passed to or from other methods

Author

Daniel Chessel
Stéphane Dray stephane.dray@univ-lyon1.fr

References

Mantel, N. (1967) The detection of disease clustering and a generalized regression approach. Cancer Research, 27, 209--220.

Examples

Run this code
    data(yanomama)
    gen <- quasieuclid(as.dist(yanomama$gen))
    geo <- quasieuclid(as.dist(yanomama$geo))
    plot(r1 <- mantel.rtest(geo,gen), main = "Mantel's test")
    r1

Run the code above in your browser using DataLab