Score-based tests for detecting heterogeneity in linear mixed models
Related Experiment Video
Updated: Dec 14, 2025

The Innovation Arena: A Method for Comparing Innovative Problem-Solving Across Groups
Published on: May 13, 2022
Ting Wang1, Edgar C Merkle2, Joaquin A Anguera3
1The American Board of Anesthesiology, Raleigh, NC, USA. twb8d@mail.missouri.edu.
Abstract:
Cross-level interactions among fixed effects in linear mixed models (also known as multilevel models) can be complicated by heterogeneity stemming from random effects and residuals. When heterogeneity is present, tests of fixed effects (including cross-level interaction terms) are subject to inflated type I or type II error. While the impact of variance change/heterogeneity has been noticed in the literature, few methods have been proposed to detect this heterogeneity in a simple, systematic way. In addition, when heterogeneity among clusters is detected, researchers often wish to know which clusters' variances differed from the others. In this study, we utilize a recently proposed family of score-based tests to distinguish between cross-level interactions and heterogeneity in variance components, also providing information about specific clusters that exhibit heterogeneity. These score-based tests only require estimation of the null model (when variance homogeneity is assumed to hold), and they have been previously applied to psychometric models to detect measurement invariance. In this paper, we extend the tests to linear mixed models, allowing us to use the tests to differentiate between interaction and heterogeneity. We detail the tests' implementation and performance via simulation, provide an empirical example of the tests' use in practice, and provide code illustrating the tests' general application.
Related Concept Videos
Test for Homogeneity
Friedman Two-way Analysis of Variance by Ranks
Expected Frequencies in Goodness-of-Fit Tests
Statistical Methods to Analyze Parametric Data: Student t-Test and Goodness-of-Fit Test
The Student's t-test is a statistical test that examines if there is a statistically significant difference between the means of two groups. This test is instrumental when dealing with...
Bonferroni Test
The means of different samples are first paired in all possible combinations.
The null hypothesis of the...
One-Way ANOVA: Unequal Sample Sizes

