Skip to content
Prev 7312 / 29559 Next

Spatial correlogram - Problems with creating neigbourhood list and weights

On Tue, 5 Jan 2010, Strubbe Diederik wrote:

            
You have chosen a k=1 first nearest neighbour scheme, was this intended?
Note that Moran's I for this symmetrized first nearest neighbour scheme is 
not significant.
This is most likely a result of your choice of symmtrized first nearest 
neighbours, leading to many graph components and/or the unrealistically 
high order=:

library(spdep)
data(columbus)
nbk1 <- knn2nb(knearneigh(cbind(columbus$X, columbus$Y)))
snbk1 <- make.sym.nb(nbk1)
n.comp.nb(snbk1)$nc
plot(snbk1, cbind(columbus$X, columbus$Y))
moran.test(columbus$CRIME, nb2listw(snbk1))
sp.correlogram(snbk1, columbus$CRIME, order=6, method="I",
  zero.policy=TRUE)
sp.correlogram(snbk1, columbus$CRIME, order=7, method="I",
  zero.policy=TRUE)

Try reducing order= to something realistic, but also consider a denser, 
more connected, representation of neighbours.

Hope this helps,

Roger