IB {WaveSampling} | R Documentation |
Spreading measure based on Moran's
index
Description
This function implements the spreading measure based on Moran's index.
Usage
IB(W, s)
Arguments
W |
a stratification matrix inheriting from |
s |
a vector of size |
Details
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 index. Each row of the matrix
should represents a stratum. Each
stratum is defined by a particular unit and its neighbouring units. See
wpik
.
The spatial balance measure is equal to
where is the diagonal matrix containing the
,
and
To specify the spatial weights uses the argument W
.
Value
A numeric value that represents the spatial balance. It could be any real value between -1 (spread) and 1 (clustered).
Author(s)
Raphaël Jauslin raphael.jauslin@unine.ch
References
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.
See Also
Examples
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)