Laurent Jégou
2011-Apr-19 09:34 UTC
[R] SPDEP Package, neighbours list for Moran's I on large grid dataset
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?... Nom : non disponible URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20110419/a3438017/attachment.pl>
Roger Bivand
2011-Apr-20 11:41 UTC
[R] SPDEP Package, neighbours list for Moran's I on large grid dataset
There is a recent thread on the R-sig-geo list that addresses your need, using a focal function in the raster package. The thread is at: https://stat.ethz.ch/pipermail/r-sig-geo/2011-April/011444.html That list may be a better place to post on this topic. Hope this helps, Roger Laurent J?gou wrote:> > Hello list members, i'd like to calculate the Moran I on a large dataset, > a > 8640x3432 grid of values. > > When i try to create the neighbours list with the cell2nb function, on > such > a scale, R works for several hours and seems to crash. I'm using the last > version (2.13), 64 bits, on a mac pro with 4go of memory. > > I think that i'm doing it wrong :-) > > I'd like to use a "moving window" weight matrix instead of a full scale > one, > but i was not lucky enough to find a solution in the docs. > > Thanks for any help, > > Laurent > > -- > Laurent J?gou > Cartographe et enseignant > UTM - D?pt. G?ographie > 31058 TOULOUSE Cedex 9 - 05.61.50.43.89 > http://www.univ-tlse2.fr/geoprdc > > [[alternative HTML version deleted]] > > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >----- Roger Bivand Economic Geography Section Department of Economics Norwegian School of Economics and Business Administration Helleveien 30 N-5045 Bergen, Norway -- View this message in context: http://r.789695.n4.nabble.com/SPDEP-Package-neighbours-list-for-Moran-s-I-on-large-grid-dataset-tp3460184p3462767.html Sent from the R help mailing list archive at Nabble.com.