Skip to content
Prev 6755 / 20628 Next

Singular convergence in lmer

Dear Benjamin,

I think you will need to do some reading on mixed models. I would suggest Zuur et al (2009)

@BOOK{
  title = {Mixed Effects Models and Extensions in Ecology with R},
  publisher = {Springer New York},
  year = {2009},
  author = {Zuur, Alain F. and Ieno, Elena N. and Walker, Neil J. and Saveliev,
	Anatoly A. and Smith, Graham M.},
  doi = {10.1007/978-0-387-87458-6},
}

I would expect to see fish as a random effect in your model. Further you have too few levels of year and site to get a reliable estimate of the variance. Hence a more sensible model would be something like:

lmer(G~ Day * Year * Site + (1|Fish),REML=TRUE,data=GData)

Best regards,

Thierry