[R] ~

2012-11-11 Thread shihyu
HI all, In my design, I have factors A and B, and dependent variable DV, and the covariate variable is CV. It's a within-subject design so the subject variable is Sub. When I ran ANOVA, I used: anova=aov(DV~A*B+Error(Sub/A*B),data=data) What should I do to include the covariate CV to run an

[R] ANCOVA with 2 within-subject factors

2012-10-15 Thread shihyu
Hi, I have two within-subject factors A and B, and covariate CV, and wanna run an ANCOVA on the dependent variable DV. my code is: ancova=aov(DV~factor(A)*factor(B)+CV+Error(factor(subject)/(factor(A)*factor(B))),data=data) Is that correct? -- View this message in context:

[R] ANCOVA with 2 within-subject factors

2012-10-15 Thread 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

[R] ANCOVA with 2 within-subject factors

2012-10-15 Thread shihyu
Hi, I have two within-subject factors A and B, and covariate CV, and wanna run an ANCOVA on the dependent variable DV. my code is: ancova=aov(DV~factor(A)*factor(B)+CV+Error(factor(subject)/(factor(A)*factor(B))),data=data) Is that correct? -- View this message in context: