post hoc testing Bonferroni correction after a repeated measure ANOVA
21 次查看(过去 30 天)
显示 更早的评论
Hello, I am trying to multicompare set of data with Bonferroni correction after a repeated measure ANOVA. Here is the code i am using.
M = [1 101.05 39.99 1.10;
2 216.14 70.14 1.25;
3 26.53 81.12 1.54;
4 231.18 135.89 0.89;
5 140.40 37.21 0.01];
T = array2table(M(:,2:end));
T.Properties.VariableNames = {'A' 'B' 'C'};
withinDesign = table([1 2 3]','VariableNames',{'Condition'});
withinDesign.Condition = categorical(withinDesign.Condition);
rm = fitrm(T,'A-C ~ 1','WithinDesign',withinDesign);
raov = ranova(rm,'WithinModel','Condition');
result = multcompare(rm,'Condition','CriticalValueType','bonferroni')
however, code results follwoing error. Can anyone help me correctly use Bonferroni correction ?.
Error using internal.stats.parseArgs
Invalid parameter name: CriticalValueType.
Error in RepeatedMeasuresModel/multcompare (line 1132)
internal.stats.parseArgs(okargs,defaults,varargin{:});
Error in new (line 17)
result = multcompare(rm,'Condition','CriticalValueType','bonferroni');
Any help appreciated. Thank you.
2 个评论
Rik
2023-3-24
Which release are you using? This option may have been added in a later release than you are using.
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Analysis of Variance and Covariance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!