spatialcor.tests {povmap} | R Documentation |
Spatial Autocorrelation Tests
Description
This function computes two spatial autocorrelation tests: Moran's I and Geary's C.
Usage
spatialcor.tests(direct, corMatrix)
Arguments
direct |
a vector containing direct estimates. The elements of
|
corMatrix |
matrix or data frame with dimensions number of areas times
number of areas containing the row-standardized proximities between the
domains. Values must lie between |
Details
When creating the proximity matrix corMatrix
, please make
sure that the elements of direct
and corMatrix
are sorted
equally and that direct
and corMatrix
do not contain any
NA
s. For a description of how to create the proximity matrix,
see the package vignette "A Framework for Producing Small Area Estimates
Based on Area-Level Models in R". If direct estimates do not exist for every
area contained in the proximity matrix, the proximity matrix needs to be
subsetted to the areas contained in the direct vector.
Value
The values of the test statistics and their corresponding p values.
References
Bivand, R. (2019), spdep: Spatial Dependence: Weighting Schemes, Statistics. R package.
Examples
# Loading data - sample data and proximity matrix
data("eusilcA_smpAgg")
data("eusilcA_prox")
# Compute spatial correlation tests
spatialcor.tests(
direct = eusilcA_smpAgg$Mean,
corMatrix = eusilcA_prox
)