Description Usage Arguments Details Value Author(s) References See Also Examples
Compute Moran's I or Geary's C measures of global spatial autocorrelation in a RasterLayer, or compute the the local Moran or Geary index (Anselin, 1995).
1 2 3 4 |
x |
RasterLayer |
w |
Spatial weights defined by or a rectangular matrix with odd length (3, 5, ...) sides (as in |
The default setting uses a 3x3 neighborhood to compute "Queen's case" indices. You can use a filter (weights matrix) to do other things, such as "Rook's case", or different lags.
A single value (Moran's I or Geary's C) or a RasterLayer (Local Moran or Geary values)
Robert J. Hijmans and Babak Naimi
Moran, P.A.P., 1950. Notes on continuous stochastic phenomena. Biometrika 37:17-23
Geary, R.C., 1954. The contiguity ratio and statistical mapping. The Incorporated Statistician 5: 115-145
Anselin, L., 1995. Local indicators of spatial association-LISA. Geographical Analysis 27:93-115
https://en.wikipedia.org/wiki/Indicators_of_spatial_association
The spdep package for additional and more general approaches for computing indices of spatial autocorrelation
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Loading required package: sp
[1] 0.8353565
[1] 0.8929367
[1] 0.04739631
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.