robustlmm : An R Package for Robust Estimation of Linear Mixed-Effects Models

Koller, Manuel (2016). robustlmm : An R Package for Robust Estimation of Linear Mixed-Effects Models. Journal of statistical software, 75(6), pp. 1-24. UCLA Statistics 10.18637/jss.v075.i06

Koller JStatSoftw 2016.pdf - Published Version
Available under License Creative Commons: Attribution (CC-BY).

Download (1MB) | Preview

As any real-life data, data modeled by linear mixed-effects models often contain out- liers or other contamination. Even little contamination can drive the classic estimates far away from what they would be without the contamination. At the same time, datasets that require mixed-effects modeling are often complex and large. This makes it diffi- cult to spot contamination. Robust estimation methods aim to solve both problems: to provide estimates where contamination has only little influence and to detect and flag contamination. We introduce an R package, robustlmm, to robustly fit linear mixed-effects models. The package’s functions and methods are designed to closely equal those offered by lme4, the R package that implements classic linear mixed-effects model estimation in R. The robust estimation method in robustlmm is based on the random effects contamination model and the central contamination model. Contamination can be detected at all lev- els of the data. The estimation method does not make any assumption on the data’s grouping structure except that the model parameters are estimable. robustlmm supports hierarchical and non-hierarchical (e.g., crossed) grouping structures. The robustness of the estimates and their asymptotic efficiency is fully controlled through the function interface. Individual parts (e.g., fixed effects and variance components) can be tuned independently. In this tutorial, we show how to fit robust linear mixed-effects models using robustlmm, how to assess the model fit, how to detect outliers, and how to compare different fits.

Item Type:

Journal Article (Original Article)


04 Faculty of Medicine > Pre-clinic Human Medicine > Institute of Social and Preventive Medicine (ISPM)

UniBE Contributor:

Koller, Manuel


600 Technology > 610 Medicine & health
300 Social sciences, sociology & anthropology > 360 Social problems & social services




UCLA Statistics




Doris Kopp Heim

Date Deposited:

07 Dec 2016 22:37

Last Modified:

22 Jun 2017 14:04

Publisher DOI:


Uncontrolled Keywords:

robust statistics, mixed-effects model, hierarchical model, ANOVA, R, crossed, random effect




Actions (login required)

Edit item Edit item
Provide Feedback