Skip to content
Prev 22427 / 29559 Next

Local Moran p-values in Geoda, Python, and R

On Wed, 11 Mar 2015, William May wrote:

            
If you would put the figures on a website, we could compare them. One 
possible reason for differences is the alternative= argument to 
localmoran(). It's default is "greater", but you could try "two.sided" to 
see whether this gives values closer to GeoDa. You don't say, by the way, 
which version of GeoDa you are using (since you mention Python, probably 
not legacy GeoDa), nor whether you can get the results out in tabular 
form. Are you using the same spatial weights - both can read and write GAL 
files. Are you aware that knearneigh() takes a longlat= argument, which 
must be used if the coordinates are not projected. The p-values in 
localmoran() are analytical ones from: Anselin, L. 1995. Local indicators 
of spatial association, Geographical Analysis, 27, 93--115. As you 
mention, in GeoDa they are by leave-one-out permutation bootstrapping.

Roger