Non-parametric alternative of 2-way ANOVA (ScheirerRayHare)

版本 1.0.1 (1.6 KB) 作者: Nirvik Sinha
This is a simplified MATLAB implementation of R's Scheirer-Ray-Hare test
152.0 次下载
更新时间 2021/8/28

查看许可证

For more details refer to: James Scheirer, William S. Ray, Nathan Hare, The Analysis of Ranked Data Derived from Completely Randomized Factorial Designs. In: Biometrics. 32(2)/1976. International Biometric Society, S. 429–434
% Example from Sokal and Rohlf, 1995:
Value = [709,679,699,657,594,677,592,538,476,508,505,539];
Sex = [1 1 1 2 2 2 1 1 1 2 2 2]; % 1 -> Male, 2 -> Female
Fat = [1 1 1 1 1 1 2 2 2 2 2 2]; % 1 -> Fresh, 2-> Rancid
Data = [Value',Sex',Fat'];
out = SRH_test(Data,'Sex','Fat')
4×5 table
Factor SS DF H pvalue
_____________ ______ __ _______ _________
{'Sex' } 8.3333 1 0.64103 0.42334
{'Fat' } 108 1 8.3077 0.0039478
{'Sex x Fat'} 5.3333 1 0.41026 0.52184
{'Residuals'} 21.333 8 NaN NaN

引用格式

Nirvik Sinha (2024). Non-parametric alternative of 2-way ANOVA (ScheirerRayHare) (https://www.mathworks.com/matlabcentral/fileexchange/96399-non-parametric-alternative-of-2-way-anova-scheirerrayhare), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2021a
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.1

Added factor names to output table

1.0.0