KmmEnvelope(X, r = NULL, NumberOfSimulations = 100, Alpha = 0.05, ReferenceType = "", Global = FALSE)
wmppp.object
).
NULL
, a sensible default value is chosen (512 intervals, from 0 to half the diameter of the window) following spatstat
.
TRUE
, a global envelope sensu Duranton and Overman (2005) is calculated.
envelope
). There are methods for print and plot for this class.The fv
contains the observed value of the function, its average simulated value and the confidence envelope.
Kmmhat
data(paracou16)
# Keep only 20% of points to run this example
X <- as.wmppp(rthin(paracou16, 0.2))
plot(X)
# Calculate confidence envelope (should be 1000 simulations, reduced to 4 to save time)
r <- seq(0, 30, 2)
NumberOfSimulations <- 4
Alpha <- .10
plot(KmmEnvelope(X, r, NumberOfSimulations, Alpha), ./(pi*r^2) ~ r)
Run the code above in your browser using DataLab