unb_anov1 <- lm(logMaxAbund ~ Aquatic + Diet, data=bird) unb_anov2 <- lm(logMaxAbund ~ Diet + Aquatic, data=bird) anova(unb_anov1) anova(unb_anov2)