LeeL | R Documentation |
Calculate bivariate Moran's I using Lee's L measurement.
LeeL(X, W)
X |
A matrix with observations as rows and features as columns. |
W |
A weight matrix across all observations, i.e inverse of a pairwise distance matrix. |
A spatial cross-correlation matrix.
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)
{ data.use <- quakes[1:100,] W <- 1/as.matrix(dist(data.use[,1:2])) diag(W) <- 0 L <- LeeL(data.use[,3:4], W) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.