Concept Architecture
Concept
Theoretically, Hierarchical Model is a statistical modelling framework that represents data with nested or multilevel structures by allowing parameters to vary across different levels of a hierarchy. It is founded on probability theory and multilevel modelling, recognising that observations within the same higher-level unit are correlated and that variation exists both within and between groups. In health economics, hierarchical models are widely used to analyse patients nested within hospitals, repeated observations within individuals and geographical variation in healthcare delivery.
Mathematically, hierarchical models specify separate equations for each level of the data hierarchy, combining fixed effects that describe population-average relationships with random effects that capture group-specific deviations. Parameters are estimated jointly using maximum likelihood, restricted maximum likelihood or Bayesian methods. Variance components quantify the contribution of each hierarchical level to the total variability.
In practice, hierarchical models are implemented whenever observations are clustered or nested. They are used in health economics to estimate provider effects, evaluate regional variation, analyse multicentre clinical trials and model longitudinal healthcare costs and outcomes while appropriately accounting for within-group correlation.
Purpose
Used to model nested data structures, account for within-group correlation, estimate variation across hierarchical levels and improve statistical inference in health economic analyses.
Mathematical Formulae
Primary Formula
y?? = ?? + ?X?? + u? + �??
where:
- y?? = outcome for individual i in group j
- ?? = overall intercept
- ? = vector of fixed-effect coefficients
- X?? = explanatory variables
- u? = group-level random effect
- �?? = individual-level residual error
Supporting Formulae
Random effects:
u? ~ N(0, �?�)
Residual errors:
�?? ~ N(0, �?�)
Variance decomposition:
Var(y) = �?� + �?�
Intraclass correlation coefficient:
ICC = �?� � (�?� + �?�)
Related Mathematical Methods
- Multilevel Models
- Mixed-Effects Models
- Random Effects Models
- Fixed Effects Models
- Bayesian Hierarchical Models
- Maximum Likelihood Estimation
- Restricted Maximum Likelihood
Example
A health economist evaluates annual healthcare expenditure for patients treated in 80 hospitals. Patients are nested within hospitals, creating correlated observations. A hierarchical model estimates the effect of patient age and treatment while allowing each hospital to have its own random intercept. The estimated intraclass correlation coefficient is 0.18, indicating that 18% of the variation in healthcare costs is attributable to differences between hospitals.
Excel Implementation
| Function | Example Formula | Health Economics Application |
|---|---|---|
| AVERAGEIFS | =AVERAGEIFS(C:C,A:A,A2) | Calculate group-level means |
| VAR.S | =VAR.S(B2:B101) | Estimate variance components |
| MMULT | =MMULT(A2:D5,F2:I5) | Matrix calculations for hierarchical estimation |
| MINVERSE | =MINVERSE(A2:D5) | Matrix inversion for variance estimation |
| Solver | Maximise log-likelihood | Estimate hierarchical model parameters |
VBA (Optional)
Automate hierarchical model estimation by calculating variance components, fitting mixed-effects models and producing group-level summary reports.
Sources
- Gelman A, Hill J. Data Analysis Using Regression and Multilevel/Hierarchical Models.
- Raudenbush SW, Bryk AS. Hierarchical Linear Models. 2nd ed.
- Snijders TAB, Bosker RJ. Multilevel Analysis. 2nd ed.
- Goldstein H. Multilevel Statistical Models. 4th ed.
- Briggs AH, Claxton K, Sculpher MJ. Decision Modelling for Health Economic Evaluation.
Related Concepts (3)
Library
Publications
1
Statistical Analysis of Cost-Effectiveness Data — Willan & Briggs, 1st Edition ed., 2006 (John Wiley & Sons)
A synthesis of statistical methods for analysing cost-effectiveness data, including net-benefit regression, confidence intervals for the ICER, cost-effectiveness acceptability curves, and covariate adjustment. Part of the Wiley Statistics in Practice series.
BookView source →
Frequently Asked Questions (6)
What is a hierarchical model?
A modelling approach representing nested data, such as patients within hospitals, allowing effects to vary at each level while borrowing statistical strength.
Source: Goldstein 2011
How does a hierarchical model represent nested data?
A hierarchical model represents data that come in nested layers, such as patients grouped within hospitals, by allowing effects to vary at each level rather than treating every observation as independent. It estimates variation both between individuals and between the groups they belong to, and it lets groups borrow strength from one another, so a small group's estimate is pulled toward the overall average where its own data are sparse. This gives more stable estimates and correctly reflects the layered structure. Modelling variation at each nested level is its purpose. Kirkwood and Sterne (2003) describe such models.
Source: Kirkwood & Sterne 2003
How does a hierarchical model work?
A hierarchical model works by including random effects for the higher-level units, so that, for example, each hospital has its own random deviation from the overall average, and the model estimates both the fixed effects of predictors and the variation between units at each level. This accounts for within-group correlation and allows information to be shared across groups. So a hierarchical model works by modelling variation at multiple levels through random effects, which handles the nested structure of the data, estimates how much outcomes vary between groups, and borrows strength so that estimates for small groups are informed by the overall pattern, improving their stability.
Source: Goldstein 2011
Why are hierarchical models used?
Hierarchical models are used because nested data violate the assumption of independence, since observations within the same group are correlated, and ignoring this leads to incorrect standard errors; hierarchical models account for the structure, giving valid inference. They also allow variation at each level to be examined and strength to be borrowed across groups. So hierarchical models are used to analyse nested data correctly and informatively, since they handle the within-group correlation, quantify variation at different levels, and produce more stable estimates for small groups, which is why they are standard for data organised in levels, such as patients within clinics or measurements within individuals.
Source: Goldstein 2011
What does borrowing strength mean in a hierarchical model?
Borrowing strength in a hierarchical model means that the estimate for each group is informed by that group's own data together with the data from other groups, through the shared distribution of the random effects, so that estimates for small or noisy groups are pulled toward the overall average, improving their stability. So borrowing strength refers to the way a hierarchical model combines group-specific and overall information, shrinking unreliable individual-group estimates toward the general pattern, which yields more stable and often more accurate estimates for groups with little data than analysing each group separately would, a key advantage of the multilevel approach.
Source: Goldstein 2011
What are examples of hierarchical models?
Examples of hierarchical models include random intercept models, where each group has its own baseline level; random slope models, where the effect of a predictor also varies between groups; and models with more than two levels, such as patients within wards within hospitals. They apply to continuous, binary, and other outcomes through generalised forms. So hierarchical models encompass a range of specifications for nested data, from simple random intercepts to complex multilevel structures with varying effects, all sharing the feature of modelling variation at multiple levels, which allows them to be adapted to the particular hierarchy and outcome type of the data being analysed.
Source: Goldstein 2011
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 16 Dec 2025
Content version: 1.0.0
Canonical Identity
- Persistent URI
- https://healtheconomics.wiki/concept/hierarchical-model
- Term code
- HE-ES-SA-077
Stable URI · Machine-readable · Resolvable · CC BY 4.0