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.7)flintyR_0.0.2.zip(r-4.6)flintyR_0.0.2.zip(r-4.5)
flintyR_0.0.2.tgz(r-4.6-x86_64)flintyR_0.0.2.tgz(r-4.6-arm64)flintyR_0.0.2.tgz(r-4.5-x86_64)flintyR_0.0.2.tgz(r-4.5-arm64)
flintyR_0.0.2.tar.gz(r-4.7-arm64)flintyR_0.0.2.tar.gz(r-4.7-x86_64)flintyR_0.0.2.tar.gz(r-4.6-arm64)flintyR_0.0.2.tar.gz(r-4.6-x86_64)
flintyR_0.0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
flintyR/json (API)

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

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

Pkgdown/docs site:https://alanaw1.github.io

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

On CRAN:

Conda:

cpp

3.18 score 2 stars 15 scripts 212 downloads 26 exports 31 dependencies

Last updated from:f7af5ba682. Checks:7 NOTE, 2 OK, 4 ERROR. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64NOTE175
linux-devel-x86_64NOTE167
source / vignettesOK292
linux-release-arm64NOTE211
linux-release-x86_64NOTE168
macos-release-arm64ERROR548
macos-release-x86_64ERROR1291
macos-oldrel-arm64ERROR495
macos-oldrel-x86_64ERROR1665
windows-develNOTE118
windows-releaseNOTE127
windows-oldrelNOTE202
wasm-releaseOK145

Exports:blockGaussianblockLargePblockPermutebuildForwardbuildReversecacheBlockPermute1cacheBlockPermute2cachePermutedistDataLargePdistDataPermutedistDataPValuegetBinVStatgetBlockCovgetChi2WeightsgetCovgetHammingDistancegetLpDistancegetPValuegetRealVStathamming_bitwiseindGaussianindLargePlp_distancenaiveBlockPermute1naiveBlockPermute2weightedChi2P

Dependencies:assertthatbriocallrclicodetoolscrayondescdiffobjdoParallelevaluateforeachfsglueiteratorsjsonlitelifecyclemagrittrotelpkgbuildpkgloadpraiseprocessxpsR6RcppRcppArmadillorlangrprojroottestthatwaldowithr

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