Performs the Clark-Evans test of aggregation for a spatial point pattern.
clarkevans.test(X, ...,
correction,
clipregion=NULL,
alternative=c("two.sided", "less", "greater",
"clustered", "regular"),
method=c("asymptotic", "MonteCarlo"),
nsim=999)
An object of class "htest"
representing the result of the test.
A spatial point pattern (object of class "ppp"
).
Ignored.
Character string.
The type of edge correction to be applied.
See clarkevans
and Details below.
Clipping region for the guard area correction.
A window (object of class "owin"
).
See clarkevans
String indicating the type of alternative for the hypothesis test. Partially matched.
Character string (partially matched) specifying how to calculate
the
Number of Monte Carlo simulations to perform, if a Monte Carlo
Adrian Baddeley Adrian.Baddeley@curtin.edu.au
This command uses the Clark and Evans (1954) aggregation index
The Clark-Evans aggregation index clarkevans
.
This command clarkevans.text
performs a hypothesis test of clustering or ordering of
the point pattern X
based on the Clark-Evans index alternative
:
alternative="less"
or alternative="clustered"
:
the alternative hypothesis
is that
alternative="greater"
or alternative="regular"
:
the alternative hypothesis
is that
alternative="two.sided"
:
the alternative hypothesis is that
The Clark-Evans index X
using the edge correction determined by
the arguments correction
and clipregion
. These arguments
are documented in the help file for clarkevans
.
If method="asymptotic"
(the default),
the correction="Donnelly"
if the window of X
is a rectangle,
and correction="cdf"
otherwise. It is strongly recommended
to avoid using correction="none"
which would lead to a severely
biased test.
If method="MonteCarlo"
, the nsim
simulated realisations of
Complete Spatial Randomness conditional on the
observed number of points. This test is theoretically exact
for any choice of edge correction, but may have lower power
than the asymptotic test.
For this Monte Carlo test, the default edge correction
is correction="none"
for computational efficiency.
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 Simulation methods in archaeology, Cambridge University Press, pp 91--95.
clarkevans
,
hopskel.test
# Redwood data - clustered
clarkevans.test(redwood)
clarkevans.test(redwood, alternative="clustered")
clarkevans.test(redwood, correction="cdf", method="MonteCarlo", nsim=39)
Run the code above in your browser using DataLab