prepare a table for fitrm and manova
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Fan Yang
il 19 Ott 2021
Modificato: Scott MacKenzie
il 27 Ott 2021
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 Commenti
Scott MacKenzie
il 26 Ott 2021
I'm not sure what to suggest other than doing the ANOVA on each measure, using time (t1-t4) as a within-subjects factor.
Risposta accettata
Scott MacKenzie
il 27 Ott 2021
Modificato: Scott MacKenzie
il 27 Ott 2021
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Repeated Measures and MANOVA in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!