Multilevel Modeling
Multilevel (Hierarchical) Linear Modeling · Also known as: HLM, mixed-effects models, random effects models, MLM
Multilevel modeling (also called hierarchical linear modeling, mixed-effects modeling) is a statistical framework for analyzing data organized in nested or clustered structures—students within schools, patients within hospitals, repeated measures within individuals. Developed by Bryk and Raudenbush (1992), it accounts for dependency among observations and partitions variance into levels (within-cluster and between-cluster), enabling valid inference and revealing context effects. Essential in education, medicine, organizational research, and any field where data have natural hierarchies.
Read the full method
Sign in with a free account to read this section.
Method map
The neighbourhood of related methods — select a node to explore.
+39 more
When to use it
Use multilevel modeling whenever observations are nested: students in schools (education), patients in hospitals (medicine), employees in companies (organizational research), time points in individuals (longitudinal studies), repeated measures in subjects (clinical trials), family members in families (family studies). Ignore clustering only if ICC < 0.02 (negligible clustering). Also use when estimating cluster-specific predictions (e.g., risk-adjusted hospital mortality); random effects shrink estimates toward the grand mean, correcting for sampling variability.
Strengths & limitations
- Accounts for nonindependence: yields correct standard errors and confidence intervals despite clustering; avoids Type I error inflation.
- Partitions variance: quantifies within-cluster and between-cluster variation, revealing context effects and informing policy (e.g., school effects on achievement).
- Random effects as predictions: empirical Bayes estimates of cluster-specific intercepts/slopes are more stable than fixed effects, useful for risk adjustment and ranking.
- Flexible for unbalanced designs: varying cluster sizes and missing data handled naturally; does not require balanced designs.
- Handles multiple levels: three or more levels (e.g., students within schools within districts) estimated in single model.
- Requires adequate level 2 sample size: few clusters (< 10–20) produce unstable random effect estimates; fewer than 30 clusters increases uncertainty.
- Assumes cluster membership defined a priori: cross-classified designs (students in both schools and neighborhoods) require cross-classified models, more complex to fit.
- Asymptotic theory: standard errors and p-values are approximate; reliability decreases with small level 2 sample size. Bootstrap or permutation tests provide alternatives.
- Model specification challenging: deciding which effects are fixed vs random, and at what level, requires careful consideration. Misspecification (e.g., omitted random slopes) yields biased fixed effects.
- Assumes normally distributed random effects; violations at level 2 may yield biased estimates; robust methods or model checking (residual plots) help.
Frequently asked
What is the intraclass correlation (ICC), and why does it matter?
The intraclass correlation (ICC) is the correlation between observations in the same cluster; equivalently, the proportion of total variance attributable to clustering. ICC = between-cluster variance / total variance. ICC = 0 means no clustering (all variation within clusters); ICC = 1 means complete clustering (all variation between clusters). ICC > 0.05 typically justifies multilevel analysis. Small ICC (0.01–0.05) means clusters are similar, but clustering still inflates standard errors if ignored. Rules of thumb: ICC > 0.10 strong clustering, 0.05–0.10 moderate, < 0.05 weak. Calculate ICC after fitting unconditional model (no predictors) to assess baseline clustering.
What is the difference between fixed effects and random effects?
Fixed effects are average relationships across clusters (e.g., the average effect of age on outcome across schools). Random effects are cluster-specific deviations from the average (e.g., how each school's age effect differs from the grand mean). A random intercept allows the baseline outcome to differ by cluster (each school has its own intercept). A random slope allows the effect of a predictor to differ by cluster (each school's effect of age differs). Include random effects if clusters differ substantively in the effect; include fixed effects if the effect is conceptually the same across clusters. Random effect variances quantify heterogeneity; large variance indicates effects differ substantially.
How do I choose between REML and ML estimation?
REML (Restricted Maximum Likelihood) is preferred for comparing random effects models (e.g., comparing random slopes models); it produces unbiased variance component estimates. ML (Maximum Likelihood) is preferred for comparing fixed effects (especially when comparing non-nested models) and for likelihood ratio tests of fixed effects. With large samples, REML and ML estimates converge. With small samples and few level 2 clusters, REML is more reliable. Always report which method you used; results can differ, especially with small samples.
What is grand-mean centering vs group-mean centering?
Centering transforms predictors to improve interpretation and numerical stability. Grand-mean centering (subtract overall mean) centers level 1 predictors around the global mean; the intercept represents outcome when the predictor equals the grand mean. Group-mean centering (subtract cluster mean) centers level 1 predictors around each cluster's mean; separates within-cluster and between-cluster effects. For example, centering student-level socioeconomic status (SES) at school mean isolates the within-school effect of SES on achievement; the cluster mean (school-level SES) becomes a level 2 predictor, representing school composition effect. Grand-mean centering is default; group-mean centering used when distinguishing within vs between effects theoretically important.
Sources
- Bryk, A. S., & Raudenbush, S. W. (1992). Hierarchical Linear Models: Applications and Data Analysis Methods. SAGE Publications. DOI: 10.2307/2075823 ↗
- Goldstein, H. (2011). Multilevel Statistical Models (4th ed.). Wiley-Blackwell. DOI: 10.1002/9780470973394 ↗
- Shrout, P. E., & Fleiss, J. L. (1979). Intraclass correlations: Uses in assessing rater reliability. Psychological Bulletin, 86(2), 420–428. DOI: 10.1037/0033-2909.86.2.420 ↗
How to cite this page
ScholarGate. (2026, June 4). Multilevel (Hierarchical) Linear Modeling. ScholarGate. https://scholargate.app/en/research-statistics/multilevel-modeling
Which method?
Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.
- Analysis of Variance (ANOVA)Research Statistics↔ compare
- Logistic RegressionResearch Statistics↔ compare
- Structural Equation ModelingResearch Statistics↔ compare