I tried to do ANOVA with my data. I want to check if there is an interaction effect between two factors. I use the code:
anova_3<- anova(lm(response ~ Fac_A * Fac_B, data, type=3))
But I got an error
In
lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...)
: extra argument ‘type’ will be disregarded
No matter what type I tried, always got the same answer and the same error. There are no NA
s in my data.