An object of class "htest"
(i.e., hypothesis test) function which performs a hypothesis test of complete spatial
randomness (CSR) or uniformity of Xp
points in the range (i.e., range) of Yp
points against the alternatives
of segregation (where Xp
points cluster away from Yp
points) and association (where Xp
points cluster around
Yp
points) based on the normal approximation of the arc density of the CS-PCD for uniform 1D data.
The function yields the test statistic, \(p\)-value for the corresponding alternative
,
the confidence interval, estimate and null value for the parameter of interest (which is the arc density),
and method and name of the data set used.
Under the null hypothesis of uniformity of Xp
points in the range of Yp
points, arc density
of CS-PCD whose vertices are Xp
points equals to its expected value under the uniform distribution and
alternative
could be two-sided, or left-sided (i.e., data is accumulated around the Yp
points, or association)
or right-sided (i.e., data is accumulated around the centers of the triangles, or segregation).
CS proximity region is constructed with the expansion parameter \(t > 0\) and centrality parameter c
which yields
\(M\)-vertex regions. More precisely, for a middle interval \((y_{(i)},y_{(i+1)})\), the center is
\(M=y_{(i)}+c(y_{(i+1)}-y_{(i)})\) for the centrality parameter \(c \in (0,1)\).
This test is more appropriate when supports of Xp
and Yp
has a substantial overlap.
end.int.cor
is for end interval correction, (default is "no end interval correction", i.e., end.int.cor=FALSE
),
recommended when both Xp
and Yp
have the same interval support.