Closed vabatista closed 1 year ago
Hi,
If this is a fully repeated measure ANOVA, then you can use pg.rm_anova
and pass a list of column names in your dataframe to the within
parameter. Please see the examples in https://pingouin-stats.org/build/html/generated/pingouin.rm_anova.html or in this notebook: https://github.com/raphaelvallat/pingouin/blob/master/notebooks/01_ANOVA.ipynb. If you have one within-subject (repeated) factor and one between-level factor (e.g. group), then you want to use the mixed_anova
function.
I think the documentation of power_anova
(https://pingouin-stats.org/build/html/generated/pingouin.power_anova.html#pingouin.power_anova) is pretty explicit and includes several examples, please make sure to read it carefully and check the above example notebook as well
The assumptions will not be the same depending on whether you are using a one-way, one-way repeated measures or mixed design anova. Some of the functions that are relevant are:
Have you considered using a free software such as JAMOVI or JASP? They are pretty intuitive and allow to check the assumptions for simple or complex ANOVA designs.
Suppose I'm doing this experimental design with 3 factors, 2 levels each and 3 repetitions:
1) What is the correct function to run ANOVA with repeatead measures using 3 or more factors? I tryed
rm_anova
, but it raises an error for more than 2 factors. I'm trying this, but not sure if it is correct:2) I saw that there is a function
pg.power_anova
. What does exactly it measure?3) What is the correct way to test assumptions of ANOVA for factorial design like this above? Should I test normality of measures (y) for each Factor in my experiment? Or should I test y grouping by all factors in my dataframe? And about variance? I wrote the code below, but not sure if I'm doing it right: