How to Expressed "nested" groups in anovan?

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
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.

Etiquetas

Preguntada:

el 13 de Mzo. de 2019

Respondida:

el 13 de Nov. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by