On the Linear Mixed Effects Regression (lmer) R Function for Nested Animal Breeding Data

  • Nelson Owuor Onyango


This work highlights aspects of the R lmer function for a case where the dataset is nested, highly unbalanced, involves mixed effects and repeated measurements. The lmer function is part of the lme4 package of the statistical software R. The dataset used in the study is simulated from a survey of cow milk off takes from a group of Herds in Uganda, Africa. The purpose of the survey was to identify quality breeds of African Indigenous cattle for purposes of genetic breeding following the difficulties involved in implantation of foreign breeds of cattle in Africa. The work highlights the use of mixed model analysis in the context of animal breed selection. The exposition is accessible to readers with an intermediate background in statistics. Some previous exposure to R is helpful as well as some familiarity with mixed models.