Top "Lme4" questions

lme4 is an R package for fitting and analyzing linear, nonlinear and generalized linear mixed models.

How to cope with a singular fit in a linear mixed model (lme4)?

I am running several linear mixed models for an study about birds with the variable nest as a random variable. …

r lme4 mixed-models
R: Interaction Plot with a continuous and a categorical variable for a GLMM (lme4)

I would like to make an interaction plot to visually display the difference or similarity in slopes of interaction of …

r plot interaction lme4 mixed-models
How to compare a model with no random effects to a model with a random effect using lme4?

I can use gls() from the nlme package to build mod1 with no random effects. I can then compare mod1 …

r lme4 mixed-models nlme
solution to the warning message using glmer

As many other people, I'm having troubles running a model which uses glmer function from package lme4. Here is my …

r warnings lme4
Warning lme4: Model failed to converge with max|grad|

I have to run a lmer with a log transformed response variable, a continuous variable as fixed effect and and …

r optimization lme4 mixed-models
Multivariate Linear Mixed Model in lme4

I wonder how to fit multivariate linear mixed model with lme4. I fitted univariate linear mixed models with the following …

r lme4
Prediction with lme4 on new levels

I'm trying to fit a mixed effects model and then use that model to generate estimates on a new dataset …

r prediction lme4 mixed-models random-effects
Post-hoc test for glmer

I'm analysing my binomial dataset with R using a generalized linear mixed model (glmer, lme4-package). I wanted to make …

r lme4
Error when trying to run lmer() in R

So here's my problem. I have a data set in R that I need to run a mixed effects model …

r syntax-error lme4 lmer
using glmer for nested data

I have data on the diversity of pathogens infecting a particular host species across latitudes. The design involved collecting 20 individuals …

r nested lme4