Learn R Programming

flintyR (version 0.1.0)

getBinVStat: 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)

Value

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

Arguments

X

The \(N \times P\) binary matrix

Details

Dependencies: getHammingDistance

Examples

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

Run the code above in your browser using DataLab