Psychophysics with R: The R Package MixedPsy
Priscilla BalestrucciiD, Marc O. ErnstiD, Alessandro MoscatelliiD
Abstract
Psychophysical methods are widely used in neuroscience to investigate the quantitative relation between a physical property of the world and its perceptual representation provided by the senses. Recent studies introduced the Generalized Linear Mixed Model (GLMM) to fit the responses of multiple participants in psychophysical experiments. Another approach (two-level approach) requires fitting psychometric functions to each individual participant data using a Generalized Linear Model (GLM), and then testing the hypotheses on the multiple participants by means of a second level analysis. For either options, the implementation of the statistical analysis in R is possible and beneficial. Here, we introduce the package MixedPsy to model and fit psychometric data in R, either with two-level and GLMM approaches. The package, freely available in the CRAN repository, uses different methods for the estimation of Point of Subjective Equivalence (PSE) and Just Noticeable Difference (JND), and provides utilities for immediate visualization and plotting of the fitted results. This manuscript aims to provide researchers with a practical tutorial for implementing a complete analysis pipeline for psychophysical data using MixedPsy and other packages and basic functionalities of the R programming environment.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 12
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Modeling Psychophysical Data in R: A Comparative Study of Four Model Frameworks
Priscilla Balestrucci, Maura Mezzetti, … Alessandro Moscatelli·bioRxiv·Nov 17, 2025
- lmeEEG: Mass linear mixed-effects modeling of EEG data with crossed random effects
Antonino Visalli, Maria Montefinese, … Ettore Ambrosini·Journal of Neuroscience MethodsPeer-reviewed·Oct 24, 2023
- Putting perception into action: Inverse optimal control for continuous psychophysics
D. Straub, C. A. Rothkopf·bioRxiv·Dec 23, 2021
- EPHierStats: a statistical tool to model the hierarchical relationships in electrophysiological data
Jenya Kolpakova, Jonathan D. Marvel-Zuccola, … Vincent van der Vinne·bioRxiv·Mar 23, 2022
- PsychRNN: An Accessible and Flexible Python Package for Training Recurrent Neural Network Models on Cognitive Tasks
Daniel B. Ehrlich, Jasmine T. Stone, … John D. Murray·eNeuroPeer-reviewed·Dec 16, 2020
- A note on detecting statistical outliers in psychophysical data
Pete R Jones·bioRxiv·Sep 12, 2016