R/auxiliary.R
getCov.Rd
Computes covariance matrix entries and associated alpha, beta and gamma quantities defined in Aw, Spence and Song (2021), assuming the \(P\) features of the dataset \(\mathbf{X}\) are independent.
getCov(X, p = 2)
The binary or real matrix
The power \(p\) of \(l_p^p\), i.e., \(||x||_p^p = (x_1^p+...x_n^p)\)
The three distinct entries of covariance matrix, \((\alpha, \beta, \gamma)\)
This is used in the large \(P\) asymptotics of the permutation test.
Dependencies: buildReverse, getLpDistance