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

Description Usage Arguments Value Author(s) References Examples

Description

Performs a Mantel test between two distance matrices.

Usage

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

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

Value

an object of class rtest (randomization tests)

Author(s)

Daniel Chessel
Stéphane Dray [email protected]

References

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

Examples

1
2
3
4
5
    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

Example output

Monte-Carlo test
Call: mantel.rtest(m1 = geo, m2 = gen)

Observation: 0.5095199 

Based on 99 replicates
Simulated p-value: 0.01 
Alternative hypothesis: greater 

    Std.Obs Expectation    Variance 
 3.26305981 -0.01220671  0.02556442 

ade4 documentation built on April 5, 2018, 5:03 p.m.

Related to mantel.rtest in ade4...