anova2rm_cell

anova2rm_cell - % % % % % % % % % % % % % % % % % % % % % %...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
% anova2rm_cell() - compute F-values in cell array using repeated measure % ANOVA. % % Usage: % >> [FC FR FI dfc dfr dfi] = anova2rm_cell( data ); % % Inputs: % data = data consisting of PAIRED arrays to be compared. The last % dimension of the data array is used to compute ANOVA. % Outputs: % FC - F-value for columns. % FR - F-value for rows. % FI - F-value for interaction. % dfc - degree of freedom for columns. % dfr - degree of freedom for rows. % dfi - degree of freedom for interaction. % % Note: this function is inspired from rm_anova available at % http://www.mathworks.se/matlabcentral/fileexchange/6874-two-way-rep % eated-measures-anova % It allows for fast computation of about 20 thousands ANOVA per % second. It is different from anova2_cell which mimics the ANOVA % fonction from the Matlab statistical toolbox. This function % computes true repeated measure ANOVA. % % Example: % a = { rand(1,10) rand(1,10) rand(1,10); rand(1,10) rand(1,10) rand(1,10) } % [FC FR FI dfc dfr dfi] = anova2rm_cell(a) % signifC = 1-fcdf(FC, dfc(1), dfc(2)) % signifR = 1-fcdf(FR, dfr(1), dfr(2)) % signifI = 1-fcdf(FI, dfi(1), dfi(2)) % % % for comparison % z = zeros(10,1); o = ones(10,1); t = ones(10,1)*2; % rm_anova2( [ a{1,1}';a{1,2}';a{1,3}';a{2,1}';a{2,2}';a{2,3}' ], . .. % repmat([1:10]', [6 1]), [o;o;o;z;z;z], [z;o;t;z;o;t], {'a','b'}) % % c = { rand(200,400,10) rand(200,400,10); . .. % rand(200,400,10) rand(200,400,10)};
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/29/2011 for the course CHE 10 taught by Professor Toupadakis during the Spring '08 term at UC Davis.

Page1 / 4

anova2rm_cell - % % % % % % % % % % % % % % % % % % % % % %...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online