Reality Bending LabPublications › The cogmod R Package: Easy-to-Use Bayesian Cognitive Models for Reaction Times, Choices and Subjective Ratings, with Applications to Computational Neuropsychology

The cogmod R Package: Easy-to-Use Bayesian Cognitive Models for Reaction Times, Choices and Subjective Ratings, with Applications to Computational Neuropsychology

Makowski, D.

2026 · Preprint

Cognitive tasks produce whole distributions of reaction times, choices and ratings, and analysis usually throws that away by taking a mean per condition. cogmod puts Bayesian cognitive models — descriptive distributions, evidence accumulation, bounded-rating models — inside the brms formula workflow, so parameters can be predicted by covariates and random effects, and the differences a mean hides become visible.

Abstract

Cognitive tasks produce structured distributions of reaction times, choices, and subjective ratings, yet these data are often reduced to condition means before analysis. This can obscure differences in variability, distributional shape, and the latent processes that generate behaviour. We introduce `cogmod`, an R package that brings Bayesian cognitive models into the regression workflow used by psychologists. `cogmod` implements descriptive response distributions, evidence accumulation models, and models for bounded ratings as brms custom families, allowing model parameters to be predicted by covariates and random effects using familiar formula syntax. Fitted models remain standard brmsfit objects and therefore support established tools for priors, diagnostics, posterior predictive checks, model comparison, and post-processing. Across worked examples, we show that this framework enables direct comparison of competing decision models, quantifies the reliability of model parameters as individual-level measures, and reveals clinically relevant differences that are invisible in conventional mean-based analyses. By placing models spanning the descriptive-to-generative continuum within a common Bayesian regression framework, `cogmod` lowers the practical barrier to richer analyses of cognitive data and makes the choice of model an empirical question rather than a software constraint. `cogmod` is openly available at .

Keywords: Computational Models · Software Development · Bayesian Statistics · Reaction Times

Cite

Makowski, D. (2026). The cogmod R Package: Easy-to-Use Bayesian Cognitive Models for Reaction Times, Choices and Subjective Ratings, with Applications to Computational Neuropsychology. https://doi.org/10.31234/osf.io/5h62c_v1

See also

Click to Open
Reality Bending Lab

Exploring the neuropsychology of reality and its distortions.

The Reality Bending Lab, led by Dominique Makowski at the University of Sussex in Brighton, UK, conducts world-leading research on reality perception, illusions, fake news, AI-beliefs, deception and its links with emotions, cognitive control and the Self. Using recording signals from the body (ECG, EDA…) and the brain (EEG), we analyse data using advanced modelling (Bayesian statistics, chaos theory, computational models) and develop open-source tools to improve neuropsychological science.

“Do not try to bend the spoon — that’s impossible. Instead, only try to realise the truth: there is no spoon. Then you'll see that it is not the spoon that bends, it is only yourself.”

People

Information

Where to find us

The Reality Bending Lab is based in the School of Psychology, at the University of Sussex in Brighton, UK.

Pevensey 1 - room 2B7, School of Psychology, University of Sussex, BN1 9QH

The University of Sussex campus in the South Downs University of Sussex crest

University of Sussex

Brighton is the sunniest city in the UK and, by some margin, its most cheerfully strange — on the sea, an hour from London. The University of Sussex sits just above it in the South Downs, and its School of Psychology is one of the largest and strongest in the country.

It is famous for its research on consciousness and interoception, with scientists like Anil Seth, Andy Clark, Zoltan Dienes and Hugo Critchley, its teaching of cutting-edge psychological methods (with stats rockstar Andy Field), its history of multidisciplinary research (arts and science), and its radical engagement in open and disruptive science.

Join this community

Hire us Join the Lab Like this website? See how to get yours