I experimentally tested the relation between dependent variable $y$ (continuous) and independent variable $x$ (continuous) for $10$ replicates of $2$ plant varieties (categorical) of $3$ species (categorical) each (Variable $A$) that were grown in $3$ differently pre-treated soils (categorical, Variable $B$). The experiment was conducted in different greenhouses (GH) at the same time whereby the plant-soil combinations were distributed randomly.
I primarily want to know if the relation between y and x differs between soils. I also want to know if it differs between the two plant varieties per species when they were grown in the same soil. I want to account for the greenhouse as potential random effect.
Do I conduct:
- An ANOVA like:
lm(y ~ x + A*B, data = dat)
- An ANCOVA? And how?
- A linear mixed effect model like:
lme(y ~ x + A * B, random = ~ 1 | GH, data = dat)