kd.env determines envelopes for the difference in estimated K functions for a set of cases and controls. By default, produces the min/max envelopes. Additional confidence envelopes can be obtained using the confint function.kd.env(x, case = 2, nsim = 99, 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.fv object. See documentation for envelope function in spatstat package. Can be plotted using plot.envelope. Additionall see plot.fv.Kest, eval.fv, and envelope.fv functions from the spatstat package. 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)
env = kd.env(grave, nsim = 19)
plot(env, legend = FALSE, main = "")Run the code above in your browser using DataLab