help with an anova error

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

  1. as.vector(levels(x), mode)

  2. as.vector.factor(x, mode)

  3. as.vector(x, mode)

  4. as.vector(data)

  5. array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x), NULL) else NULL)

  6. as.matrix.default(effects)

  7. as.matrix(effects)

  8. summary.aov(anova)

  9. summary(anova)

Could you post a reproducible example, called a reprex, please?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.