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!