my_ph_letters( cmat ) updated version >>> 1.20 <<<
Create letters to separate means after a multiple comparison test.
Usage:
o = my_ph_letters( cmat )
CMAT arises from MULTCOMPARE in Statistic Toolbox
Example:
For 3 treatments and 4 replications.
ANOVA, post-hoc with MULTCOMPARE using HSD Tukey
at 5% significance level, and grouping.
x = meshgrid(1:3,1:4);
rng default; % For reproducibility
x = x + normrnd(0,1,4,3)
[p,t,s] = anova1(x);
[c,m,h,gnames] = multcompare(s,'alpha',0.05,'ctype','hsd');
grp = my_ph_letters(c)
x =
1.7254 1.8759 3.6715
0.9369 3.4897 1.7925
1.7147 3.4090 3.7172
0.7950 3.4172 4.6302
grp =
'a' 'ab' 'b'
Cite As
Giuseppe Altieri (2024). my_ph_letters( cmat ) updated version >>> 1.20 <<< (https://www.mathworks.com/matlabcentral/fileexchange/49696-my_ph_letters-cmat-updated-version-1-20), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: my_ph_letters_v2 Updated version 2.00b
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.