Skip to content
Prev 13523 / 29559 Next

Create distance 'neighborhood' (zone of indifference) when clustering binary data

On Sun, 27 Nov 2011, Alberto Gallano wrote:

            
Please do read the code. There is an aggregate method for nb objects in 
spdep, but no aggregate method for listw objects. Consequently, to 
aggregate them, I converted each to a sparse matrix format, added, and 
then converted back to listw format. My mistake was to think that trimming 
the >100m neighbours back to 0 would work - it didn't always do so. Again, 
read the code very carefully, this isn't about words, it's about the 
representation of objects in code.
No, no idea, your problem.

Roger