powered by
Generates a neighborhood list as required by prabinit from a matrix of geographical distances.
prabinit
geo2neighbor(geodist,cut=0.1*max(geodist))
A list of integer vectors, giving the set of neighbors for every region.
dist-object or symmetric non-negative matrix. Geographical distances between regions.
dist
non-negative numerical. All pairs of regions with distance<=cut are treated as neighbors.
distance<=cut
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
data(waterdist) geo2neighbor(waterdist)
Run the code above in your browser using DataLab