I've been running ANOVA tests in R and have been trying to convert the results to Type III results. However, using the normal drop1
function gives an error message. My code is below as well as the error message. Any help or workarounds would be greatly appreciated.
mixed1 <- aov(Score~(Label*X)+Error(ID/Label)+X, cesmixed1 )
drop1(mixed1,~.,test="F")
Error in formula.default(object, env = baseenv()) : invalid formula