8.6 Repeated Measures in Mixed Models

Repeated measures data arise when multiple observations are collected from the same subjects over time or under different conditions. This introduces correlation between observations from the same subject, which must be accounted for in the statistical model.

Mixed-effects models are particularly effective for repeated measures because they allow us to model both fixed effects (e.g., treatment, time) and random effects (e.g., subject-specific variability).

The general form of a mixed-effects model for repeated measures is:

Yijk=μ+αi+βj+(αβ)ij+δi(k)+ϵijk

Where:

  • Yijk = Response for the i-th group, j-th time point, and k-th subject.

  • μ = Overall mean.

  • αi = Fixed effect of the i-th group (e.g., treatment group).

  • βj = Fixed effect of the j-th time point (repeated measure effect).

  • (αβ)ij = Interaction effect between group and time (fixed).

  • δi(k)N(0,σ2δ) = Random effect of the k-th subject within the i-th group (captures subject-specific deviations).

  • ϵijkN(0,σ2) = Residual error (independent across observations).

Here, i=1,,nA (number of groups), j=1,,nB (number of repeated measures), and k=1,,ni (number of subjects in group i).


The variance-covariance matrix of the repeated observations for the k-th subject in the i-th group is given by:

Yik=(Yi1kYi2kYinBk)

  1. Compound Symmetry (CS) Structure

Under the compound symmetry assumption (common in random-intercepts models), the covariance matrix is:

Σsubject=(σ2δ+σ2σ2δσ2δσ2δσ2δ+σ2σ2δσ2δσ2δσ2δ+σ2)

This matrix can be rewritten as:

Σsubject=(σ2δ+σ2)(1ρρρ1ρρρ1)

Where:

  • σ2δ = Variance due to subject-specific random effects.

  • σ2 = Residual variance.

  • ρ=σ2δσ2δ+σ2 = Intra-class correlation coefficient (ICC).

Key Points:

  • Compound Symmetry Structure is the product of a scalar and a correlation matrix.

  • The correlation between any two repeated measures from the same subject is constant (ρ).

  • This structure assumes equal correlation across time points, which may not hold if measurements are collected over time.

Refer to Random-Intercepts Model for a detailed discussion of compound symmetry.


  1. Autoregressive (AR(1)) Structure

If repeated measures are collected over time, it may be more appropriate to assume an autoregressive correlation structure, where correlations decay as the time gap increases.

The AR(1) variance-covariance matrix is:

Σsubject=σ2(1ρρ2ρnB1ρ1ρρnB2ρ2ρ1ρnB3ρnB1ρnB2ρnB31)

Where:

  • σ2 = Residual variance.

  • ρ = Autoregressive parameter (|ρ|<1), representing the correlation between consecutive time points.

Key Characteristics:

  • Correlations decrease exponentially as the time lag increases.

  • Appropriate for longitudinal data where temporal proximity influences correlation.


In matrix notation, the mixed model can be written as:

\mathbf{Y} = \mathbf{X} \boldsymbol{\beta} + \boldsymbol{\epsilon}

Where:

  • \mathbf{Y} = Vector of observed responses.

  • \mathbf{X} = Design matrix for fixed effects (e.g., group, time, interaction).

  • \boldsymbol{\beta} = Vector of fixed-effect coefficients.

  • \boldsymbol{\epsilon} \sim N(0, \sigma^2 \mathbf{\Sigma}) = Random error vector.

  • \mathbf{\Sigma} = Variance-covariance matrix of residuals:

    • Block diagonal structure if the covariance structure is identical for each subject.
    • Within each block (subject), the structure can be compound symmetry, AR(1), or another suitable structure depending on the data.

Choosing the Right Covariance Structure

  • Compound Symmetry:
    • Suitable when correlations are constant across repeated measures (e.g., in randomized controlled trials).
    • Simple and interpretable but may be too restrictive for longitudinal data.
  • Autoregressive (AR(1)):
    • Best when measurements are taken over equally spaced time intervals and correlations decay over time.
    • Assumes stronger correlation for adjacent time points.
  • Unstructured (UN):
    • Allows different variances and covariances for each time point.
    • Provides maximum flexibility but requires more parameters and larger sample sizes.

Model selection criteria (AIC, BIC, likelihood ratio tests) can help determine the most appropriate covariance structure.