A workers-comp analyst fits losses by claimant within 40 employers. Same industry, same coverage, but employers clearly differ. A linear mixed model lets you keep one fixed-effect coefficient per covariate while letting each employer have its own random intercept.
Why LMM exists. Ordinary least squares assumes independent residuals. Grouped data (claimants within employers, policies within agents, repeated measures within insured) violates that assumption. You can ignore grouping (biased SEs), add a fixed dummy per group (eats degrees of freedom, no shrinkage), or treat group as random (efficient, shrinks group estimates toward the population mean).
The marginal distribution is with . The fixed effects describe how the average group responds to covariates. The random effects describe how each group deviates from that average.
A typical LMM printout has four blocks:
Fixed effects read like ordinary least squares (OLS): means a one-unit increase in lifts predicted by 0.42, holding other covariates and the group fixed.
Common mistakes
- Comparing REML log-likelihoods across different fixed effects. REML likelihoods are functions of residual contrasts that depend on . Refit with ML, or you will compute an LRT of 0 changes you cannot interpret.
- Using a plain for the variance-component LRT. This doubles your false-positive rate. The boundary mixture halves the -value tail: at 5% becomes a critical value of 2.71 for the corrected test.
- Treating as a standard deviation. A printout of is variance. Group SD is . Skipping the square root makes random effects look ten times wider than they are.
Bottom line
- Linear mixed model (LMM): with , ; fixed are population effects, random are group deviations, and marginal variance is .
- Variance components and drive the intraclass correlation , the between-group share; high means strong within-group clustering.
- BLUPs shrink each group's raw residual mean toward zero by credibility factor ; shrinkage shrinks as grows.
- REML estimates variance components without bias from estimating ; use ML when comparing models with different fixed effects via likelihood ratio.
Exam shortcut
If the question asks for a variance ratio or "proportion of variation between groups," go straight to ; the answer is rarely more than two arithmetic steps. For any LRT on a random-effect variance, compute the naive -value and then halve it.
The full lesson (about 2,090 words, 14 min read) adds 2 worked examples, all 6 common mistakes, a self-check, free in the app.
Learning objectives
- B3
Browse all free MAS-II lessons or jump into free MAS-II practice questions.