Preparation of the data for N-Way ANOVA

9 views (last 30 days)
Marimuthu Ananthavelu
Marimuthu Ananthavelu on 19 Apr 2018
Answered: Bernhard Suhm on 22 Apr 2018

I have 3 matrices for 3 different techniques consisting of the data for 5 different frequency range of neuronal data each;

1 st matrix (Technique A) with the size of (100 x 5) 
2 nd matrix (Technique B) with the size of (50 x 5)
3 rd matrix (Technique C) with the size of (75 x 5)
whereas 5 is the different frequency range.

I refer to the documentation of 'anovan' and to the section 'preparation of the data'. However, I am bit confused about how can I do convert/combine these 3 different matrices so I can perform N-way ANOVA.

Can anyone help me understand quickly? Thanks

Answers (1)

Bernhard Suhm
Bernhard Suhm on 22 Apr 2018
Per documentation, you provide anovan a set of measurements and multiple assignments to different groups. I'm not sure you actually need multiple ANOVA, aren't you just investigating the effect of one variable, namely the technique (A, B, or C)? If that was the case, you can simply concatenate your measurements for A, B, and C, and create a 6th column to indicate which group the observation belongs to (A,B, or C).

Community Treasure Hunt

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

Start Hunting!

Translated by