raw_cg_moran: Moran's Index at lag of 1

View source: R/task_generic_indic.R

raw_cg_moranR 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

generic_sews

Examples


## Not run: 
data(serengeti)
raw_cg_moran(serengeti[[1]], subsize = 1)

## End(Not run)


spatialwarnings documentation built on March 21, 2022, 5:08 p.m.