This repository contains simulation code for the following paper:
Okazawa G, Sha L, Purcell BA, Kiani R (2018). Psychophysical reverse correlation reflects both sensory and decision-making processes. Nature Communications 9:3479
The code is tested under MATLAB R2018a (MathWorks).
DDM_Kernel_Simulation.m: Generates psychophysical kernels for drift diffusion model.
RACE_Kernel_Simulation.m: Generates psychophysical kernels for competing accumulator (race) model.
Simulation1_fixed_and_RT_task.m: The script shows psychophysical kernels for drift diffusion model with/without the non-decision time under fixed duration/reaction time tasks (corresponds to Fig. 3 in the paper).
Simulation2_urgency_and_race_model.m: The script shows psychophysical kernels for drift diffusion model with urgency and competing accumulator model with input correlation, reflective bound, and leak/mutual inhibition (corresponds to Fig. 6 in the paper).
These files are being released openly in the hope that they might be useful but with no promise of support. If using them leads to a publication, please cite the paper.
The dataset is released under a CC-BY 4.0 license.
The code is released under a BSD license.