A tutorial for estimating Bayesian hierarchical mixture models for visual working memory tasks: Introducing the Bayesian Measurement Modeling (bmm) package for R
Open Access
- 14 April 2025
- journal article
- Published by Springer Nature in Behavior Research Methods
- Vol. 57 (5) , 1-33
Abstract
Mixture models for visual working memory tasks using continuous report recall are highly popular measurement models in visual working memory research. Yet, efficient and easy-to-implement hierarchical Bayesian estimation procedures that flexibly enable group or condition comparisons are scarce. Specifically, most software packages implementing mixture models have used maximum likelihood estimation for single-subject data. Such estimation procedures require a large number of trials per participant to obtain robust and reliable estimates. This problem can be solved with hierarchical Bayesian estimation procedures that provide robust and reliable estimates with lower trial numbers. In this tutorial, we illustrate how mixture models for visual working memory tasks can be specified and fit in the newly developed R package bmm. The benefit of this implementation over existing hierarchical Bayesian implementations is that bmm integrates hierarchical Bayesian estimation of the mixture models with an efficient linear model syntax that enables us to adapt the mixture model to practically any experimental design. Specifically, this implementation allows for varying model parameters over arbitrary groups or experimental conditions. Additionally, the hierarchical structure and the specification of informed priors can frequently improve subject-level parameter estimation and solve estimation problems. We illustrate these benefits in different examples and provide R code for easy adaptation to other use cases.Keywords
All Related Versions
Funding Information
- University of Zurich
This publication has 60 references indexed in Scilit:
- Changing concepts of working memoryNature Neuroscience, 2014
- Factorial comparison of working memory models.Psychological Review, 2014
- Modeling visual working memory with the MemToolboxJournal of Vision, 2013
- Variability in encoding precision accounts for visual short-term memory limitationsProceedings of the National Academy of Sciences of the United States of America, 2012
- Temporal dynamics of encoding, storage, and reallocation of visual working memoryJournal of Vision, 2011
- Hierarchical diffusion models for two-choice response times.Psychological Methods, 2011
- Bayesian hypothesis testing for psychologists: A tutorial on the Savage–Dickey methodCognitive Psychology, 2010
- The precision of visual working memory is set by allocation of a shared resourceJournal of Vision, 2009
- Discrete fixed-resolution representations in visual working memoryNature, 2008
- A detection theory account of change detectionJournal of Vision, 2004