Last chance! 50% off unlimited learning
Sale ends in
Computes the Clark and Evans aggregation index
clarkevans(X, correction=c("none", "Donnelly", "cdf"),
clipregion=NULL)
A spatial point pattern (object of class "ppp"
).
Character vector. The type of edge correction(s) to be applied.
Clipping region for the guard area correction.
A window (object of class "owin"
).
See Details.
A numeric value, or a numeric vector with named components
The Clark and Evans (1954) aggregation index
Without correction for edge effects, the value of R
will be
positively biased. Edge effects arise because, for a point of X
close to the edge of the window, the true nearest neighbour may
actually lie outside the window. Hence observed nearest neighbour
distances tend to be larger than the true nearest neighbour distances.
The argument correction
specifies an edge correction
or several edge corrections to be applied. It is a character vector
containing one or more of the options
"none"
, "Donnelly"
, "guard"
and "cdf"
(which are recognised by partial matching).
These edge corrections are:
No edge correction is applied.
Edge correction of Donnelly (1978), available for rectangular
windows only.
The theoretical expected value of mean nearest neighbour distance
under a Poisson process is adjusted for edge effects by the
edge correction of Donnelly (1978). The value of
Guard region or buffer area method.
The observed mean nearest neighbour distance
for the point pattern X
is re-defined by averaging only over those points of X
that fall inside the sub-window clipregion
.
Cumulative Distribution Function method.
The nearest neighbour distance distribution function Gest
using the Kaplan-Meier type edge correction. Then the mean of the
distribution is calculated from the cdf.
Alternatively correction="all"
selects all options.
If the argument clipregion
is given, then the selected
edge corrections will be assumed to include correction="guard"
.
To perform a test based on the Clark-Evans index,
see clarkevans.test
.
Clark, P.J. and Evans, F.C. (1954) Distance to nearest neighbour as a measure of spatial relationships in populations Ecology 35, 445--453.
Donnelly, K. (1978) Simulations to determine the variance and edge-effect of total nearest neighbour distance. In I. Hodder (ed.) Simulation studies in archaeology, Cambridge/New York: Cambridge University Press, pp 91--95.
# NOT RUN {
# Example of a clustered pattern
clarkevans(redwood)
# Example of an ordered pattern
clarkevans(cells)
# Random pattern
X <- rpoispp(100)
clarkevans(X)
# How to specify a clipping region
clip1 <- owin(c(0.1,0.9),c(0.1,0.9))
clip2 <- erosion(Window(cells), 0.1)
clarkevans(cells, clipregion=clip1)
clarkevans(cells, clipregion=clip2)
# }
Run the code above in your browser using DataLab