Linear mixed model formulation
Introduction
Mixed models are quite tricky, in that, while being very powerful extensions of linear models, they are somewhat difficult to conceptualize and otherwise to specify. Mixed models have, in addition to usual fixed effect combination of factors, random effects structure. These structure need to be specified in the model formula in R
. While formula specification of a model is unique in it’s own respect, the formuala expression too leads to an object with differnt properties than a regular R
object. Although, the complexity of formula syntax can arbitrary (constrained by classess and methods working on that), a general guideline is applicable for most of the mixed modeling utilities. These include: lme4
, nlme
, glmmADMB
and glmmTMB
.