Processing math: 100%

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 X are independent.

getCov(X, p = 2)

Arguments

X

The binary or real matrix

p

The power p of lpp, i.e., ||x||pp=(xp1+...xpn)

Value

The three distinct entries of covariance matrix, (α,β,γ)

Details

This is used in the large P asymptotics of the permutation test.

Dependencies: buildReverse, getLpDistance