image thumbnail


version (15.9 KB) by David Groppe
Independent sample t-statistic based permutation test; corrects for multiple comparisons


Updated 15 Mar 2018

View License

Independent sample permutation test based one of three t-statistics (equal variance, Welch's t, t_dif). This function can perform the test on one variable or simultaneously on multiple variables. When applying the test to multiple variables, the "tmax" method is used for adjusting the p-values of each variable for multiple comparisons (Blair & Karnisky, 1993; Westfall & Young, 1993). Like Bonferroni correction, this method adjusts p-values in a way that strongly controls the family-wise error rate. However, the permutation method will be more powerful than Bonferroni correction when different variables in the test are correlated.

Cite As

David Groppe (2021). mult_comp_perm_t2(data1,data2,n_perm,tail,alpha_level,mu,t_stat,reports,seed_state) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!