moran.bounds: Function to compute extreme values of Moran's I

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/moran.bounds.R

Description

This function computes the upper and lower bounds of Moran's I for a given spatial weighting matrix (stored in a listw object). These values are obtained by the eigendecomposition of the spatial weighting matrix.

Usage

1
moran.bounds(listw)

Arguments

listw

an object of class listw

Value

A vector containing the maximum and minimum of Moran's I for a given spatial weighting matrix value returned

Author(s)

Stéphane Dray [email protected]

References

de Jong, P., Sprenger, C., & van Veen, F. (1984). On extreme values of Moran’s I and Geary's C. Geographical Analysis, 16(1), 17–24.

See Also

mem nb2listw

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
if(require("ade4", quietly = TRUE)){
 if(require("spdep", quietly = TRUE)){
     data(oribatid)
     nbtri <- tri2nb(as.matrix(oribatid$xy))
     lwB <- nb2listw(nbtri, style = "B")
     lwW <- nb2listw(nbtri, style = "W")
     scB <- mem(lwB)
     scW <- mem(lwW)
     moran.bounds(lwB)
     moran.mc(scB[,1], lwB, 9)
     moran.mc(scB[,69], lwB, 9)
     moran.bounds(lwW)
     moran.mc(scW[,1], lwW, 9)
     moran.mc(scW[,69], lwW, 9)
 }
}

adespatial documentation built on May 23, 2018, 5:04 p.m.