Skip to content
Prev 4954 / 29559 Next

Different Moran's I for same model residuals in different runs using moran.mc{spdep}

Thanks Roger for the reply and advice.

Rest assured I am taking my time with this. I have been spending the last week
looking at all the relevant examples, and running through the code given in the
helpfiles, as well as your spdep vignette. I am also using my own data as
examples to learn more about the different functions.

I realised my code for dnearneigh() is wrong! I used as.matrix instead of cbind
to create the matrix of long-lat coordinates!

That resulted in my weight lists object being inconsistent! I used cbind, and
different sessions returned the same Moran's I statistic (used lm.morantest on
your advice) on my same data and weights!

Thank goodness for the list! I am learning alot everyday!

Many thanks,
Xingli
(P.S. Thanks for the correlog{pgirmess} tip!)


Quoting Roger Bivand <Roger.Bivand at nhh.no>: