MEnvelope(X, r = NULL, NumberOfSimulations = 100, Alpha = 0.05, ReferenceType, NeighborType = ReferenceType, CaseControl = FALSE, SimulationType = "RandomLocation", Global = FALSE)
wmppp.object
) or a Dtable
object.
NULL
, a default value is set: 32 unequally spaced values are used up to half the maximum distance between points $d_m$. The first value is 0, first steps are small ($d_m/200$) then incresase progressively up to $d_m/20$.
TRUE
, the case-control version of M is computed. ReferenceType points are cases, NeighborType points are controls.
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.
Mhat
data(paracou16)
# Keep only 50% of points to run this example
X <- as.wmppp(rthin(paracou16, 0.5))
plot(X)
# Calculate confidence envelope (should be 1000 simulations, reduced to 4 to save time)
NumberOfSimulations <- 4
Alpha <- .10
plot(MEnvelope(X, , NumberOfSimulations, Alpha,
"V. Americana", "Q. Rosea", FALSE, "RandomLabeling"))
Run the code above in your browser using DataLab