Skip to content
Prev 19354 / 20628 Next

Estimation of variance components in random- and mixed-effects models

Thank you very much for your responses and references. Sorry that I missed
mentioning a lot of information.

I am using lme4, and the fixed predictors are all numeric. Only having 3
levels of cohorts is indeed the major issue. After removing insignificant
predictors in the 2nd model, the only factor left is temperature: offspring
trait ~ temperature + (1 | cohort/female/clutch), which gives the
convergence warning.

Now I treat cohort as a fixed effect, but when I include both cohort and
temperature as fixed effects (in the 2nd model), a warning appears:
"fixed-effect model matrix is rank deficient so dropping 1 column /
coefficient". When I remove cohort (2nd model), the two models become very
similar and give similar results.
    offspring trait ~ cohort + (1 | female/clutch)
    offspring trait ~ temperature + (1 | female/clutch)
But am I not introducing pseudoreplicates if I do not include cohort as a
factor?

PS. The section "How do I compute a coefficient of determination (R2), or
an analogue, for (G)LMMs?" in the GLMM FAQ also gives me some insight.
However, the links provided there seem to be not working.

Best regards,
Amy Huang

Am Mo., 28. Juni 2021 um 19:32 Uhr schrieb Ben Bolker <bbolker at gmail.com>: