I am not too familiar with using R for stats, but I really need to be able to analyze my data. I am comparing the level of a compound found in plants from two different locations, and within each location there were sites next to trails and far from trails. I also need to look at soil pH as a covariant. So I want to compare the effects of location and trail adjacency on compound level with pH as a covariate. I am wondering if I have this set up correctly in R and if I should be using +
or *
.
mod = aov(compound_lvl ~ pH + location*trail_adjacency, data=d,
contrasts=list(location=contr.sum, trail_adjacency=contr.sum))
Anova(mod)