I am using R.
I have the following data set:
df <- data.frame(
Plot = 1:16,
Voles = rep(c("ja", "nein"), each = 8),
Mulch = rep(rep(c("ja", "nein"), each = 4), 2),
SoilTemperature = c(18.1, 17.5, 18.4, 18.2, 17.8, 17.3, 18.0, 17.9,
18.3, 17.6, 18.5, 18.1, 17.9, 17.7, 18.2, 17.8),
SoilMoisture = c(25.2, 24.8, 26.1, 25.5, 22.9, 23.2, 24.1, 23.8,
26.0, 25.1, 25.8, 25.4, 23.1, 22.7, 24.0, 23.6),
Infiltration = c(52, 48, 58, 55, 42, 39, 45, 41,
50, 49, 51, 50, 38, 36, 40, 39),
Ksat = c(0.15, 0.14, 0.13, 0.15, 0.14, 0.13, 0.13, 0.12,
0.14, 0.13, 0.15, 0.14, 0.11, 0.10, 0.12, 0.11)
)
and want to find out whether voles and/or mulch have an effect on Ksat. I started by fitting two models and used AIC to determine which one fits better:
full <- lm(Ksat ~ Mulch * Voles, data = df)
reduced <- lm(Ksat ~ Voles + Mulch, data = df)
It turns out that the full model has a lower AIC so I proceeded with using the summary()
function in R on it. However, the interaction coefficient is not significant (p > 0.05).
My question now is: In order to do a post-hoc test using the function emmeans()
in R, should I still use the full model or should I switch to the reduced model since the interaction term is not significant?
I am a bit confused right now because the AIC favors the full model.