Permutation Conditional Random Tests

It provides functions to perform permutation conditional random one-sample and two-samples t-tests in a multivariate framework.


The pecora (permutation conditional random) package provides functions to perform the one-sample and two-samples t-tests using permutations/sign-flipping.

To install it:

devtools::install_github("angeella/pecora")

library(pecora)

A toy example:

X <- matrix(rnorm(10*100000,5,sd=5),100000,10)

system.time(out1 <- oneSample(X,1000))

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("pecora")

0.1.3 by Angela Andreella, 3 months ago


Browse source code at https://github.com/cran/pecora


Authors: Angela Andreella [aut, cre] (Main author , ORCID:


Documentation:   PDF Manual  


GPL (>= 2) license


Imports Rcpp, matrixStats, stats

Linking to Rcpp, RcppArmadillo


See at CRAN