Two functions: Znnref.ct
and Znnref
.
Both functions are objects of class "refhtest"
but with different arguments (see the parameter list below).
Each one performs hypothesis tests of equality of the expected values of the
diagonal cell counts (i.e., entries) under RL or CSR in the RCT for \(k \ge 2\) classes.
That is, each test performs NN reflexivity test (i.e., a test of self reflexivity and a test of
mixed non-reflexivity, corresponding to entries \((1,1)\) and \((2,2)\), respectively, in the RCT) which is
appropriate (i.e., have the appropriate asymptotic sampling distribution) for completely mapped data.
(See ceyhan:NNreflexivity2017;textualnnspat for more detail).
The reflexivity test is based on the normal approximation of the diagonal entries
in the RCT and are due to ceyhan:NNreflexivity2017;textualnnspat.
Each function yields the test statistics, \(p\)-values for the corresponding
alternative, expected values (i.e., null value(s)), confidence intervals and sample estimates (i.e., observed values)for the
self reflexivity and mixed non-reflexivity values (i.e., entries \((1,1)\) and \((2,2)\) values, respectively)
in the RCT. Each function also gives names of the test statistics, null values, the description of the test, and the data
set used.
The null hypothesis is that \(E(N_{11})=R P_{aa}\) and \(E(N_{22})=R P_{ab}\) in the RCT, where \(R\) is the number of reflexive
NNs and \(P_{aa}\) is the probability of any two points selected are being from the same class
and \(P_{ab}\) is the probability of any two points selected are being from two different classes.
The Znnref
functions (i.e., Znnref.ct
and Znnref
) are different from
the Znnself
functions (i.e., Znnself.ct
and Znnself
) and
from Zself.ref
functions (i.e., Zself.ref.ct
and Zself.ref
), and also
from Znnself.sum
functions (i.e., Znnself.sum.ct
and Znnself.sum
).
Znnref
functions are for testing the self reflexivity and mixed non-reflexivity
using the diagonal entries in the RCT while Znnself
functions are testing the self reflexivity at a
class-specific level (i.e., for each class) using the first column in the SCCT, and
Zself.ref
functions are for testing the self reflexivity for the entire data set
using entry \((1,1)\) in RCT, and Znnself.sum
functions are testing the cumulative species correspondence using
the sum of the self column (i.e., the first column) in the SCCT.