bioRxiv · 10.1101/2025.11.17.688833
Modeling Psychophysical Data in R: A Comparative Study of Four Model Frameworks
Abstract
Inferential models in psychophysics are essential for quantifying the relation between physical properties of the stimulus and their perceptual representations. The psychometric function is typically used to model the responses of individual participants in forced-choice experiments. The accuracy and the noise of the response can be estimated from the Point of Subjective Equality (PSE) and the Just Noticeable Difference (JND) of the function, respectively. Traditionally, a two-level approach is used to model the behavior of a group of participants, where psychometric functions are first fitted to individual participant data, followed by hypothesis testing across participants on parameters of interest. Recent studies have introduced alternative approaches based on hierarchical models, such as Generalized Linear Mixed Models (GLMM) and Models within the Bayesian Hierarchical Framework (BHF), to analyze in a single framework the responses from multiple participants. These two approaches can be effectively implemented in R, thanks to its flexibility and robust statistical capabilities. Here, we provide a tutorial on how to model and analyze data from psychophysical experiments in R, using both two-level and hierarchical frameworks. Our goal is to provide researchers with a practical guide for building a complete and reproducible analysis pipeline, using core R functionalities together with custom packages, and facilitate rigorous and efficient data analysis in psychophysics.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Balestrucci, P., Mezzetti, M., La Scaleia, B., Moscatelli, A.. 2025-11-18. Modeling Psychophysical Data in R: A Comparative Study of Four Model Frameworks. https://doi.org/10.1101/2025.11.17.688833
Cite the original work for its findings. Save a collection to share your selection of sources.