kdest determines the difference in estimated K functions for a set of cases and controls.kdest(x, case = 2, nsim = 0, level = 0.95, r = NULL, breaks = NULL,
correction = c("border", "isotropic", "Ripley", "translate"),
nlarge = 3000, domain = NULL, var.approx = FALSE, ratio = FALSE)ppp object from the spatstat package with marks for the case and control groups.nsim data sets generated under the random labeling hypothesis.nsim is 0.fv object. See documentation for Kest function in spatstat package.Kest and eval.fv functions from the spatstat package. So the arguments are essentially the same as the Kest function. See the documentation of the Kdest for more details about the various arguments.data(grave)
kd1 = kdest(grave)
plot(kd1, iso ~ r, ylab = "difference", legend = FALSE, main = "")
kd2 = kdest(grave, nsim = 9, level = 0.8)
plot(kd2)Run the code above in your browser using DataLab