Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

multispati.rtest

Multivariate spatial autocorrelation test


Description

This function performs a multivariate autocorrelation test.

Usage

multispati.rtest(dudi, listw, nrepet = 99, ...)

Arguments

dudi

an object of class dudi for the duality diagram analysis

listw

an object of class listw for the spatial dependence of data observations

nrepet

the number of permutations

...

further arguments passed to or from other methods

Details

We note X the data frame with the variables, Q the column weight matrix and D the row weight matrix associated to the duality diagram dudi. We note L the neighbouring weights matrix associated to listw. This function performs a Monte-Carlo Test on the multivariate spatial autocorrelation index :

r = t(X)DLXQ / t(X)DXQ

Value

Returns an object of class randtest (randomization tests).

Author(s)

Daniel Chessel
Sébastien Ollier sebastien.ollier@u-psud.fr

References

Smouse, P. E. and Peakall, R. (1999) Spatial autocorrelation analysis of individual multiallele and multilocus genetic structure. Heredity, 82, 561–573.

See Also

Examples

if (requireNamespace("spdep", quietly = TRUE)) {
    data(mafragh)
    maf.listw <- spdep::nb2listw(neig2nb(mafragh$neig))
    maf.pca <- dudi.pca(mafragh$env, scannf = FALSE)
    multispati.rtest(maf.pca, maf.listw)
    maf.pca.ms <- multispati(maf.pca, maf.listw, scannf = FALSE)
    plot(maf.pca.ms)
}

ade4

Analysis of Ecological Data: Exploratory and Euclidean Methods in Environmental Sciences

v1.7-16
GPL (>= 2)
Authors
Stéphane Dray <stephane.dray@univ-lyon1.fr>, Anne-Béatrice Dufour <anne-beatrice.dufour@univ-lyon1.fr>, and Jean Thioulouse <jean.thioulouse@univ-lyon1.fr>, with contributions from Thibaut Jombart, Sandrine Pavoine, Jean R. Lobry, Sébastien Ollier, Daniel Borcard, Pierre Legendre, Stéphanie Bougeard and Aurélie Siberchicot. Based on earlier work by Daniel Chessel.
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.