Package: flintyR 0.0.2

flintyR: Flexible and Interpretable Non-Parametric Tests of Exchangeability

Given a multivariate dataset and some knowledge about the dependencies between its features, it is important to ensure the observations or individuals are exchangeable before fitting a model to the data in order to make inferences from it, or assigning randomized treatments in order to estimate treatment effects. This package provides a flexible non-parametric test of exchangeability, allowing the user to specify the feature dependencies by hand. It can be used directly to evaluate whether a sample is exchangeable, and can also be piped into larger procedures that require exchangeable samples as outputs (e.g., clustering or community detection). See Aw, Spence and Song (2021+) for the accompanying paper.

Authors:Alan Aw [cre, aut], Jeffrey Spence [ctb]

flintyR_0.0.2.tar.gz
flintyR_0.0.2.zip(r-4.5)flintyR_0.0.2.zip(r-4.4)flintyR_0.0.2.zip(r-4.3)
flintyR_0.0.2.tgz(r-4.4-x86_64)flintyR_0.0.2.tgz(r-4.4-arm64)flintyR_0.0.2.tgz(r-4.3-x86_64)flintyR_0.0.2.tgz(r-4.3-arm64)
flintyR_0.0.2.tar.gz(r-4.5-noble)flintyR_0.0.2.tar.gz(r-4.4-noble)
flintyR_0.0.2.tgz(r-4.4-emscripten)flintyR_0.0.2.tgz(r-4.3-emscripten)
flintyR.pdf |flintyR.html
flintyR/json (API)

# Install 'flintyR' in R:
install.packages('flintyR', repos = c('https://alanaw1.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/alanaw1/flintyr/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

3.18 score 2 stars 15 scripts 183 downloads 26 exports 38 dependencies

Last updated 2 years agofrom:f7af5ba682. Checks:OK: 2 NOTE: 3 ERROR: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 31 2024
R-4.5-win-x86_64NOTEOct 31 2024
R-4.5-linux-x86_64NOTEOct 31 2024
R-4.4-win-x86_64NOTEOct 31 2024
R-4.4-mac-x86_64ERROROct 31 2024
R-4.4-mac-aarch64ERROROct 31 2024
R-4.3-win-x86_64OKOct 31 2024
R-4.3-mac-x86_64ERROROct 31 2024
R-4.3-mac-aarch64ERROROct 31 2024

Exports:blockGaussianblockLargePblockPermutebuildForwardbuildReversecacheBlockPermute1cacheBlockPermute2cachePermutedistDataLargePdistDataPermutedistDataPValuegetBinVStatgetBlockCovgetChi2WeightsgetCovgetHammingDistancegetLpDistancegetPValuegetRealVStathamming_bitwiseindGaussianindLargePlp_distancenaiveBlockPermute1naiveBlockPermute2weightedChi2P

Dependencies:assertthatbriocallrclicodetoolscrayondescdiffobjdigestdoParallelevaluatefansiforeachfsglueiteratorsjsonlitelifecyclemagrittrpillarpkgbuildpkgconfigpkgloadpraiseprocessxpsR6RcppRcppArmadillorematch2rlangrprojroottestthattibbleutf8vctrswaldowithr

Readme and manuals

Help Manual

Help pageTopics
Flexible and Interpretable Non-Parametric Tests of ExchangeabilityflintyR-package flintyR
Approximate p-value for Test of Exchangeability (Assuming Large N and P with Block Dependencies)blockGaussian
Approximate p-value for Test of Exchangeability (Assuming Large P with Block Dependencies)blockLargeP
p-value Computation for Test of Exchangeability with Block DependenciesblockPermute
Map from Indices to Label PairsbuildForward
Map from Label Pairs to IndicesbuildReverse
Resampling Many V Statistics (Version 1)cacheBlockPermute1
Resampling Many V Statistics (Version 2)cacheBlockPermute2
Permutation by Caching DistancescachePermute
Asymptotic p-value of Exchangeability Using Distance DatadistDataLargeP
p-value Computation for Test of Exchangeability Using Distance DatadistDataPermute
A Non-parametric Test for Exchangeability and Homogeneity (Distance List Version)distDataPValue
V Statistic for Binary MatricesgetBinVStat
Covariance Computations Between Pairs of Distances (Block Dependencies Case)getBlockCov
Get Chi Square WeightsgetChi2Weights
Covariance Computations Between Pairs of Distances (Independent Case)getCov
A Hamming Distance Vector CalculatorgetHammingDistance
A l_p^p Distance Vector CalculatorgetLpDistance
A Non-parametric Test for Exchangeability and HomogeneitygetPValue
V Statistic for Real MatricesgetRealVStat
Fast Bitwise Hamming Distance Vector Computationhamming_bitwise
Approximate p-value for Test of Exchangeability (Assuming Large N and P)indGaussian
Approximate p-value for Test of Exchangeability (Assuming Large P)indLargeP
Fast l_p^p Distance Vector Computationlp_distance
Resampling V Statistic (Version 1)naiveBlockPermute1
Resampling V Statistic (Version 2)naiveBlockPermute2
Tail Probability for Chi Square Convolution Random VariableweightedChi2P