Computes the p x p asymmetric matrix of Chatterjee's xi correlations
between all item pairs. Entry [j, k] is xi(item_j, item_k), which in
general differs from xi(item_k, item_j); this asymmetry is what
enables direction detection in subsequent graph-construction steps.
Each off-diagonal entry is computed by xi_stable() to average
over tie-breaking.
Value
A p x p numeric matrix with item labels as row/column names. The diagonal is 1; off-diagonal entries are asymmetric.
Details
Pairs are computed with pairwise-complete observations: for each
pair (j, k), rows where either Q[i, j] or Q[i, k] is missing are
excluded. The diagonal is set to 1.
