powered by
Calculate bivariate Moran's I using Wartenberg's method.
WartenbergM(X, W)
A matrix with observations as rows and features as columns.
A weight matrix across all observations, i.e inverse of a pairwise distance matrix.
A spatial cross-correlation matrix.
Wartenberg, D. Multivariate spatial correlation: A method for exploratory geographical analysis. Geogr. Anal. 17, 263<U+2013>283 (1985)
# NOT RUN { { data.use <- quakes[1:100,] W <- 1/as.matrix(dist(data.use[,1:2])) diag(W) <- 0 M <- WartenbergM(data.use[,3:4], W) } # }
Run the code above in your browser using DataLab