%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - Datasets for "Tuning perception and decisions to temporal context" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Philippe Blondé, Árni Kristjánsson, & David Pascucci %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Icelandic Vision Lab, University of Iceland, Iceland. Laboratory of Psychophysics, Ecole Polytechnique Fédérale de Lausanne (EPFL), Switzerland. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% The dataset of the experiment is stored in long format, .csv. Rows indicate events in each trial, columns are variables. For Experiment 1-2: - delta : acute angle between the last and second to last orientation in the sequence - theta : last orientation presented in the sequence (target orientation) - condition: 1 for 'stable' or 0 for 'volatile' - resp : acute angle reported by the participant - rt : adjustment reaction times - error : adjustment errors - errorc : errors after preprocessing with outliers as NaN (see Methods) - delta_btw: acute angle between the last orientation in the sequence and the last in the previous sequence - seq_X : acute angle for the stimulus at the position X of the sequence - delta_diff: difference between delta and delta_btw The scripts SD_sample_analysis_EXP1.m and SD_sample_analysis_EXP2.m provides an example of the analyzes performed in experiment 1 and 2 respectivly, using MATLAB (R2023a). To make the code work, place all the files in the same folder and extract the 'custom functions' subfolder in it before running the Matlab code file.