Skip to content
Prev 28791 / 29559 Next

question on raster Moran's I statistical significance

Thanks a lot.
I will try spdep::n.comp.nb()  and read the link you suggested to me
on "Proximity and aerial data" which seems very interesting.
Maybe could it be due to the fact that the data layer of the city is
traversed by a river, which I set to na since it was not relevant for the
analysis, thus maybe from there the message "reginos with no links"?
However when I do :
Neighbour list object:
Number of regions: 636410
Number of nonzero links: 5060866
Percentage nonzero weights: 0.001249542
Average number of links: 7.95221
8 regions with no links:
103556 104030 104502 104970 170752 290616 291628 520687

Then, even with regions with no links, I have no error when setting
zero.policy = TRUE in nb2listw()
and then I can run moran.test() which gives some results :
Moran I test under randomisation

data:  l$dta
weights: lw.l  n reduced by no-neighbour observations


Moran I statistic standard deviate = 1559.1, p-value <
2.2e-16
alternative hypothesis: greater
sample estimates:
Moran I statistic       Expectation          Variance
     9.815120e-01     -1.571336e-06      3.963186e-07

Why could it be running apparently ok in this way ?

Thanks a lot again for your help and guidance.
Kind regards,
Gabriel Cotlier
On Mon, Oct 25, 2021 at 2:12 PM Roger Bivand <Roger.Bivand at nhh.no> wrote: