The analysis scripts are in two main folders:
Behaviour_Model_Analysis: contains the analysis of the behavioural data, presented in the first part of the manuscript, Figures 1 and 2.
EEG_Analysis: contains the analysis of the EEG data, from pre-processing onwards. Step b corresponds to the analysis behind Figure 3, Step c to the analysis behind Figure 4, and steps d and e to Figure 5.
Feel free to contact me with any questions or requests.