my_ph_letters( cmat ) updated version >>> 1.20 <<<

Means with letters after a multiple comparison test.
147 Downloads
Updated 10 Jun 2015

View License

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
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
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!
Version Published Release Notes
1.20.0.0

update to version 1.20: new algorithm used.

1.3.0.0

Updated version 1.10

1.2.0.0

Updated version to 1.01

1.1.0.0

Description Added

1.0.0.0