Contiguity-Based Weights
Last updated
Last updated
Spatial weights represent the possible spatial interaction between observations in space. They are an essential element in the construction of spatial autocorrelation statistics and provide the means to create spatially explicit variables, such as spatially lagged variables and spatially smoothed rates. For more information, please read: https://geodacenter.github.io/workbook/4a_contig_weights/lab4a.html
Contiguity means that two spatial units share a common border of non-zero length. Operationally, we can further distinguish between a rook and a queen criterion of contiguity, in analogy to the moves allowed for the such-named pieces on a chess board.
The rook criterion defines neighbors by the existence of a common edge between two spatial units. The queen criterion is somewhat more encompassing and defines neighbors as spatial units sharing a common edge or a common vertex.
For more information, please read: https://geodacenter.github.io/workbook/4a_contig_weights/lab4a.html
Arguments
Return
Examples
Try it yourself in the playground (jsgeoda + deck.gl):
Input Arguments
Type
Description
mapUid
String
the unique map id
ord
Number
order of contiguity. Default is 1.
includeLowerOrder
Boolean
boolean value indicates whether or not the lower order neighbors should be included in the weights structure. Default is FALSE.
precisionThreshold
Number
(for polygons only) the distance of precision to determine which polygons are neighbors when the underlying geometries are insufficient to allow for an exact match of coordinates. Default is 0.0.
Value
Description
WeightsResult
the weights structure for each observation.