Skip to content

Linear Mixed Models

Models a quantitative outcome when observations are grouped (pupils in schools, visits within patients) or measured repeatedly over time. Random effects capture differences between subjects; a residual covariance structure captures correlation between repeated measurements.

  • Multilevel (hierarchical) data: a random intercept per school, clinic or respondent, optionally with random slopes.
  • Repeated measures with missing time points or unequal spacing, where repeated-measures ANOVA would drop whole subjects.
  • Comparing covariance structures for repeated measurements: compound symmetry, AR(1), Toeplitz, unstructured and others.
  • The residuals and random effects are normally distributed with constant variance (or the variance pattern you specify).
  • Subjects are independent of each other; the covariance structure describes correlation within a subject.
  • Missing observations are missing at random given the variables in the model.
  • Use REML to compare covariance structures with the same fixed effects; use ML to compare models with different fixed effects.
  • Model Dimension lists every fixed and random effect, its covariance structure and number of parameters.
  • Information Criteria: -2 (restricted) log likelihood, AIC and BIC; smaller is better when comparing structures.
  • Type III Tests of Fixed Effects: F tests with Satterthwaite denominator degrees of freedom.
  • Estimates of Fixed Effects: coefficients with t tests; the last category of each factor is the reference.
  • Estimates of Covariance Parameters: variances of random effects and residuals (and correlations such as AR1 rho), with Wald Z tests and confidence intervals.

A linear mixed model with a random intercept for each pupil showed that scores increased by 0.47 points per week, b = 0.47, SE = 0.09, t(29.0) = 5.51, p < .001; the between-pupil variance was 1.42 (SE = 0.57).

Syntax: MIXED score BY group WITH week /FIXED=group week /RANDOM=INTERCEPT week | SUBJECT(id) COVTYPE(UN) /PRINT=SOLUTION TESTCOV.


This page comes from OrcStat’s built-in help (the same text as in the app’s Help panel). To suggest a change, open an issue.