getBinVStat {flintyR}R Documentation

V Statistic for Binary Matrices

Description

Computes V statistic for a binary matrix \mathbf{X}, as defined in Aw, Spence and Song (2023).

Usage

getBinVStat(X)

Arguments

X

The N \times P binary matrix

Details

Dependencies: getHammingDistance

Value

V(\mathbf{X}), the variance of the pairwise Hamming distance between samples

Examples

X <- matrix(nrow = 5, ncol = 10, rbinom(50, 1, 0.5))
getBinVStat(X)


[Package flintyR version 0.1.0 Index]