listw
Listw is a class in the R package spdep that represents a spatial weights list. It is a data structure used to encode the strength and pattern of spatial relationships among observations, typically derived from a defined neighborhood structure.
A listw object stores weights as a list, with one numeric vector per observation. Each vector contains
Listw objects are typically created from a neighbor list using functions such as nb2listw, or from a
In practice, listw objects interact with related structures in spdep, including nb (neighbor lists) and mat