Moran’s I in Netlogo

This is a demon­stra­tion of the use of Moran’s I as a measure of spatial clus­tering in a NetLogo model.

Moran’s I is the best estab­lished and most widely used sta­tistic of spatial auto­cor­re­la­tion. The I sta­tistic tests if subjects which are located closer together are more likely to have similar char­ac­ter­is­tics than those which are further apart.

I created the moransI module because I wanted to imple­ment a Moran’s I test in my Town-​​Based Accent Formation Model.

NetLogo is an agent-​​based modeling environment.

Running the Program

The moransI NetLogo code is viewable/​downloadable here. To run it, install a copy of NetLogo on your computer, run it and open the moransI-dec11.nlogo file.

Or you can just try the web applet here.

(Be warned, it’s java-​​based and may take a while to load, or complain if you don’t have java installed. It’s about a 2mb download. It also seems to have a few bugs.)

Documentation

The report I wrote about the moransI program for my envi­ron­mental space-​​time data analysis class is here. It includes infor­ma­tion about for­mu­la­tion and val­i­da­tion of the program. Basic doc­u­men­ta­tion is avail­able either in the “infor­ma­tion tab” of the module, or on the web applet page itself.