I'm currently running a test for some students I mentor. They designed a field experiment where they're trying to see the influence of phosphates, nitrates, and pH on plankton abundance in three different locations (Guzzlers). I designed this ANOVA (however I realize now that some other test may fit best) and got an output that I've pasted below. The ANOVA seemed to run but after trying for a Tukey post-hoc I got an error. The data may not be parametric, so I'm wondering if a multiple regression model may be best instead? Or did I simply design the ANOVA incorrectly?
Thank you!
Here is my code:
practiceanova <- aov(WQAbundancebyGuzzler$Abundance[factor(WQAbundancebyGuzzler$Guzzler..)] ~ WQAbundancebyGuzzler$Phospates, na.rm=TRUE)
anova(practiceanova)
TukeyHSD(practiceanova, na.rm=TRUE)
Output:
> practiceanova<-aov(WQAbundancebyGuzzler$Abundance[factor(WQAbundancebyGuzzler$Guzzler..)] ~ WQAbundancebyGuzzler$Phospates, na.rm=TRUE)
Warning message:
In lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
extra argument ‘na.rm’ will be disregarded
> anova(practiceanova)
Analysis of Variance Table
Response: WQAbundancebyGuzzler$Abundance[factor(WQAbundancebyGuzzler$Guzzler..)]
Df Sum Sq Mean Sq F value
WQAbundancebyGuzzler$Phospates 1 3700.8 3700.8 7.6667
Residuals 8 3861.7 482.7
Pr(>F)
WQAbundancebyGuzzler$Phospates 0.02434 *
Residuals
---
Signif. codes:
0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
> TukeyHSD(practiceanova, na.rm=TRUE)
Error in TukeyHSD.aov(practiceanova, na.rm = TRUE) :
no factors in the fitted model
In addition: Warning message:
In replications(paste("~", xx), data = mf) :
non-factors ignored: WQAbundancebyGuzzler$Phospates