q Nearest Neighbors Testqnn.test calculates statistics related to the q nearest neighbors method of
comparing case and control point patterns under the random labeling hypothesis.qnn.test(x, q = 5, nsim = 499, case = 2)ppp object from the spatstat package with marks for the case and control groups.q for which to do the q nearest neighbors test.data(grave)
qnn.test(grave, q = c(3, 5, 7, 9, 11, 13, 15))Run the code above in your browser using DataLab