I need to test for spatial autocorrelation in my data. In R, I used the Moran.I function from the ape package, and the moran.test function from the spdep package, but got strickingly different results. I think this may be due do the weights employed to calculate Moran's I: While in ape your weights are given by your distance matrix, in spdep you must specify spatial weights from a neighbors (nb) object, choosing a given style (binary, standardised, ect). Could anyone please clarify this and perhaps suggest which package is best?

More Rodolfo Jaffé's questions See All
Similar questions and discussions