I found this example, which explains how to perform a 2-way ANOVA. I was wondering how to do the same for a repeated-measures design.
I did see this question, but I cannot assume independence of my repeated measurements.
I'm using statsmodels version 0.5.0.dev-Unknown
.
Ideally, I'd like to use statsmodels, but if there's a viable solution using another library, I'd be interested in hearing about it as well.
Thanks in advance!
A two-way repeated measures ANOVA (also known as a two-factor repeated measures ANOVA, two-factor or two-way ANOVA with repeated measures, or within-within-subjects ANOVA) compares the mean differences between groups that have been split on two within-subjects factors (also known as independent variables).
For example, you could use a repeated measures ANOVA to understand whether there is a difference in cigarette consumption amongst heavy smokers after a hypnotherapy programme (e.g., with three time points: cigarette consumption immediately before, 1 month after, and 6 months after the hypnotherapy programme).
Repeated measures ANOVA is used when you have the same measure that participants were rated on at more than two time points. With only two time points a paired t-test will be sufficient, but for more times a repeated measures ANOVA is required.
There is nothing built-in yet for repeated measures designs ANOVA, though I suspect it wouldn't be difficult to support. If you could provide or point me to an example and file an enhancement request we will look to support it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With