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!
답변 (1개)
fernando burguete
2019년 11월 13일
0 개 추천
'nested' works different when you use the same numbers for the nested factor into upper level factors.
카테고리
도움말 센터 및 File Exchange에서 ANOVA에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!