One of the point pattern processes is called Complete Spatial Randomness (CSR), which means that the probability of finding events at any point is the same everywhere. There are a couple of methods for testing this, which we'll be discussing next.
Analysis of point patterns
Quadrat test
In this test, the window is divided into parts and the number of points in each part is computed. If the process is CSR, these numbers in subregions come from a Poisson distribution. Then, using a chi-square test, we can test for CSR.
We'll work with ppp3.csv, in this case, and use the quadrat.test() function from the spstat package to conduct the quadrat test:
# update address as necessary
location3 = read.csv("F:/Hands-on-Geospatial...