powered by
This function computes the Moran's I index of spatial correlation at lag 1.
raw_moran(mat)
A matrix
The Moran's I numeric value as a numeric number.
This function returns the spatial correlation as measured by the Moran's I index. If the variance of the matrix is zero, then NaN is returned.
NaN
indicator_moran, generic_sews
indicator_moran
generic_sews
# NOT RUN { # Spatial correlation of white noise is close to zero rmat <- matrix(runif(1000) > .5, ncol = 100) raw_moran(rmat) # }
Run the code above in your browser using DataLab