TransWikia.com

Calculating Moran's I on large point dataframe in R

Geographic Information Systems Asked on December 14, 2020

I have a dataset of about 77,000 points of which I want to test autocorrelation. I have tried to compute the test statistic using the testSpatialAutocorrelation tool in the DHARMa package, which uses “a simulation-based approach to create readily interpretable scaled (quantile) residuals for fitted (generalized) linear mixed models.” However when I try to run the test, I run into a memory error. What is a way to easily calculate Moran’s I for a large dataset?

One Answer

I had this same problem. I created an R package that calculates the distance matrix on the fly, so it takes much less memory to calculate Moran's I. Its also quite fast. You can find it at github.com/mcooper/moranfast.

Correct answer by Amadou Kone on December 14, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP