0

I am calculating in R an ANOVA with repeated measures in 2x2 mixed design. For this I use one of the following inputs in R:

(1) res.aov <- anova_test(data = datac, dv = Stress, wid = REF,between = Gruppe, within = time ) get_anova_table(res.aov)

(2) aov <- datac %>% anova_test(dv = Stress, wid = REF, between = Gruppe, within = time, type = 3) aov

Both lead to the same results. Now I want to add a covariate from the 1st measurement time point. So far I could not find a suitable R input for the ANCOVA for this repeated measures design.

Does anyone of you perhaps have an idea?

Many greetings

ANOVA <- aov(Stress~time+covariate, data = data) summary(ANOVA)

For a simple ANCOVA, the R input of an ANOVA with the addition of the covariate applies. Unfortunately, I have no idea how this works in the repeated measures design.

0 Answers0