I have done an lmer with a random factor and two fixed factors in R, all orthogonal.
Levels of factors:
- fixed.factor.1 = 3
- fixed.factor.2 = 2
- random.factor = 2
- Replicates per group = 3
model <- lmer(response.var~fixed.factor.1*fixed.factor.2+
(1|random.factor),data=df)
summary(model)
Anova(model,type = 3,test='F')
R warns me about a singularity and the summary of the model shows that the variance associated with the random factor is 0, so the influence of such factor is null. The output of a linear model without random factor gives exactly the same estimates, and does not give warnings. Can it be possible that the variance of the random factor is completely zero, or am I doing something wrong? Can it be that R rounds the variance to 5 decimals, but that the variance is actually not 0?