Compute the min-P correction given a matrix a permuted statistics.

compute_minP(distribution, alternative)

Arguments

distribution

A matrix of permuted statistical signal. The first row indicating the observed statistics.

alternative

A character string indicating the alternative hypothesis. Default is "greater". Choose between "greater", "less" or "two.sided".