Calculate spatial cross-correlation matrix.
SpatialXCorr(X, W, method = c("M", "L"))
A matrix with observations as rows and features as columns.
A weight matrix across all observations, i.e inverse of a pairwise distance matrix.
Method used to calculate spatial cross-correlation.
M, using the Wartenburg's M (Default).
L, using the Lee's L.
A spatial cross-correlation matrix.
Wartenberg, D. Multivariate spatial correlation: A method for exploratory geographical analysis. Geogr. Anal. 17, 263–283 (1985)
Lee, S.-I. Developing a bivariate spatial association measure: An integration of Pearson’s r and Moran's I. J. Geogr. Syst. 3, 369–385 (2001)