This function computes the expected value of Cuzick and Edwards \(T_k^{inv}\) test statistic which is based on the
sum of number of cases closer to each case than the k
-th nearest control to the case.
The number of cases are denoted as \(n_1\) (denoted as n1
as an argument)
and number of controls as \(n_0\) for both functions (denoted as n0
as an argument),
to match the case-control class labeling,
which is just the reverse of the labeling in cuzick:1990;textualnnspat.
See the function ceTkinv
for the details of the \(T_k^{inv}\) test.
See (cuzick:1990;textualnnspat) and references therein.