Skip to content
Prev 15577 / 29559 Next

How to handle NA-values in raster-based Geary´s C test?

On Thu, 12 Jul 2012, Kerstin Traut wrote:

            
Yes, that will give consistent results when the listw object contains 
general weights. The same would apply to moran.test() with a listw object 
with general weights, I would have thought based on the code of 
subset.listw(), so I suggest not using na.pass in the moran.test() call, 
and doing the same reconstruction before calling the tests. I'd be 
interested in seeing an example of data (value, nb.idw, 
coordinates(subset)),  that run successfully through moran.test() because 
it should also fail on general weights.

Roger