Open amael-ls opened 4 years ago
Hi @amael-ls, this code aims at comparing M1, M2, ..., M8 to M0. There is no comparison between models with different random effects (that is my understanding). If I am correct, then it looks like it is ok, isn't it? There is a comparison between 2 models with 2 different structure made latter on in the workshop and REML=TRUE
is properly used.
In the R code, it is written (line 109 -- 125):
Given only the random effect structure is changing, while the fixed structure remains the same, I think
REML = TRUE
should be used instead, especially if the aim is to select a random structure using $AIC_c$ (cf section 5.7, p120-122, Zuur 2009, Mixed effects models and extensions in ecology with R).