everyone! So, I've been trying to fit a LMER for my data, which I fully described in this post . This post, therefore, is a follow-up from the previous one. There's something intriguing me, I don't get any errors when I run this ANOVA:
aov(SCORE ~ LANGUAGE * YEAR + Error(SUBJECT/LANGUAGE * YEAR), data = data)
but I'm getting the a non-converge error (model1) or a boundary error (specifically for the language variable) model2:
model1 <- lmer(SCORE ~ (YEAR * LANGUAGE | SUBJECT), data = data
Error: number of observations (=80) <= number of random effects (=80) for term (YEAR * LANGUAGE | SUBJECT); the random-effects parameters and the residual variance (or scale parameter) are probably unidentifiable
or
model2 <- lmer(SCORE ~ LANGUAGE * YEAR + (YEAR | SUBJECT) + (LANGUAGE|SUBJECT), data = data
boundary (singular) fit: see help('isSingular')
As far as I'm concerned, this lmer should resseamble the repeated measures ANOVA I've ran before, so why do I get an error for the model, but not for the Anova?
Any thoughts on it would be much appreciated. Thanks in advance!
Error(SUBJECT/LANGUAGE * YEAR)
is equal to lmer(SCORE ~ Language*Year + (1|SUBJECT), data = data) ? I thought that the corresponding model to that Anova was one from the ones that I've ran before, but now I'm wondering this... $\endgroup$