post hoc testing Bonferroni correction after a repeated measure ANOVA

23 vues (au cours des 30 derniers jours)
Gineesh
Gineesh le 24 Mar 2023
Réponse apportée : Rik le 24 Mar 2023
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 commentaires
Rik
Rik le 24 Mar 2023
Which release are you using? This option may have been added in a later release than you are using.
Gineesh
Gineesh le 24 Mar 2023
Im using R2020a.

Connectez-vous pour commenter.

Réponse acceptée

Rik
Rik le 24 Mar 2023
In R2020a, this parameter was called CType, not CriticalValueType. You can find the release-specific documentation page here.

Plus de réponses (0)

Catégories

En savoir plus sur Analysis of Variance and Covariance dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by