Skip to content
Prev 169762 / 398506 Next

Help on computing Geary's C statistic to test for Spatial Autocorrelation

R User <ruser180 <at> gmail.com> writes:
You sent this message to me off-list, as well as to this list, not R-sig-geo. 
Using a general list for specific questions is not a good idea, and asking on 
the list after expecting the package maintainer to get up in the middle of 
his/her sleep just to answer your question isn't either.

If you read the ?geary.test, you would see that you require a single variable,
so analyse each of your columns in turn. You have a weights matrix, but 
geary.test() needs a listw object, so use mat2listw() to construct it.

RSiteSearch() on Geary test takes you directly to the function you need, but
for listw matrix the hits are a bit more diffuse.

Roger Bivand