- Introduced by
- Maas & Hox (2004); Goldstein et al. (2018)
- Year
- 2004
- Type
- Robust multilevel regression
- Family
- Regression / GLM
What does it do?
Robust Hierarchical Linear Model (Robust HLM) keeps the nested, two-level structure of a standard hierarchical linear model but applies robust (sandwich-type) standard errors to the fixed effects.
The motivating evidence, from Maas & Hox (2004), concerns departures from normality in the Level-2 error distribution. In their simulations, the standard errors for second-level random effects were highly inaccurate under such departures, and robust standard errors were more reliable than asymptotic maximum-likelihood standard errors. The robust correction changes the standard errors, not the point estimates. The cited study does not establish that fixed-effect inference is protected in general.
The intuition behind the method
In a standard HLM, students are nested within schools and the model borrows strength across schools. Standard errors from REML or ML estimation rely on asymptotic theory and on distributional assumptions, so when those assumptions fail the reported uncertainty can be misleading. Robust HLM keeps the same model and point estimates, and replaces the model-based uncertainty for the fixed effects with a sandwich estimate built from the observed residuals. In the cited simulations, robust standard errors were more reliable than asymptotic maximum-likelihood standard errors. The same study found that a small Level-2 sample (50 or fewer) biased second-level standard errors.
History
Maas & Hox (2004) examined robustness in multilevel regression using simulation studies. They reported that a small Level-2 sample (50 or fewer) biased second-level standard errors, and that second-level random-effect standard errors were highly inaccurate when the Level-2 error distribution was not normal. In those simulations, robust standard errors were more reliable than asymptotic maximum-likelihood standard errors. The sandwich-type variance estimator is a general technique. The formal origin of that estimator and of the name 'Robust HLM' lies outside the cited sources.
When to use it
Choose Robust HLM when observations are clustered (for example, students in schools) and you need the multilevel structure, but you are not confident that the model-based standard errors are accurate, for instance because the Level-2 error distribution may be non-normal. The method is described here for continuous outcomes. Do not use it as a substitute for diagnosing the model: examine residual plots and the distribution of the random effects first. Avoid relying on it when the Level-2 sample is small; the cited simulation reports biased second-level standard errors when the Level-2 sample is 50 or fewer. The cited evidence does not give a validated minimum number of clusters for robust fixed-effect inference, so with a modest number of clusters, results should be interpreted cautiously.
Limitations and considerations
- The cited evidence concerns Level-2 error normality and the standard errors of second-level random effects; it does not show that the correction makes all standard errors accurate in small samples.
- When the Level-2 sample is small (50 or fewer in the cited simulation), second-level standard errors are biased. Robust standard errors were more reliable than the alternative in that study, but this does not guarantee accuracy at small Level-2 sizes.
- Fixed-effect and variance-component estimates still come from REML or ML and are therefore not changed by the correction. Any sensitivity of those estimates to a misspecified random-effects distribution remains.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Leaves the fixed-effect and variance-component estimates from REML or ML unchanged, so the substantive estimates are not altered by the correction.
- In the cited simulation study, robust standard errors were more reliable than asymptotic maximum-likelihood standard errors when the Level-2 error distribution was not normal.
- The sandwich form uses the observed residuals, so the uncertainty estimate does not depend entirely on the assumed error covariance being correct.
- Keeps the two-level interpretation and the fixed-effect coefficients of the standard model.
Applications
- Multilevel analyses in which the number of higher-level units is above the 50-unit level flagged in the cited simulation and the distribution of higher-level errors is in doubt.
- Clustered studies in which the researcher wants fixed-effect uncertainty that does not rely solely on model-based standard errors. Influential clusters should be checked separately, since the correction does not address them.
- Sensitivity checks that compare model-based and robust standard errors for the same multilevel fit, to see whether conclusions depend on distributional assumptions.
How it works
How it works
At Level 1, each individual observation y_ij within cluster j is modelled as a function of individual predictors x_ij plus a within-cluster residual e_ij. Intercepts and slopes can vary across clusters.
Formula
y_{ij} = \beta_{0j} + \beta_{1j}x_{ij} + e_{ij}At Level 2, the cluster-specific intercepts and slopes are explained by cluster-level predictors and random effects u_0j and u_1j, yielding the overall fixed effects gamma.
Formula
\beta_{0j} = \gamma_{00} + u_{0j},\quad \beta_{1j} = \gamma_{10} + u_{1j}The robust (sandwich) variance replaces the model-based covariance of the fixed effects with a form that uses the observed residual covariance, so it does not depend solely on the assumed error covariance being correct. It is intended to give more trustworthy standard errors when distributional assumptions are violated. The cited evidence concerns non-normal Level-2 errors.
Formula
\widehat{\text{Var}}(\hat{\gamma}) = (X^{\top}V^{-1}X)^{-1} X^{\top}V^{-1}\hat{\Sigma}V^{-1}X(X^{\top}V^{-1}X)^{-1}Parameters are estimated by REML or ML for the fixed effects and variance components. Robust standard errors are then computed in a post-estimation step using a Huber-White sandwich estimator, and the point estimates are left unchanged.
Hypothesis tests and confidence intervals for the fixed effects use the robust standard errors. The cited simulation study found that a small Level-2 sample (50 or fewer) biased second-level standard errors. It does not directly establish the accuracy of fixed-effect tests at any sample size, so the resulting tests should be read with that in mind.
Common pitfalls
- Treating the sandwich correction as a fix for a small number of clusters: with few clusters, robust standard errors may remain unreliable, and the cited evidence (50 or fewer Level-2 units) points to biased second-level standard errors in that range. The sources used here do not provide a tested remedy for this case.
- Confusing Robust HLM with robust regression (M-estimation). Robust HLM corrects the standard errors and keeps the estimates; M-estimation changes the estimates themselves. They address different problems.
- Assuming robust standard errors cover all violations: the cited robustness evidence concerns Level-2 error normality, so Level-1 and Level-2 residual and random-effect diagnostics are still needed.
- Ignoring influential clusters: the sandwich correction changes the uncertainty but does not stop a single outlying cluster from shifting the fixed-effect estimates, so cluster-level influence should be checked directly.
Frequently asked questions
Does Robust HLM change the coefficient estimates?
No. Robust (sandwich) standard errors leave the fixed-effect point estimates and the variance-component estimates from REML or ML unchanged. Only the standard errors, and therefore the confidence intervals and p-values, are corrected.
How many clusters do I need for robust standard errors to be reliable?
The cited simulation study (Maas & Hox, 2004) reports that a small Level-2 sample of 50 or fewer leads to biased second-level standard errors, and that robust standard errors were more reliable than asymptotic maximum-likelihood ones. It does not give a cut-off for the reliability of fixed-effect robust standard errors, so no validated minimum number of clusters can be stated. With a small number of clusters, treat robust p-values with caution.
What is the difference between Robust HLM and a standard Robust regression?
Standard robust regression (M-estimation) changes the estimation objective to down-weight outlying observations, altering the estimates. Robust HLM typically uses sandwich corrections that keep the REML estimates but correct the standard errors. They address different aspects: influence on estimates versus validity of inference.
Can I use Robust HLM if my outcome is binary or a count?
This page covers continuous outcomes only. Binary or count outcomes require models with a different likelihood, which the cited evidence does not address.
How do I implement this in R or Stata?
Support for robust or cluster-robust variance estimates in multilevel fits varies by software and model class. Consult the documentation of the package you use and confirm that the robust variance option applies to your specific model.
Related methods
Sources
Maas, C. J. M., & Hox, J. J. (2004). Robustness issues in multilevel regression analysis. Statistica Neerlandica, 58(2), 127–137.
Open DOI referenceHox, J. J. (2010). Multilevel Analysis: Techniques and Applications (2nd ed.). Routledge.
ISBN: 978-1848728462