Skip to main content

Linear Mixed Effects Modeling

The simplest mixed effect model is a random intercept model where Zi = 1;
image.png
The random intercept model can be interpreted as the effect of all unobserved subject-specific variables (bi) on the linear predictor.

Random slopes of time-varying covariates (Zi) can be interpreted as interaction of unobserved subject specific covariates with observed time-varying covariates.

We can also include a random effect with a time-invariate covariate zi (e.g. treatment group) to produce a heteroscediastic random intercept bi0 + bi1zi.

Two-Stage Formulation

An alternative formulation of the mixed effects models is a two-stage formulation, in which we first specify a within subject or level-1 model where the occasion specific linear predictor is a function of time-varying covariates. Then a between subject or level 2 model is specified:
image.png
Some elements of δi are constant and some depend only on the observed covariates.

Consider the following with a random intercept and a random slope for time:
image.png
xij is a time-varying covariate and wi is a time-invariant covariateimage.png
The redirected form is obtained by substituting the level-2 model into level-1 model. We then substitute level-2 into level-1 to produce the reduced form with a "cross-level interaction" term γ11witij

  • The two formulations are equivalent but it can have an impact on the types of models being considered
  • The two-stage formulation encourages inclusion of many cross-level interactions and few same-level interactions
  • Due to an abundance of interactions in the two-stage formulation, we usually center around the mean all variables except time. In our example, centering of wi makes γ10 interpretable as the mean effect of tij when tij when wi takes it mean value.