How to Expressed "nested" groups in anovan?
Afficher commentaires plus anciens
I am trying to run a Repeated measures anova with 2 independent variables (Fringe and Separation) and 1 dependent variable (Threshold).
I am including Subjects as a random variable to ensure repeated measures design.
There are multiple data point for each subject under each specific conditions, and I don't want to take the mean. So I opt for a 2 way repeated measures ANOVA with Subjects nested in Separation.
[p,table,stats] = anovan(Threshold,{Fringe,Separation,Subject},'random',3,...
'model',[1 0 0; 0 1 0; 1 1 0],...
'nested', [0 0 0; 0 0 0; 1 0 0],...
'varnames', {'Fringe' 'Separation' 'Subject'});
However, when I run this code, the return is exact the same as when I did not include the nested aspect.
Please advise!
Réponses (1)
fernando burguete
le 13 Nov 2019
0 votes
'nested' works different when you use the same numbers for the nested factor into upper level factors.
Catégories
En savoir plus sur ANOVA dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!