Mixed-Effects Regression

mixed-effectsrandom-effectslongitudinal-dataclustered-datamultilevel-modelhierarchical-modelmaximum-likelihoodmarginal-likelihoodempirical-bayesmissing-data

Definition

The mixed-effects regression model (MRM) for continuous outcomes decomposes each subject's response trajectory into population-average fixed effects and individual-specific random effects: yi=Wiα+Xiβi+εi\mathbf{y}_i = \mathbf{W}_i\boldsymbol{\alpha} + \mathbf{X}_i\boldsymbol{\beta}_i + \boldsymbol{\varepsilon}_i, where α\boldsymbol{\alpha} are fixed effects common to all subjects, βiN(0,Σβ)\boldsymbol{\beta}_i \sim \mathcal{N}(\mathbf{0}, \boldsymbol{\Sigma}_\beta) are subject-specific random deviations, and εiN(0,σε2Ωi)\boldsymbol{\varepsilon}_i \sim \mathcal{N}(\mathbf{0}, \sigma^2_\varepsilon \boldsymbol{\Omega}_i) is the within-subject error with autocorrelation structure Ωi\boldsymbol{\Omega}_i.

Key Ideas

How It Works

  1. Marginal likelihood: h(yi)=N(yi;Wiα+Xiβi,σε2Ωi)N(βi;0,Σβ)dβih(\mathbf{y}_i) = \int \mathcal{N}(\mathbf{y}_i; \mathbf{W}_i\boldsymbol{\alpha} + \mathbf{X}_i\boldsymbol{\beta}_i, \sigma^2_\varepsilon\boldsymbol{\Omega}_i) \cdot \mathcal{N}(\boldsymbol{\beta}_i; \mathbf{0}, \boldsymbol{\Sigma}_\beta) \, d\boldsymbol{\beta}_i has closed form (normal-normal conjugacy): h(yi)=N(Wiα,Vi)h(\mathbf{y}_i) = \mathcal{N}(\mathbf{W}_i\boldsymbol{\alpha}, \mathbf{V}_i) with Vi=XiΣβXi+σε2Ωi\mathbf{V}_i = \mathbf{X}_i\boldsymbol{\Sigma}_\beta\mathbf{X}_i' + \sigma^2_\varepsilon\boldsymbol{\Omega}_i.
  2. Fisher scoring: Marginal maximum likelihood estimator (MMLE) for α\boldsymbol{\alpha}, Σβ\boldsymbol{\Sigma}_\beta, and σε2\sigma^2_\varepsilon via iterative reweighted least squares; closed-form gradient and Hessian available from the normal marginal.
  3. Autocorrelation structures: Ωi\boldsymbol{\Omega}_i can be autoregressive (AR(1)), banded, or unstructured; MIXREG implements AR(1) as default for equally-spaced measurements.
  4. Three-level extension: Cluster-level (therapist/school) random effects added as a third level; conditional independence on the cluster effect reduces the subject-level integral.
  5. Software: MIXREG (Hedeker-Gibbons 1996b) for continuous outcomes; free download, command-line interface; superseded in practice by R's lme4 and nlme packages.

Why It Matters

Open Questions

Related