Learn R Programming

flintyR (version 0.1.0)

Simple and Flexible Tests of Sample Exchangeability

Description

Given a multivariate dataset and some knowledge about the dependencies between its features, it is customary to fit a statistical model to the features to infer parameters of interest. Such a procedure implicitly assumes that the sample is exchangeable. This package provides a flexible non-parametric test of this exchangeability assumption, allowing the user to specify the feature dependencies by hand as long as features can be grouped into disjoint independent sets. This package also allows users to test a dual hypothesis, which is, given that the sample is exchangeable, does a proposed grouping of the features into disjoint sets also produce statistically independent sets of features? See Aw, Spence and Song (2023) for the accompanying paper.

Copy Link

Version

Install

install.packages('flintyR')

Monthly Downloads

209

Version

0.1.0

License

GPL (>= 3)

Maintainer

Alan Aw

Last Published

March 23rd, 2023

Functions in flintyR (0.1.0)

flintyR-package

tools:::Rd_package_title("flintyR")
hamming_bitwise

Fast Bitwise Hamming Distance Vector Computation
naiveBlockPermute1

Resampling V Statistic (Version 1)
lp_distance

Fast \(l_p^p\) Distance Vector Computation
naiveBlockPermute2

Resampling V Statistic (Version 2)
indLargeP

Approximate p-value for Test of Exchangeability (Assuming Large P)
weightedChi2P

Tail Probability for Chi Square Convolution Random Variable
indGaussian

Approximate p-value for Test of Exchangeability (Assuming Large N and P)
buildForward

Map from Indices to Label Pairs
blockPermute

p-value Computation for Test of Exchangeability with Block Dependencies
distDataLargeP

Asymptotic p-value of Exchangeability Using Distance Data
blockGaussian

Approximate p-value for Test of Exchangeability (Assuming Large N and P with Block Dependencies)
blockLargeP

Approximate p-value for Test of Exchangeability (Assuming Large P with Block Dependencies)
cacheBlockPermute1

Resampling Many V Statistics (Version 1)
cacheBlockPermute2

Resampling Many V Statistics (Version 2)
buildReverse

Map from Label Pairs to Indices
distDataPValue

A Non-parametric Test of Sample Exchangeability and Feature Independence (Distance List Version)
cachePermute

Permutation by Caching Distances
distDataPermute

p-value Computation for Test of Exchangeability Using Distance Data
getBinVStat

V Statistic for Binary Matrices
getChi2Weights

Get Chi Square Weights
getBlockCov

Covariance Computations Between Pairs of Distances (Block Dependencies Case)
getPValue

A Non-parametric Test of Sample Exchangeability and Feature Independence
getCov

Covariance Computations Between Pairs of Distances (Independent Case)
getHammingDistance

A Hamming Distance Vector Calculator
getLpDistance

A \(l_p^p\) Distance Vector Calculator
getRealVStat

V Statistic for Real Matrices