Internal function used by RISE once a rank/graph matrix \(R\) is constructed.
It computes the within-group sums, asymptotic covariance, quadratic statistic,
and (optionally) permutation-based p-value.
rTests.base(R, sample1ID, sample2ID, perm = 0)See RISE().
Symmetric nonnegative matrix (N x N) with zero diagonal.
Integer indices for group X.
Integer indices for group Y.
Integer permutations for permutation p-value (default 0).