anova2rm_cell

# anova2rm_cell - anova2rm_cell compute F-values in cell...

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

% 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); ...

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern