raw_cg_moran {spatialwarnings} | R Documentation |
Moran's Index at lag of 1
Description
This functions computes the Moran's spatial correlation index (with lag one) on a matrix.
Usage
raw_cg_moran(mat, subsize = 1)
Arguments
mat |
A matrix |
subsize |
logical. Dimension of the submatrix used to coarse-grain the original matrix (set to 1 for no coarse-graining). |
Value
The Moran's I index measuring autocorrelation at lag 1 as a named vector
References
Dakos, V., van Nes, E. H., Donangelo, R., Fort, H., & Scheffer, M. (2010). Spatial correlation as leading indicator of catastrophic shifts. Theoretical Ecology, 3(3), 163-174.
Legendre, P., & Legendre, L. F. J. (2012). Numerical Ecology. Elsevier Science.
See Also
Examples
## Not run:
data(serengeti)
raw_cg_moran(serengeti[[1]], subsize = 1)
## End(Not run)
[Package spatialwarnings version 3.0.3 Index]