Skip to content

R-sig-Geo Digest, Vol 243, Issue 3

1 message · Donegan, Connor

#
Thanks for the request for feedback on this change.

I share Josiah's view that "In the case of an isolated node, I think the best thing to do is to return NA rather than 0. For example consider administrative boundaries where the lagged variable is median household income. If we returned a 0 in that case, we'd likely be introducing quite the outlier!"  Currently geostan's Moran scatter plot uses NA, so observations with no neighbors are neutral, i.e., they are dropped when calculating Moran's I or creating a Moran scatter plot. It also shows a kind of confusing error message about how this impacts a row-standardized spatial weights matrix---if you just drop one or more observations, the weights are no longer row-standardized relative to the values included in the calculation.

Also, "creating nb neighbour objects should themselves report that an output object (graph) is not connected"---that's a good suggestion.

Thanks,

Connor