Trying to run an anova test, but here is what the error showing! thank you!
Error in levels(x) : only 0's may be mixed with negative subscripts
-
as.vector(levels(x), mode)
-
as.vector.factor(x, mode)
-
as.vector(x, mode)
-
as.vector(data)
-
array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x), NULL) else NULL)
-
as.matrix.default(effects)
-
as.matrix(effects)
-
summary.aov(anova)
-
summary(anova)