
This function implements the spreading measure based on Moran's
IB(W, s)
A numeric value that represents the spatial balance. It could be any real value between -1 (spread) and 1 (clustered).
a stratification matrix inheriting from sparseMatrix
that represents the spatial weights. See wpik
.
a vector of size
This index is developped by Tillé et al. (2018) and measure the spreading of a sample drawn from a population.
It uses a corrected version of the traditional Moran's wpik
.
The spatial balance measure is equal to
where
and
To specify the spatial weights uses the argument W
.
Tillé, Y., Dickson, M.M., Espa, G., and Guiliani, D. (2018). Measuring the spatial balance of a sample: A new measure based on Moran's I index. Spatial Statistics, 23, 182-192.
wpik
N <- 36
n <- 12
x <- seq(1,sqrt(N),1)
X <- expand.grid(x,x)
pik <- rep(n/N,N)
W <- wpik(as.matrix(X),pik,bound = 1,tore = TRUE,shift = FALSE,toreBound = sqrt(N))
W <- W - diag(diag(W))
s <- wave(as.matrix(X),pik,tore = TRUE,shift = TRUE,comment = TRUE)
IB(W,s)
Run the code above in your browser using DataLab