ANCOVA with 2 within-subject factors

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ANCOVA with 2 within-subject factors

shihyu
Hi,

I have 2 factors A and B, and the covariate CV, and wanna run an within-subject ANCOVA on the dependent variable DV.

Previously my ANOVA was

anova=aov(DV~factor(A)*factor(B)+Error(factor(subject)/(factor(A)*factor(B))),data=data)

how do I modify this code to included a covariate CV to run an ANCOVA?

Thanks