Learn R Programming

spots (version 0.1.0)

LeeL: Bivariate Moran's I using Lee's L measurement

Description

Calculate bivariate Moran's I using Lee's L measurement.

Usage

LeeL(X, W)

Arguments

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.

Value

A spatial cross-correlation matrix.

References

Lee, S.-I. Developing a bivariate spatial association measure: An integration of Pearson<U+2019>s r and Moran's I. J. Geogr. Syst. 3, 369<U+2013>385 (2001)

Examples

Run this code
# NOT RUN {
{
data.use <- quakes[1:100,]
W <- 1/as.matrix(dist(data.use[,1:2]))
diag(W) <- 0
L <- LeeL(data.use[,3:4], W)
}
# }

Run the code above in your browser using DataLab