flintyR

This is the homepage of flintyR, the R version of the software flinty (Flexible and Interpretable Non-parametric Tests of Exchangeability). The Python version is available here.

Bruno appears

Bruno is named after a famous statistican who studied exchangeability. Who might that be?

What does this package offer?

flintyR provides exact tests of exchangeability in multivariate datasets.

Here is a schema of how flintyR works.

Schema

Installation

Using CRAN

install.packages("flintyR")

If prompted to compile C/C++/Fortran, enter "Yes" to attempt to install these from sources.

Using Tarball

  1. Download the tar ball for flintyR from here.
  2. Run the following line, changing FILE_PATH_TO_TAR_BALL.
devtools::install.packages("FILE_PATH_TO_TAR_BALL",
                 repos = NULL, type = "source")
# Example: devtools::install.packages("/Users/alanaw/Documents/flintyR_0.0.1.tar.gz", repos = NULL, type = "source")

Example Usage

The code below demonstrates running our test on a binary matrix.

# library(flintyR)
X <- matrix(nrow = 5, ncol = 10, rbinom(50, 1, 0.5))
getPValue(X) # perform exact test with 5000 permutations
# Output should be larger than 0.05

Examples involving real datasets can be found in the tutorials.

Tutorials

We offer several tutorials on using our software.

We love to see our methods and software used across multiple fields, so please reach out to us if you are interested in using them. If there is enough interest, we are happy to include more tutorials.