Hi all, I have a grid of points at regular intervals (taken from a raster). I want to create a listw matrix which opperates like this 1 1 1 1 1 1 1 1 1 and also like this 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 and so on I want it to work with localG from package spdep: localG(x, listw, zero.policy=NULL, spChk=NULL) Any help is much appreciated. Thanks Gary -- View this message in context: http://r.789695.n4.nabble.com/Lattice-nb-wlist-help-tp3253962p3253962.html Sent from the R help mailing list archive at Nabble.com.
hi I am still tryingto do this, I have been working on this for a year but i have remained stuck... I have points at regular intervals but within an irregular window I need to make a nb weights matrix, then nb2wlist conceptually a D8 neighbourhood something like this: 0000000 0000000 0011100 0011100 0011100 0000000 0000000 but I also want another matrix like this (D24): 0000000 0111110 0111110 0111110 0111110 0111110 0000000 and so on... If anyone can help I would be very grateful Gary -- View this message in context: http://r.789695.n4.nabble.com/Lattice-nb-wlist-help-tp3253962p3477619.html Sent from the R help mailing list archive at Nabble.com.