IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v075i06.html
   My bibliography  Save this article

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

Author

Listed:
  • Koller, Manuel

Abstract

As any real-life data, data modeled by linear mixed-effects models often contain outliers 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 difficult 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 levels 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.

Suggested Citation

  • Koller, Manuel, 2016. "robustlmm: An R Package for Robust Estimation of Linear Mixed-Effects Models," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 75(i06).
  • Handle: RePEc:jss:jstsof:v:075:i06
    DOI: http://hdl.handle.net/10.18637/jss.v075.i06
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v075i06/v75i06.pdf
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v075i06/robustlmm_2.1.tar.gz
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v075i06/v75i06.R
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v075.i06?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Bates, Douglas & Mächler, Martin & Bolker, Ben & Walker, Steve, 2015. "Fitting Linear Mixed-Effects Models Using lme4," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 67(i01).
    2. Copt, Samuel & Victoria-Feser, Maria-Pia, 2006. "High-Breakdown Inference for Mixed Linear Models," Journal of the American Statistical Association, American Statistical Association, vol. 101, pages 292-300, March.
    3. Geraci, Marco, 2014. "Linear Quantile Mixed Models: The lqmm Package for Laplace Quantile Regression," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 57(i13).
    4. Stahel, Werner A., 1987. "Estimation of a covariance matrix with location: Asymptotic formulas and optimal B-robust estimators," Journal of Multivariate Analysis, Elsevier, vol. 22(2), pages 296-312, August.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Field, Andy Peter Professor & Wilcox, Rand R., 2017. "Robust statistical methods: a primer for clinical psychology and experimental psychopathology researchers," OSF Preprints v3nz4, Center for Open Science.
    2. Yu, Dalei & Ding, Chang & He, Na & Wang, Ruiwu & Zhou, Xiaohua & Shi, Lei, 2019. "Robust estimation and confidence interval in meta-regression models," Computational Statistics & Data Analysis, Elsevier, vol. 129(C), pages 93-118.
    3. Alberto Corral-Lopez & Alexander Kotrschal & Alexander Szorkovszky & Maddi Garate-Olaizola & James Herbert-Read & Wouter Bijl & Maksym Romenskyy & Hong-Li Zeng & Severine Denise Buechel & Ada Fontrodo, 2023. "Evolution of schooling drives changes in neuroanatomy and motion characteristics across predation contexts in guppies," Nature Communications, Nature, vol. 14(1), pages 1-15, December.
    4. Paolo Girardi & Silvia Lanfranchi & Libera Ylenia Mastromatteo & Massimo Stafoggia & Sara Scrimin, 2021. "Association between Exposure to Particulate Matter during Pregnancy and Multidimensional Development in School-Age Children: A Cross-Sectional Study in Italy," IJERPH, MDPI, vol. 18(21), pages 1-13, November.
    5. Fitzpatrick, Trevor & Mues, Christophe, 2021. "How can lenders prosper? Comparing machine learning approaches to identify profitable peer-to-peer loan investments," European Journal of Operational Research, Elsevier, vol. 294(2), pages 711-722.
    6. Alexander Robitzsch, 2020. "L p Loss Functions in Invariance Alignment and Haberman Linking with Few or Many Groups," Stats, MDPI, vol. 3(3), pages 1-38, August.
    7. Yuxiao Chen & Densil Cabrera & Manuj Yadav, 2023. "Finding the Seat With the Best View: Stage-View Preference for Orchestra," SAGE Open, , vol. 13(2), pages 21582440231, June.
    8. Holger Zimmerman & Deryk Tolman & Martin Reichard, 2023. "Low incidence of cannibalism among brood parasitic cuckoo catfish embryos," Behavioral Ecology, International Society for Behavioral Ecology, vol. 34(4), pages 521-527.
    9. Emi Tanaka, 2020. "Simple outlier detection for a multi‐environmental field trial," Biometrics, The International Biometric Society, vol. 76(4), pages 1374-1382, December.
    10. Jukka Sundvall & Benjamin James Dyson, 2022. "Breaking the bonds of reinforcement: Effects of trial outcome, rule consistency and rule complexity against exploitable and unexploitable opponents," PLOS ONE, Public Library of Science, vol. 17(2), pages 1-19, February.
    11. Mmakgabo Pinkie Segodi & Athenia Bongani Sibindi, 2022. "Determinants of Life Insurance Demand: Empirical Evidence from BRICS Countries," Risks, MDPI, vol. 10(4), pages 1-14, April.
    12. Monica E. Ellwood-Lowe & Susan Whitfield-Gabrieli & Silvia A. Bunge, 2021. "Brain network coupling associated with cognitive performance varies as a function of a child’s environment in the ABCD study," Nature Communications, Nature, vol. 12(1), pages 1-14, December.
    13. Özgür Asar & David Bolin & Peter J. Diggle & Jonas Wallin, 2020. "Linear mixed effects models for non‐Gaussian continuous repeated measurement data," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 69(5), pages 1015-1065, November.
    14. Mariam M. Elgendi & Sherry H. Stewart & Danika I. DesRoches & Penny Corkum & Raquel Nogueira-Arjona & S. Hélène Deacon, 2022. "Division of Labour and Parental Mental Health and Relationship Well-Being during COVID-19 Pandemic-Mandated Homeschooling," IJERPH, MDPI, vol. 19(24), pages 1-34, December.
    15. Stephane Heritier & Maria-Pia Victoria-Feser, 2018. "Discussion of “The power of monitoring: how to make the most of a contaminated multivariate sample” by Andrea Cerioli, Marco Riani, Anthony C. Atkinson and Aldo Corbellini," Statistical Methods & Applications, Springer;Società Italiana di Statistica, vol. 27(4), pages 595-602, December.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Sara Pereira & Flávio Bastos & Carla Santos & José Maia & Go Tani & Leah E. Robinson & Peter T. Katzmarzyk, 2022. "Variation and Predictors of Gross Motor Coordination Development in Azorean Children: A Quantile Regression Approach," IJERPH, MDPI, vol. 19(9), pages 1-13, April.
    2. Xiaoming Lu & Zhaozhi Fan, 2020. "Generalized linear mixed quantile regression with panel data," PLOS ONE, Public Library of Science, vol. 15(8), pages 1-16, August.
    3. JANSSENS, Jochen & DE CORTE, Annelies & SÖRENSEN, Kenneth, 2016. "Water distribution network design optimisation with respect to reliability," Working Papers 2016007, University of Antwerp, Faculty of Business and Economics.
    4. Raymond Hernandez & Elizabeth A. Pyatak & Cheryl L. P. Vigen & Haomiao Jin & Stefan Schneider & Donna Spruijt-Metz & Shawn C. Roll, 2021. "Understanding Worker Well-Being Relative to High-Workload and Recovery Activities across a Whole Day: Pilot Testing an Ecological Momentary Assessment Technique," IJERPH, MDPI, vol. 18(19), pages 1-17, October.
    5. Christopher Hassall & Michael Nisbet & Evan Norcliffe & He Wang, 2024. "The Potential Health Benefits of Urban Tree Planting Suggested through Immersive Environments," Land, MDPI, vol. 13(3), pages 1-12, February.
    6. Jie Zhao & Ji Chen & Damien Beillouin & Hans Lambers & Yadong Yang & Pete Smith & Zhaohai Zeng & Jørgen E. Olesen & Huadong Zang, 2022. "Global systematic review with meta-analysis reveals yield advantage of legume-based rotations and its drivers," Nature Communications, Nature, vol. 13(1), pages 1-9, December.
    7. F J Heather & D Z Childs & A M Darnaude & J L Blanchard, 2018. "Using an integral projection model to assess the effect of temperature on the growth of gilthead seabream Sparus aurata," PLOS ONE, Public Library of Science, vol. 13(5), pages 1-19, May.
    8. Valentina Krenz & Arjen Alink & Tobias Sommer & Benno Roozendaal & Lars Schwabe, 2023. "Time-dependent memory transformation in hippocampus and neocortex is semantic in nature," Nature Communications, Nature, vol. 14(1), pages 1-17, December.
    9. Morán-Ordóñez, Alejandra & Ameztegui, Aitor & De Cáceres, Miquel & de-Miguel, Sergio & Lefèvre, François & Brotons, Lluís & Coll, Lluís, 2020. "Future trade-offs and synergies among ecosystem services in Mediterranean forests under global change scenarios," Ecosystem Services, Elsevier, vol. 45(C).
    10. Jack McDonnell & Thomas McKenna & Kathryn A. Yurkonis & Deirdre Hennessy & Rafael Andrade Moral & Caroline Brophy, 2023. "A Mixed Model for Assessing the Effect of Numerous Plant Species Interactions on Grassland Biodiversity and Ecosystem Function Relationships," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 28(1), pages 1-19, March.
    11. Ana Pinto & Tong Yin & Marion Reichenbach & Raghavendra Bhatta & Pradeep Kumar Malik & Eva Schlecht & Sven König, 2020. "Enteric Methane Emissions of Dairy Cattle Considering Breed Composition, Pasture Management, Housing Conditions and Feeding Characteristics along a Rural-Urban Gradient in a Rising Megacity," Agriculture, MDPI, vol. 10(12), pages 1-18, December.
    12. Damian M. Herz & Manuel Bange & Gabriel Gonzalez-Escamilla & Miriam Auer & Keyoumars Ashkan & Petra Fischer & Huiling Tan & Rafal Bogacz & Muthuraman Muthuraman & Sergiu Groppa & Peter Brown, 2022. "Dynamic control of decision and movement speed in the human basal ganglia," Nature Communications, Nature, vol. 13(1), pages 1-15, December.
    13. Kathrin Stenchly & Marc Victor Hansen & Katharina Stein & Andreas Buerkert & Wilhelm Loewenstein, 2018. "Income Vulnerability of West African Farming Households to Losses in Pollination Services: A Case Study from Ouagadougou, Burkina Faso," Sustainability, MDPI, vol. 10(11), pages 1-12, November.
    14. Dongyan Liu & Chongran Zhou & John K. Keesing & Oscar Serrano & Axel Werner & Yin Fang & Yingjun Chen & Pere Masque & Janine Kinloch & Aleksey Sadekov & Yan Du, 2022. "Wildfires enhance phytoplankton production in tropical oceans," Nature Communications, Nature, vol. 13(1), pages 1-9, December.
    15. Zhaogeng Yang & Yanhui Li & Peijin Hu & Jun Ma & Yi Song, 2020. "Prevalence of Anemia and its Associated Factors among Chinese 9-, 12-, and 14-Year-Old Children: Results from 2014 Chinese National Survey on Students Constitution and Health," IJERPH, MDPI, vol. 17(5), pages 1-10, February.
    16. Marco Lopez-Cruz & Fernando M. Aguate & Jacob D. Washburn & Natalia Leon & Shawn M. Kaeppler & Dayane Cristina Lima & Ruijuan Tan & Addie Thompson & Laurence Willard Bretonne & Gustavo los Campos, 2023. "Leveraging data from the Genomes-to-Fields Initiative to investigate genotype-by-environment interactions in maize in North America," Nature Communications, Nature, vol. 14(1), pages 1-14, December.
    17. Baumann, Elias & Kern, Jana & Lessmann, Stefan, 2019. "Usage Continuance in Software-as-a-Service," IRTG 1792 Discussion Papers 2019-005, Humboldt University of Berlin, International Research Training Group 1792 "High Dimensional Nonstationary Time Series".
    18. Alexandra M. Cheney & Stephanann M. Costello & Nicholas V. Pinkham & Annie Waldum & Susan C. Broadaway & Maria Cotrina-Vidal & Marc Mergy & Brian Tripet & Douglas J. Kominsky & Heather M. Grifka-Walk , 2023. "Gut microbiome dysbiosis drives metabolic dysfunction in Familial dysautonomia," Nature Communications, Nature, vol. 14(1), pages 1-12, December.
    19. repec:cup:judgdm:v:16:y:2021:i:1:p:201-237 is not listed on IDEAS
    20. C. Gabriel Hidalgo Pizango & Eurídice N. Honorio Coronado & Jhon del Águila-Pasquel & Gerardo Flores Llampazo & Johan de Jong & César J. Córdova Oroche & José M. Reyna Huaymacari & Steve J. Carver & D, 2022. "Sustainable palm fruit harvesting as a pathway to conserve Amazon peatland forests," Nature Sustainability, Nature, vol. 5(6), pages 479-487, June.
    21. Myrto Pantazi & Olivier Klein & Mikhail Kissine, 2020. "Is justice blind or myopic? An examination of the effects of meta-cognitive myopia and truth bias on mock jurors and judges," Judgment and Decision Making, Society for Judgment and Decision Making, vol. 15(2), pages 214-229, March.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:jss:jstsof:v:075:i06. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum (email available below). General contact details of provider: http://www.jstatsoft.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.