Compute the Troendle's correction given a matrix a permuted statistics.

compute_troendle(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".