How to Expressed "nested" groups in anovan?
Mostrar comentarios más antiguos
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!
Respuestas (1)
fernando burguete
el 13 de Nov. de 2019
0 votos
'nested' works different when you use the same numbers for the nested factor into upper level factors.
Categorías
Más información sobre ANOVA en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!