Level-specific residuals and diagnostic measures, plots, and tests for random effects selection in multilevel and mixed models

Behav Res Methods. 2022 Oct;54(5):2178-2220. doi: 10.3758/s13428-021-01709-z. Epub 2022 Mar 1.

Abstract

Multilevel data structures are often found in multiple substantive research areas, and multilevel models (MLMs) have been widely used to allow for such multilevel data structures. One important step when applying MLM is the selection of an optimal set of random effects to account for variability and heteroscedasticity in multilevel data. Literature reviews on current practices in applying MLM showed that diagnostic plots are only rarely used for model selection and for model checking. In this study, possible random effects and a generic description of the random effects were provided to guide researchers to select necessary random effects. In addition, based on extensive literature reviews, level-specific diagnostic plots were presented using various kinds of level-specific residuals, and diagnostic measures and statistical tests were suggested to select a set of random effects. Existing and newly proposed methods were illustrated using two data sets: a cross-sectional data set and a longitudinal data set. Along with the illustration, we discuss the methods and provide guidelines to select necessary random effects in model-building steps. R code was provided for the analyses.

Keywords: Diagnostic plots; Level-specific residuals; Mixed-effects model; Multilevel model; Random effect selection.

Publication types

  • Research Support, U.S. Gov't, Non-P.H.S.

MeSH terms

  • Cross-Sectional Studies
  • Humans
  • Models, Statistical*
  • Multilevel Analysis