I haven't used aov.car before, but upon installing it and running your code, I note that it prints a note "Converting to factor: Age", whereas ezANOVA has the warning "Warning: Covariate"Age" is numeric and will therefore be fit to a linear effect." So, the two analyses are treating age differently. Since you have a relatively continuous sample of ages, you likely don't want to treat Age as a factor as is default in aov.car. You can fix this by setting "factorize=FALSE", as in:
aov.car(
formula = x~View*Texture*TNOGroup+Age+Error(ID/(View*Texture))
, data=dataset
, factorize = FALSE
But then you'll get another note saying that Age isn't centered on zero. To recenter, do:
dataset$Age0 = dataset$Age - mean(dataset$Age)
aov.car(
formula = x~View*Texture*TNOGroup+Age0+Error(ID/(View*Texture))
, data=dataset
, factorize = FALSE
)
In which case you'll get output that looks more similar to that of ezANOVA. However, there's still a few differences:
- aov.car reports the effect of Age as well as its interaction with any within-Ss variable; ezANOVA doesn't
- aov.car's MSE/F's are slightly different than those of ezANOVA
- aov.car reports error DFs that are 1 less than those of ezANOVA