MATLAB code for Oliveira et al 2024
Task MATLAB scripts were adapted from
Colizoli, O., de Gee, J. W., Urai, A. E. & Donner, T. H. Task-evoked pupil responses reflect internal belief states. Scientific Reports 8, 13702 (2018). https://www.nature.com/articles/s41598-018-31985-3
with code publicly available at https://github.com/colizoli/pupil_belief_states
Task and acquisition parameters are described in detail in https://doi.org/10.1101/2024.05.01.589279
Analyses scripts run on MATLAB and depend on:
eeglab functions - https://sccn.ucsd.edu/eeglab/index.php
jbfill - https://www.mathworks.com/matlabcentral/fileexchange/13188-shade-area-between-two-curves
Task scripts depend on:
Psychophysics Toolbox Version 3 - http://psychtoolbox.org/
Pupil preprocessing code uses functions from
Urai AE, Braun A, Donner TH. (2017) Pupil-linked arousal is driven by decision uncertainty and alters serial choice bias. Nature Communications, 8: 14637. http://www.nature.com/articles/ncomms14637
available here: https://github.com/anne-urai/2017_Urai_pupil-uncertainty/tree/master
Raw behavioural and eye tracking data available at Open Science Framework - Ribeiro, M. J. (2024, April 26). Decision confidence and pupil-linked arousal in young and older adults. Retrieved from osf.io/sq3eh
For questions, feel free to contact by email mjribeiro@fmed.uc.pt; twitter @Ribeiro_neurosc; bsky @ribeironeuro.bsky.social