- Introduced by
- Richardson & Welsh (robust REML); Koller (robustlmm implementation)
- Year
- 2016
- Type
- Robust linear mixed-effects model
What does it do?
The robust mixed model is a linear mixed-effects model for panel and repeated-measures data that is fitted in a way that limits the influence of outliers.
Its structure is the ordinary Gaussian mixed model, and the robustness comes from bounded-influence estimating equations. The estimation approach builds on the robust restricted maximum likelihood of Richardson and Welsh (1995) and on the robustlmm implementation described by Koller (2016).
The intuition behind the method
A standard mixed model lets every observation pull on the fixed and random effects with full force, so a handful of extreme points can distort the estimated slopes and variance components. The robust version caps how much any single residual can influence the fit: large residuals are downweighted rather than trusted at face value. The model still respects the clustered structure, with observations nested within subjects, panels, or repeated measurements. The estimates therefore lean on the bulk of well-behaved data rather than on the contaminating tail.
History
Richardson and Welsh (1995) introduced definitions of robust maximum likelihood and robust restricted maximum likelihood for mixed linear models, applied them to data from biological and chemical experiments, and examined their small-sample behaviour by simulation. Koller (2016) described the robustlmm R package, which fits robust linear mixed-effects models with functions designed to mirror those of lme4, presented through a tutorial on fitting, assessing, and comparing such models.
When to use it
Use the robust mixed model when the outcome is continuous, the data have a grouped structure, and you suspect that outliers or heavy-tailed residuals would distort an ordinary mixed model. The grouping may be hierarchical, as in panels, repeated measurements or nested designs, or non-hierarchical (crossed), since robustlmm supports both. It is most useful when a few observations or clusters look extreme and you want the fixed effects and variance components to be less sensitive to them. Do not use it when the data are clean and an ordinary linear mixed model fits the diagnostics, because the robust fit then trades some efficiency for protection that is not needed. It is also a poor choice when there is no grouping (robust regression or OLS is more appropriate) or when the sample is too small to estimate the variance components with any stability.
Limitations and considerations
- The reference model is still Gaussian in its random effects and errors, so the method protects against contamination but is not a fully distribution-free model.
- Robustness and asymptotic efficiency are traded off through tuning, so a more protective fit generally gives up some efficiency when the data are clean.
- Small-sample behaviour is a genuine concern: the Richardson and Welsh study examines small-sample properties by simulation, and the variance components can be hard to estimate when the sample is small.
- Fitting is more involved than an ordinary mixed model, and the sources cited here describe an R implementation, so availability in other software is not established by them.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Bounded influence means that a few extreme residuals cannot dominate the fixed-effect estimates, unlike in an ordinary linear mixed model fitted by Gaussian likelihood.
- Robustness extends to the variance components as well as the fixed effects, because the robust restricted maximum likelihood approach applies the same bounded-influence logic to both.
- The familiar mixed-model structure is retained, so the random-effects specification carries over; the robustlmm package is described as designed to mirror the interface of lme4.
- The robustness and efficiency of the fixed and variance parts can be tuned separately, and contamination can be flagged at several levels of the data.
Applications
- Longitudinal and repeated-measures studies in which a few subjects follow extreme trajectories.
- Panel data with occasional contaminating observations.
- Nested designs, such as measurements within subjects or students within schools, where non-normal residuals may affect ordinary mixed-model inference.
- Designs with crossed (non-hierarchical) random effects, for which robustlmm also provides robust estimation.
How it works
How it works
The outcome y for observation j in cluster i is written as fixed effects Xβ plus cluster-specific random effects Z b_i plus an error term ε. The random effect b_i is the deviation of cluster i from the population mean and has covariance Σ_b, while ε is the within-cluster error. The reference specification assumes Gaussian random effects and errors, as the model formula states. Robustness does not change this structure; it changes how the parameters are estimated.
Formula
y_{ij} = X_{ij}\beta + Z_{ij} b_i + \varepsilon_{ij}, \quad b_i \sim N(0,\,\Sigma_b), \ \varepsilon_{ij} \sim N(0,\,\sigma^2)Rather than maximising the Gaussian likelihood directly, the coefficients solve estimating equations in which a bounded function ψ, defined as the derivative of a loss function ρ, takes the place of the raw residuals. Each residual is divided by an estimate of the residual scale σ̂ before ψ is applied, which limits how far any single extreme observation can move the estimates. The tuning settings of ψ control the balance between robustness and asymptotic efficiency: stronger protection against outliers costs some efficiency when the data are clean. Fixed effects and variance components can be tuned independently, so the two parts can be given different levels of protection, and the chosen settings should be reported with the results. The variance components are estimated with a robust restricted maximum likelihood analogue, following the approach of Richardson and Welsh (1995).
Formula
\sum_{ij} \psi\!\left(\frac{r_{ij}}{\hat{\sigma}}\right) x_{ij} = 0, \quad \psi = \rho'Common pitfalls
- Assuming that the robust fit removes the need for model checking; the structure still assumes the linear form and the stated random effects, so the specification should still be examined.
- Inspecting only residuals for outliers: the robustlmm source notes that contamination can occur at every level of the data, so random effects should be checked as well.
- Reading the variance-component estimates as reliable when the sample is small or when a large share of observations is flagged as outliers; in such cases they call for particular caution.
- Choosing the tuning settings after seeing which result is most favourable; because fixed effects and variance components can be tuned independently, the settings should be fixed in advance and their effect on the results reported.
- Treating a robust fit as a substitute for investigating why the outliers exist in the first place.
Frequently asked questions
How is this different from an ordinary linear mixed model?
The model structure is the same: fixed effects plus cluster-specific random effects. The difference lies in estimation. The robust version uses bounded-influence estimating equations that downweight extreme residuals, so a few outlying points have less influence on the fixed effects and the variance components.
Does it require normally distributed errors?
The reference model in the mechanics section is Gaussian, so normality remains part of the model specification. The robust estimation limits the influence of contaminated observations, but it does not turn the model into a distribution-free one. Diagnostics should still be checked for strongly non-normal data.
What if my sample is small?
Small samples make the variance components hard to estimate, and the fit may fail to converge. Check convergence and the stability of the variance estimates, and consider whether a simpler model is more defensible for the data available.
What if many of my observations look like outliers?
When many observations are flagged, the robust fit should be read with caution rather than on its own. Examine which observations are flagged, how sensitive the results are to the tuning settings, and whether the outliers reflect a real subgroup in the data.
Related methods
Sources
Koller, M. (2016). robustlmm: An R Package for Robust Estimation of Linear Mixed-Effects Models. Journal of Statistical Software, 75(6), 1-24.
Open DOI referenceRichardson, A. M. & Welsh, A. H. (1995). Robust Restricted Maximum Likelihood in Mixed Linear Models. Biometrics, 51(4), 1429-1439.
Open DOI reference