prepare a table for fitrm and manova
7 次查看(过去 30 天)
显示 更早的评论
I am try to perform a one way repeated measure MANOVA on a set of data. In this data, I have 6 subjects. Each subject is measureed 4 times (t1-t4) for 11 different measures (m1-m11). Each subject went through all 44 measures.
I think the table should look like the table in the attached .mat file, and the model specification should be 'm1-m11~1'.
In the table, each subject has 4 rows, and each row contain the subject ID and 11 measures at a specific time point.
My goal is to see if there is any sifnificance across time witnin any measure.
I am wondering if it is the right table layout and modelspec for my goal.
4 个评论
Scott MacKenzie
2021-10-26
I'm not sure what to suggest other than doing the ANOVA on each measure, using time (t1-t4) as a within-subjects factor.
采纳的回答
Scott MacKenzie
2021-10-27
编辑:Scott MacKenzie
2021-10-27
Using the example in the documentation for the manova function, here's a MANOVA for your data (attached):
load atb;
Meas = table([1 2 3 4 5 6 7 8 9 10 11]','VariableNames',{'Measurements'});
rm = fitrm(atb,'m1-m11~ID','WithinDesign',Meas);
manova(rm)
Above, Wilks' lambda = 0.49352. The corresponding F-statistic is not significant (F[10,13] = 1.3341, p = .30768) implying no significant difference between the eleven measures over the four time points with six IDs (subjects). Your data just look like random numbers, so the result is not surprising. Hopefully, you'll have more interesting results with real data.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Repeated Measures and MANOVA 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!