Skip to content
Prev 9052 / 29559 Next

Choosing the right nb2listw-style

Dear Roger, dear Community,

thanks for the detailed answer to my question(s)! It helped a lot, but on the other hand cause some more uncertainties for me.

Why do some functions for the Moran's I test require detailed knoledge of creating neighbours and weighting them like the moran.test() function while others do not like the Moran.I() function? The moran.test() function from the spdep package requires a listw object, where you have to create a weighted neighbourhood matrix with all the preliminary considerations, while the Moran.I() function sipmly works with a ad hoc created distance matrix (e.g. done with the dist() function) as it was done here: http://www.ats.ucla.edu/stat/r/faq/morans_i.htm (even though Moran.I expects "a matrix of weights" looking closer to the help files for the function). Can the distances itself be considered as weights? The method with the Moran.I() function seems much simpler and requires a lot less knoledge and preliminary considerations ...

Thanks for help in this difficult field!
Regards,

Nils