Skip to content
Prev 27717 / 29559 Next

poly2nb neighbour itself should be considered a neighbour

On Mon, 4 Nov 2019, Robert R wrote:

            
I think you are looking for spdep::include.self(), originally written to 
include self-neighbours in nb objects for the local Getis-Ord G_i^* 
measure. Powering the matrix will also give self-neighbours as a 
by-product for observations with neighbours, but not only ones on the 
principal diagonal.

Roger