Why is ANOVAN so slow with multiple factors?

1 回表示 (過去 30 日間)
Max
Max 2013 年 4 月 23 日
Hi everybody!
I'm using ANOVAN to run a 4-factorial ANOVA for repeated measurements. I've got 23 subjects and a 2x2x3x2 design. I know that in order to make it a proper within-subjects analysis I have to include SUBJECT as a fifth factor.
y = rand(552,1);
design{1} = repmat([1:23]',24,1);
design{2} = repmat([ones(23,1);2*ones(23,1)],12,1);
design{3} = repmat([ones(46,1);2*ones(46,1)],6,1);
design{4} = repmat([ones(92,1);2*ones(92,1);3*ones(92,1)],2,1);
design{5} = [ones(276,1);2*ones(276,1)];
anovan(y,design,'varnames',{'Subject','A','B','C','D'},'model','full','random',1);
My question is: Why does this simple analysis take about 4 Minutes (on a recent iMac), when statistics software packages like R or SPSS need about a second for the same analysis? Is there a way to make it faster? (Actually, if there is a positive answer to the second question, I no longer care about the first ;-)

回答 (0 件)

カテゴリ

Help Center および File ExchangeANOVA についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by