Repeated measures ANOVA in built-in function?

3 views (last 30 days)
R P
R P on 13 Aug 2012
Edited: Adam Danz on 7 Apr 2020
I have 3 groups evaluated in 4 moments. Each group has a different sample size: a classic data structure evaluated by a RM-ANOVA.
I couldn't figure out how to evaluate this design using built-in functions.
Anybody has it solved?
Thanks
my dataset:
a=[94.1829 93.8598 81.1412 81.2108;
81.6985 69.6780 44.7825 23.8922;
95.5090 88.9877 64.6163 36.7676;
109.4927 86.5919 76.8675 69.9050;
107.1744 83.7629 64.5236 54.6105;
122.8783 118.6863 111.8991 96.8327;
101.6673 82.9159 66.3047 44.2722;
78.4351 54.4806 25.3277 10.1075;
116.8940 103.6841 92.1165 78.1461;
112.8228 86.5890 79.5943 74.4225;];
b=[102.2261 93.0851 78.9204 65.7865;
107.7945 92.0265 71.6536 47.8251;
103.8471 94.9030 66.6462 53.9623;
106.9637 104.1126 96.5721 101.6324;
98.8728 88.2883 79.6579 68.3273;
99.6118 92.2495 91.5766 85.4978;
100.8809 97.5272 74.4073 69.8478;
92.1034 67.3932 61.1477 56.3396;
114.2296 105.0169 102.7492 104.5469;];
c=[106.8648 102.8265 87.7277 88.5718;
91.4507 78.8077 64.6443 61.2939;
89.2476 66.4214 69.4772 61.3044;
99.0903 64.7980 53.4582 44.7148;
97.4723 87.4366 75.2352 70.3918;
111.9482 112.8508 116.7733 111.2994;
106.0606 91.0268 86.2848 78.9479;
105.4051 111.6042 108.6534 97.0706;];

Answers (1)

Tom Lane
Tom Lane on 15 Aug 2012
There's not a repeated measures anova function in the Statistics Toolbox. You may find something on the File Exchange.
There are various ways you can approach this. You could concatenate the data into a single matrix, and create a grouping variable:
y = [a;b;c];
g = [ones(size(a,1),1); 2*ones(size(b,1),1); 3*ones(size(c,1),1)];
Then you could try the manova1 function.

Community Treasure Hunt

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

Start Hunting!