Compute the cluster-depth test correction (from the head) given a matrix a permuted statistical signals.

compute_clusterdepth_head(distribution, threshold, alternative = "two.sided")

Arguments

distribution

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

threshold

A scalar that represents the threshold to create the clusters.

alternative

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