Emark(X, r=NULL,
correction=c("isotropic", "Ripley", "translate"),
method="density", ..., normalise=FALSE)
Vmark(X, r=NULL,
correction=c("isotropic", "Ripley", "translate"),
method="density", ..., normalise=FALSE)
"ppp"
or something acceptable to
as.ppp
. The pattern should have numeric marks."isotropic"
, "Ripley"
or "translate"
.
It specifies the edge correction(s) to be applied."density"
,
"loess"
,
"sm"
and "smrep"
.TRUE
, normalise the estimate of $E(r)$ or $V(r)$
so that it would have value equal to 1 if the marks are independent
of the points."fv"
(see fv.object
).
Essentially a data frame containing numeric columns"iso"
and/or "trans"
,
according to the selected edge corrections. These columns contain
estimates of the function $E(r)$ or $V(r)$
obtained by the edge corrections named.More formally, $$E(r) = E_{0u}[M(0)]$$ and $$V(r) = E_{0u}[(M(0)-E(u))^2]$$ where $E_{0u}$ denotes the conditional expectation given that there are points of the process at the locations $0$ and $u$ separated by a distance $r$, and where $M(0)$ denotes the mark attached to the point $0$.
These functions may serve as diagnostics for dependence between the points and the marks. If the points and marks are independent, then $E(r)$ and $V(r)$ should be constant (not depending on $r$). See Schlather et al (2004).
The argument X
must be a point pattern (object of class
"ppp"
) or any data that are acceptable to as.ppp
.
It must be a marked point pattern with numeric marks.
The argument r
is the vector of values for the
distance $r$ at which $k_f(r)$ is estimated.
This algorithm assumes that X
can be treated
as a realisation of a stationary (spatially homogeneous)
random spatial point process in the plane, observed through
a bounded window.
The window (which is specified in X
as X$window
)
may have arbitrary shape.
Biases due to edge effects are
treated in the same manner as in Kest
.
The edge corrections implemented here are
[object Object],[object Object]
Note that the estimator assumes the process is stationary (spatially
homogeneous).
The numerator and denominator of the mark correlation function (in the expression above) are estimated using density estimation techniques. The user can choose between [object Object],[object Object],[object Object],[object Object]
markcorr
,
mark variogram markvario
for numeric marks.
Mark connection function markconnect
and
multitype K-functions Kcross
, Kdot
for factor-valued marks.data(spruces)
plot(Emark(spruces))
E <- Emark(spruces, method="density", kernel="epanechnikov")
plot(Vmark(spruces))
Run the code above in your browser using DataLab