I have read the introductions on Moran of SPDEP package, but still unclear about the parameters of Moran's I, and can't calculate the Moran's I. For example,I have a dataset like the following(only an example): longitude latitude x 110.23 32.53 10 109.52 33.21 20 I want to use the moran(x, listw, n, S0, zero.policy=FALSE, NAOK=FALSE),and i can't make clear the meaning of the parameters listw and S0 because of my poor understanding on R, could anybody give me some programs to show how to calculate Moran's I? thanks in advance! -- Kind Regards