EUVIMEDOpdag EUVIMED
Open access · CC BY 4.0

To vary or not to vary: A flexible empirical Bayes factor for testing variance components

Fabio Vieira iD, Hongwei Zhao, Joris Mulder

British Journal of Mathematical and Statistical Psychology · 2026-03-27

DOI: 10.1111/bmsp.70048 ↗

At a glance

Journal article in British Journal of Mathematical and Statistical Psychology, published online on 2026-03-27. Written by Fabio Vieira and 2 co-authors. Institution: Department of Methodology and Statistics, Tilburg University, Tilburg, The Netherlands. 121 references. The full text is freely available (open access, CC BY 4.0). Funded by: Nederlandse Organisatie voor Wetenschappelijk Onderzoek, Netherlands Organization for Scientific Research (NWO); ERC Consolidator Grant.

AbstractSubjectsBibliografiske oplysningerCiteRelated studies

Abstract (original language)

Random effects are the gold standard for capturing structural heterogeneity, such as individual differences or temporal dependence. Yet testing their presence is difficult because variance components are constrained to be non‐negative, creating a boundary problem. This paper introduces a flexible empirical Bayes factor (EBF) for testing random effects. Instead of testing whether a variance component equals zero, the EBF evaluates the equivalent hypothesis that all random effects are zero. The approach avoids manual prior specification: the distribution of the random effects is modeled at the lower level and estimated directly from the data, yielding an “empirical” Bayes factor. Using a Savage–Dickey density ratio, the EBF requires only the full model fit, eliminating the need to estimate multiple models with alternative random‐effects structures. The method enables testing a single random effect as well as multiple, potentially correlated, random effects simultaneously. Simulation studies examine the operating characteristics of the criterion. To illustrate its breadth, the EBF is applied to several widely used models in psychological research and related fields, including generalized linear crossed mixed‐effects models, spatial random‐effects models, dynamic structural equation models, random‐intercept cross‐lagged panel models, and nonlinear mixed‐effects models.

Subjects

Author keywords

bayes factorsmodel selectionrandom effectsstructural heterogeneityvariance component testing

Authors and institutions

  • Department of Methodology and Statistics, Tilburg University, Tilburg, The Netherlands.
  • Unit of Quantitative Psychology and Individual Differences, KU Leuven, Leuven, Belgium.

ORCID profiles: Fabio Vieira

Funding

  • Nederlandse Organisatie voor Wetenschappelijk Onderzoek
  • Netherlands Organization for Scientific Research (NWO); ERC Consolidator Grant

Cite

APA

Vieira, F., Zhao, H., & Mulder, J. (2026). To vary or not to vary: A flexible empirical Bayes factor for testing variance components. British Journal of Mathematical and Statistical Psychology. https://doi.org/10.1111/bmsp.70048

Vancouver

Vieira F, Zhao H, Mulder J. To vary or not to vary: A flexible empirical Bayes factor for testing variance components. British Journal of Mathematical and Statistical Psychology. 2026. doi:10.1111/bmsp.70048

BibTeX
@article{Vieira2026,
  author = {Vieira, Fabio and Zhao, Hongwei and Mulder, Joris},
  title = {To vary or not to vary: A flexible empirical Bayes factor for testing variance components},
  journal = {British Journal of Mathematical and Statistical Psychology},
  year = {2026},
  doi = {10.1111/bmsp.70048}
}
Start for free →