Compute neighbourhood-based weights for areal (lattice) data
Source:R/utils.R
areal_neighbor_weights.RdCompute neighbourhood-based weights for areal (lattice) data
Arguments
- i0
Integer index of the target (unobserved / held-out) areal unit.
- adjacency
A square 0/1 (or weighted) adjacency matrix describing the neighbourhood structure of the areal units (e.g. a spatial contiguity matrix). Row/column
i0corresponds to the target unit.- decay
Numeric decay rate applied to graph distance (number of hops) from
i0; larger values down-weight distant neighbours more aggressively. Defaults to 1.