Hi! I'd like to run localmoran() from spdep on a small grid (matrix). Is there a function to calculate the spatial weights (listw) from the grid (defining 3x3 neighborhoods)? (BTW: the definition of LISA in the spdep manual is unformatted) Thanks Agus