KdEnvelope(X, r = NULL, NumberOfSimulations = 100, Alpha = 0.05, ReferenceType,
NeighborType = ReferenceType, Weighted = FALSE, Original = TRUE,
Approximate = ifelse(X$n < 10000, 0, 1),
SimulationType = "RandomLocation", Global = FALSE)
wmppp.object
).NULL
, a default value is set: 512 equally spaced values are used, and the first 256 are returned, corresponding to half the maximum distance between points (following Duranton and Overman, 2005).TRUE
, estimates the Kemp function.TRUE
(by default), the original bandwidth selection by Duranton and Overman (2005) following Silverman (2006: eq 3.31) is used. If FALSE
, it is calculated following Sheather and Jones (1991), i.e. the state oApproximate
single values equally spaced between 0 and the largest distance. This technique (Scholl and Brenner, 2013) allows saving a lot of memTRUE
, 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 enveloppe.Kdhat
data(paracou16)
plot(paracou16[paracou16$marks$PointType=="Q. Rosea"])
# Calculate confidence envelope
plot(KdEnvelope(paracou16, , ReferenceType="Q. Rosea", Global=TRUE))
# Center of the confidence interval
Kdhat(paracou16, ReferenceType="") -> kd
lines(kd$Kd ~ kd$r, lty=3, col="green")
Run the code above in your browser using DataLab