An object of class "Chisqtest"
performing the hypothesis test of equality of the probabilities for the rows
in the \(Q\)-symmetry contingency table (QCT).
Each row of the QCT is the vector of Qi\(j\) values where \(Q_{ij}\) is the number of class \(i\) points that are NN
to \(j\) points.
That is, the test performs Pielou's second type of NN symmetry test which is also equivalent to Pearson's
test on the QCT (pielou:1961;textualnnspat).
Pielou's second type of NN symmetry is the symmetry in the shared NN structure for all classes, which is also
called \(Q\)-symmetry.
The test is appropriate (i.e., have the appropriate asymptotic sampling distribution)
provided that data is obtained by sparse sampling, although simulations suggest it seems to work for
completely mapped data as well.
(See ceyhan:SWJ-spat-sym2014;textualnnspat for more detail).
The argument is.ipd
is a logical argument (default=TRUE
) to determine the structure of the argument x
.
If TRUE
, x
is taken to be the inter-point distance (IPD) matrix, and if FALSE
, x
is taken to be the data set
with rows representing the data points.
The argument combine is a logical argument (default=TRUE
) to determine whether to combine the 3rd column
and the columns to the left.
If TRUE
, this function pools the cells 3 or larger together for \(k\) classes in the QCT,
so, \(Q_2\), \(Q_3\) etc. are pooled, so, the column
labels are \(Q_0\), \(Q_1\) and \(Q_2\) with the last one is actually sum of \(Q_j\) for \(j \ge 2\) in the QCT.
If FALSE
, the function does not perform the pooling of the cells.
The function yields the test statistic, \(p\)-value and df
which is \((k-1)(n_c-1)\) where \(n_c\) is the number of
columns in QCT (which reduces to \(2(k-1)\), if combine=TRUE
). It also provides the description of
the alternative with the corresponding null values (i.e., expected values) of the entries of the QCT and also the sample estimates
of the entries of QCT (i.e., the observed QCT).
The function also provides names of the test statistics, the description of the test and the data set used.
The null hypothesis is the symmetry in the shared NN structure for each class, that is,
all \(E(Q_{ij})=n_i Q_j/n\) where \(n_i\) the size of class \(i\) and \(Q_j\) is the sum of column \(j\)
in the QCT (i.e., the total number of points serving as NN to class \(j\) other points). (i.e., symmetry in the
mixed NN structure).
See also
(pielou:1961,ceyhan:SWJ-spat-sym2014;textualnnspat)
and the references therein.