- Introduced by
- Stephen Raudenbush & Anthony Bryk
- Year
- 2002
- Type
- Multilevel regression for hierarchically nested educational data
- Family
- Multilevel models
What does it do?
Educational hierarchical linear modeling (HLM) is a multilevel regression framework for data in which students are nested within classrooms and classrooms within schools.
Formalized for education by Raudenbush and Bryk, it lets the intercept and slopes of a student-level regression vary across schools, so that student-level relationships, school-level relationships, and cross-level interactions are estimated together. Unlike single-level regression applied to clustered data, it accounts for the dependence among students who share a school, which affects the standard errors.
The intuition behind the method
Students in the same classroom share a teacher, a curriculum, and a peer group, so their outcomes are more alike than two students drawn at random. Pretending these observations are independent — as ordinary regression does — makes us overconfident. HLM instead fits a regression line inside each school, then treats the collection of school-specific intercepts and slopes as themselves varying quantities to be explained by school characteristics. It asks two linked questions at once: within a school, how does a student's background relate to achievement, and across schools, what makes some schools have higher average achievement or a steeper background-achievement relationship?
History
Bryk and Raudenbush's 1987 Psychological Bulletin paper introduced a two-stage hierarchical model for assessing change, fitted to growth data. The framework was later set out in book form, and the second edition by Raudenbush and Bryk (2002) is the reference cited here for the educational application, including school-effects questions in which students are nested within schools.
When to use it
Choose educational HLM when outcomes are measured on individuals who belong to higher-level units, such as students in classrooms or schools, and the question concerns either the clustering itself or relationships at more than one level. Typical cases are school-effects studies, tests of whether a student-level gradient such as the SES–achievement relationship differs across schools, and cross-level questions such as whether a school characteristic moderates that gradient. Do not use it simply because data are grouped: it needs enough higher-level units to estimate level-2 variances, and a small intraclass correlation alone does not settle the matter when clusters are large, so the decision should rest on the design and the level-2 questions. When there are too few clusters for reliable variance estimation, consider alternatives that target only the fixed effects, such as cluster-robust standard errors, generalized estimating equations, or cluster fixed effects, accepting that they do not estimate between-school variation. Before retaining a random slope, check whether the data support it, for example by comparing models with and without it and inspecting the estimated slope variance and the convergence of the fit. Growth modeling is a different case, where the nesting is occasions within students rather than students within schools; the two can be combined in three-level models.
Limitations and considerations
- Reliable estimation of level-2 variances requires a reasonably large number of higher-level units; with few clusters, variance components are poorly estimated and tests can be anticonservative.
- Inference depends on normality of the random effects and residuals and on correct specification of which coefficients vary across levels.
- Estimates are sensitive to the centering choice for level-1 predictors, which silently redefines intercepts and cross-level effects.
- Like all observational multilevel models, it describes associations; school 'effects' are not causal without a design that addresses selection of students into schools.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Models the clustering explicitly, so standard errors and tests are far less biased than in single-level regression when the number of clusters is adequate and the random-effects structure is correctly specified.
- Partitions outcome variance into within- and between-school components, directly quantifying how much schools matter.
- Estimates cross-level interactions, answering whether the effect of a student characteristic depends on a school characteristic.
- Borrows strength across schools via empirical Bayes shrinkage, stabilizing estimates for small schools while preserving heterogeneity.
Applications
- Estimating school and teacher effects on student achievement net of student intake characteristics.
- Testing whether the socioeconomic gradient in achievement is steeper in some schools than others (a cross-level interaction).
- Evaluating cluster-randomized educational interventions where whole schools or classrooms are assigned to conditions.
- Decomposing variance in attainment into student, classroom, and school components for educational policy analysis.
- Modeling international assessment data (PISA, TIMSS) in which students are nested in schools nested in countries.
How it works
How it works
The Level-1 (within-school) model regresses each student's outcome Y on student-level predictors X — for example prior achievement or socioeconomic status — yielding a school-specific intercept β₀ⱼ and slope β₁ⱼ plus a within-school residual. Predictors are typically group-mean or grand-mean centered, a choice that changes the meaning of the intercept and of cross-level effects.
Formula
Y_{ij} = \beta_{0j} + \beta_{1j}X_{ij} + r_{ij},\quad r_{ij}\sim N(0,\sigma^2)The Level-2 (between-school) model treats each school's intercept and slope as outcomes explained by school-level predictors W, such as school sector, mean SES, or leadership measures. The γ terms are fixed effects; u₀ⱼ and u₁ⱼ are random effects capturing how much schools deviate from the average intercept and average slope after accounting for W.
Formula
\beta_{0j} = \gamma_{00} + \gamma_{01}W_j + u_{0j},\quad \beta_{1j} = \gamma_{10} + \gamma_{11}W_j + u_{1j},\quad \begin{pmatrix}u_{0j}\\u_{1j}\end{pmatrix}\sim N\!\left(\mathbf{0},\begin{pmatrix}\tau_{00}&\tau_{01}\\\tau_{01}&\tau_{11}\end{pmatrix}\right)In an unconditional model, the intraclass correlation ρ is the share of residual outcome variance that lies between schools rather than within them. It quantifies how much clustering there is, and therefore how far ordinary regression would understate standard errors. It is usually the first diagnostic reported before predictors are added.
Formula
\rho = \dfrac{\tau_{00}}{\tau_{00} + \sigma^2}Substituting the Level-2 equations into the Level-1 equation gives one combined mixed model. Its fixed part contains the γ coefficients, including the cross-level interaction γ₁₁ between a school characteristic and a student predictor. Its random part contains u₀ⱼ, u₁ⱼXᵢⱼ, and rᵢⱼ. This combined form is what estimation software fits, commonly by restricted maximum likelihood, although many routines also offer full maximum likelihood.
Formula
Y_{ij} = \gamma_{00} + \gamma_{01}W_j + \gamma_{10}X_{ij} + \gamma_{11}W_jX_{ij} + u_{0j} + u_{1j}X_{ij} + r_{ij}Common pitfalls
- Conflating within-school and between-school relationships when a predictor is left grand-mean centered, producing an uninterpretable blend of two distinct effects.
- Fitting random slopes the data cannot support, leading to non-convergence or a singular random-effects covariance matrix.
- Ignoring a third level (e.g., schools within districts) and absorbing its variance into school random effects, understating uncertainty.
- Interpreting a small intraclass correlation as 'no clustering' even though, with large clusters, modest ICCs still badly distort single-level standard errors.
Frequently asked questions
How does educational HLM relate to the educational growth curve model?
They are two applications of the same multilevel machinery, distinguished by what is nested in what. HLM here nests students within schools to study school effects and cross-level interactions at one time point; the growth curve model nests repeated occasions within students to study change over time. The two are often combined into three-level models of occasions within students within schools. See the related Educational Growth Curve Modeling entry.
How many schools do I need?
There is no single threshold. Variance components at level 2 are unreliable with few clusters: estimates tend to be biased and tests anticonservative. Around 30 schools is sometimes quoted as a rough minimum, but more clusters are generally needed for dependable level-2 variance estimates, particularly with random slopes or cross-level interactions. Consult sample-size and power guidance for your specific design. The number of students per school matters less for fixed effects but more for estimating within-school slopes precisely.
Should I center level-1 predictors at the group mean or the grand mean?
It depends on the question. Group-mean (within-cluster) centering cleanly separates the within-school slope from the between-school relationship and is preferred when contextual effects are of interest. Grand-mean centering keeps a single interpretable scale and is common when the level-1 predictor is a control. The choice is substantive, not cosmetic, because it changes what the intercept and cross-level interactions mean.
Related methods
Sources
Raudenbush, S. W., & Bryk, A. S. (2002). Hierarchical Linear Models: Applications and Data Analysis Methods (2nd ed.). Sage.
ISBN: 9780761919049Bryk, A. S., & Raudenbush, S. W. (1987). Application of hierarchical linear models to assessing change. Psychological Bulletin, 101(1), 147–158.
Open DOI reference