November 2018
Beginner to intermediate
354 pages
6h 59m
English
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 necessarylocation3 = read.csv("F:/Hands-on-Geospatial-Analysis-Using-R-and-QGIS/Chapter06/Data/ppp3.csv")ppp_object3 = ppp(location3$lon, location3$lat, c(min(location3$lon), max(location3$lon)), c(min(location3$lat), max(location3$lat)))quadrat.test(ppp_object3)
This gives the following output:
As p-value is much lower than 0.01, we can reject the ...
Read now
Unlock full access