moran | R Documentation |
Functions to calculate Moran's I and Geary's c statistics.
moran(x,d1,d2,...)
geary(x,d1,d2,...)
x |
a raster object ( |
d1 |
lower bound local distance, or an object of class neighbours created by dneigh when x is SpatialPoints or SpatialPolygons |
d2 |
upper bound local distance |
... |
additional arguments including |
moran and geary are two functions to measure global spatial autocorrelation within the range of distance specified through d1 and d2. It returns a single numeric value than can show the degree of spatial autocorrelation in the whole dataset.
A numeric value.
Babak Naimi naimi.b@gmail.com
Naimi, B., Hamm, N. A., Groen, T. A., Skidmore, A. K., Toxopeus, A. G., & Alibakhshi, S. (2019). ELSA: Entropy-based local indicator of spatial association. Spatial statistics, 29, 66-88.
file <- system.file('external/dem_example.grd',package='elsa')
r <- raster(file)
moran(r, d1=0, d2=2000)
geary(r, d1=0, d2=2000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.