Skip to content
Prev 28709 / 29559 Next

use nbcosts() with geographic openstreetmap distance as weights

On Wed, 4 Aug 2021, Germ?n Gallego via R-sig-Geo wrote:

            
No, this is not a sensible way of using this approach. The data.frame 
should contain observations for the spatial objects on variables relevant 
for the regionalization being undertaken, not a distance matrix. These 
variables might be demographic, socio-economic, or others relevant to the 
regionalization. It is the "distance" in variable, not geographic, space 
that is used to weight the edges of the graph, so that less similar edges 
are dropped and more similar edges retained. The geographical distances 
between observations are implicit in the neighbour graph - see 
https://keen-swartz-3146c4.netlify.app/area.html#higher-order-neighbours 
for a discussion. Run example(skater) to see that four variables are used 
in the dpad data.frame.

Hope this clarifies,

Roger