prepare a table for fitrm and manova
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Fan Yang
el 19 de Oct. de 2021
Editada: Scott MacKenzie
el 27 de Oct. de 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 comentarios
Scott MacKenzie
el 26 de Oct. de 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.
Respuesta aceptada
Scott MacKenzie
el 27 de Oct. de 2021
Editada: Scott MacKenzie
el 27 de Oct. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Repeated Measures and MANOVA en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!