Different results from ranova and JASP
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Dear all, I am struggling to make sense of ranova with multcompare vs JASP (a statistical program). They are providing different results.
What I have is a table where rows correspond to subjects, and columns correspond to conditions. I want to compare each condition to each other condition. Therefore I am using ranova and multcompare.
load('data.mat','resultsAll')
rTable = array2table(resultsAll);
varNames = strsplit(string(num2str(1:size(resultsAll,2))));
withinDesign = table(varNames','VariableNames',{'State'});
withinDesign.State = categorical(withinDesign.State);
conditionString = sprintf('%s-%s ~ 1',rTable.Properties.VariableNames{1},rTable.Properties.VariableNames{end});
rm = fitrm(rTable,conditionString,'WithinDesign',withinDesign);
fullTable = ranova(rm,'WithinModel','State');
disp(fullTable)
c = multcompare(rm,'State');
disp(c);
On the other hand, JASP gives very different results for a repeated measures ANOVA.
I get the same F value of 20.282.
But the p-values in multiple comparisons is very different.
I am using all the default parameters of JASP.
0 Commenti
Risposte (1)
Shivansh
il 1 Apr 2024
Hi Joshua!
It looks like you are comparing the results from MATLAB and JASP. As you have mentioned, the "f-value" and "df" are similar in both cases.
For the pairwise comparison using "multcompare", I can observe that the mean difference is also consistent across the cases. The difference in standard error will lead to a difference in p-values and as a result, lower and upper bounds will also be different. There might be the case that the implementations in MATLAB and JASP use slightly different approaches for pooling variance or handling within-subject correlations, especially in the context of a repeated measure, affecting "StdErr", which in turn affects p-values and confidence intervals.
You can refer to the following link to know more about the "ranova" and "multcompare" functions in MATLAB:
I hope it helps!
0 Commenti
Vedere anche
Categorie
Scopri di più su Repeated Measures and MANOVA in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!