Skip to content
Prev 23195 / 29559 Next

question about nb2listw row standardization

On Tue, 4 Aug 2015, Mueller,Drew wrote:

            
Please do check:

library(spdep)
example(columbus)
coords <- coordinates(columbus)
dlist <- nbdists(col.gal.nb, coords)
dlist <- lapply(dlist, function(x) 1/x)
Wa <- nb2listw(col.gal.nb, glist = dlist, style = "W")
Wb <- nb2listw(col.gal.nb, glist = dlist, style = "B")
summary(sapply(Wa$weights, sum))
summary(sapply(Wb$weights, sum))

"W" row standardises the general weights, "B" passes through general 
weights. IDW are perverse, and without - contrary to your assertion - 
economic meaning, because the scaling depends closely on the metric of 
the coordinates:

summary(unlist(dlist))

are all < 1.

Roger