Compute the Troendle's multiple comparisons procedure, which corresponds to the step-wise version of the min-P.

compute_troendle_array(distribution, alternative, graph)

Arguments

distribution

An 3d array representing the null distribution of multiple signals. The first dimension is the permutations, the second the samples, the third is the channels.

alternative

A character string indicating the alternative hypothesis. Either "greater", "less" or "two.sided".

graph

An igraph object representing the adjacency of the channels (used for the output only).

Value

A list containing an igraph and a data.frame, with the results for each sample and channels.

References

Troendle, J. F. (1995). A stepwise resampling method of multiple hypothesis testing. Journal of the American Statistical Association, 90(429), 370-378, https://doi.org/10.1080/01621459.1995.10476522.

See also