Kdhat(X, r = NULL, ReferenceType, NeighborType = ReferenceType, Weighted = FALSE,
Original = TRUE, Approximate = ifelse(X$n < 10000, 0, 1), CheckArguments = TRUE)
wmppp.object
).NULL
, a default value is set: 512 equally spaced values are used, from the smallest to the median distance between points (following Duranton and Overman, 2005).NeighborType
is ignored then) to estimate the average value of simulated Kd values under the null hypothesis of RandomLocation (Marcon TRUE
, estimates the Kemp function.TRUE
(by default), the original bandwidth selection by Duranton and Overman (2005) following Silverman (1986: 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
, the function arguments are verified. Should be set to FALSE
to save time in simulations for example, when the arguments have been checked elsewhere.r
are those of the density
function). The kernel estimator is Gaussian.
The weighted Kd function has been named Kemp (emp is for employees) by Duranton and Overman (2005).KdEnvelope
, Mhat
data(paracou16)
plot(paracou16)
# Calculate Kd
(Paracou <- Kdhat(paracou16, , "Q. Rosea", "V. Americana"))
# Plot
plot(Paracou)
Run the code above in your browser using DataLab