I am attempting to find a way to perform a power analysis for a higher order repeated measures ANOVA where all factors are within-subjects (i.e., there are no between-subjects factors). I have looked extensively for a way to do this using existing tools like SPSS, or GPower and other packages but have not found anything that seems appropriate. GPower does not seem to support power analysis for repeated measures designs where there are multiple within-subjects factors.
I am wondering if R is the right path to take to perform a power analysis of this type. I am just starting with R and was wondering if anyone had a script built for this? I found a script at the link below that seems promising but wanted to confirm that it is indeed for a power analysis of a design with ONLY within-subjects factors. The design I am interested in analyzing would have 2 factors, typically one with 2 levels and another with 3 or more. However, I also need to assess a much larger design with 4 factors. If the script in the thread linked below is for a totally within-subjects design, can it be expanded to include more factors? If so how?
Power analysis of repeated measures ANOVA using simulation in R?