getBlockCov {flintyR} | R Documentation |
Covariance Computations Between Pairs of Distances (Block Dependencies Case)
Description
Computes covariance matrix entries and associated alpha, beta
and gamma quantities defined in Aw, Spence and Song (2023),
for partitionable features that are grouped into blocks. Uses
precomputation to compute the unique entries of the asymptotic
covariance matrix of the pairwise Hamming distances in O(N^2)
time.
Usage
getBlockCov(X, block_boundaries, block_labels, p)
Arguments
X |
The binary or real matrix |
block_boundaries |
Vector denoting the positions where a new block of non-independent features starts. |
block_labels |
Length |
p |
The power |
Details
This is used in the large P
asymptotics of the permutation test.
Dependencies: buildReverse, getHammingDistance, getLpDistance
Value
The three distinct entries of covariance matrix, (\alpha, \beta, \gamma)
[Package flintyR version 0.1.0 Index]