Computes the spatial correlation coefficient (Moran's I) of a vector given a distance matrix, and a distance threshold used to define "neighborhood".
moran( x = NULL, distance.matrix = NULL, distance.threshold = NULL, verbose = TRUE )
Numeric vector, generally model residuals, Default:
Distance matrix among cases in
numeric value in the range of values available in
A list with three named slots:
test: Data frame with observed and expected Moran's I values, p-value, and interpretation.
plot: Moran's plot of the vector x against the spatial lags of x.
plot.df: Data used in the Moran's plot.
Inspired in the
Moran.I() function of the ape package.