Skip to content

Error in moran.test()

2 messages · Wei Tu, Roger Bivand

#
On Tue, 28 Dec 2010, Wei Tu wrote:

            
Had it occurred to you to check length(resid(mod.lm)) and length(ga159w)? 
They are not equal. In addition, unless you check carefully that srm and 
ga159.shp are in the same order - you almost certainly have some counties 
represented by multiple polygons in the shapefile - your results would be 
at severe risk of being meaningless. Use the FIPS in the shapefile and the 
data file to match correctly.

Hope this helps,

Roger