I am running ANOVA to test for a significant effect for some data, and a grad student said I should run an ANOVA test formatted like this in R to test for significance:
x<- aov(angle~cond+sub)
where cond=condition
with 4 levels (other, joint,self,diff), and sub=subject
. My data being analyzed is formatted as follows:
sub phase cond angle
1 1 diff 55.25
1 2 self 25.75
2 1 diff 38.65
2 2 other 55.75
3 1 diff 21.55
3 2 joint 65.65
4 1 joint 55.00
4 2 other 51.51
and so on,
so each subject is only exposed to two of the four conditions. I get that the aov()
formula he gave me is essentially trying to find the effect of condition on angle, while accounting for the variance caused by the effect of subject on angle. I am just a little confused then exactly what type of ANOVA I am running as I know the format of blocked ANOVA, two way ANOVA (without interactions), and ANCOVA all look generally like aov(Y~X + Z). Just looking for clarification.