How to prepare my data for ANOVA?
Mostrar comentarios más antiguos
Hi there,
I'm currently analyzing data from a randomized, double-blind, cross-over trial. Participants recieved a drug and a placebo, separated by a 7 day wash-out period. I suspect that there is an interaction effect between the drug and the timing of the drug administration. How do I have to prepare my data for a repeated measures ANOVA?
So far I've already extracted the data of interest (the mean value) and aranged it in the following way:
Drug_session1
Drug_session2
Placebo_session1
Placebo_session2
These are 15x1 doubles since there are 30 participants.
In order to execute the ANOVA I have to concatenate the 4 single 15x1 doubles, but in what way?
Thanks a lot!
5 comentarios
Jeff Miller
el 4 de Ag. de 2022
It sounds like the four mean values you've listed are coming from 2 different participants--is that right? If so, are these participants matched in some way (e.g., twins, age-and-gender-matched), or have you just arbitrarily paired up participants so that you have sets with all four values?
Steve Schulz
el 4 de Ag. de 2022
Editada: Steve Schulz
el 4 de Ag. de 2022
Steve Schulz
el 4 de Ag. de 2022
Scott MacKenzie
el 4 de Ag. de 2022
@Steve Schulz, a repeated measures ANOVA seems appropriate, since each participant received both the real drug and the placebo. So, your experiment is a 2 x 2 mixed design with 30 participants. There were two independent variables. One was drug which was within-subjects (with levels real and placebo) and the other was group which was between-subjects (with levels A and B). The group levels represent the different order of administering the drug.
Fifteen participants were in each group which is why group is a between-subjects factor. However, all 30 participants received both the real drug and the placeble which is why drug is a within-subjects factor.
There was (at least) one dependent variable: cognitive score.
This should be fairly easy to setup using MATLAB's ranova function. Any chance you can post the data, so @Jeff Miller or I can code-up a solution for you?
Steve Schulz
el 4 de Ag. de 2022
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Repeated Measures and MANOVA en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!