Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.01 KB

README.md

File metadata and controls

25 lines (16 loc) · 1.01 KB

This repository contains data and analysis code used in the study:

Explicit knowledge of task structure is a primary determinant of human model-based action, Nature Human Behaviour 2022, Pedro Castro-Rodrigues, Thomas Akam, Ivar Snorasson, Marta Camacho, Vitor Paixão Ana Maia, Bernardo Barahona-Corrêa, Peter Dayan, H. Blair Simpson, Rui M. Costa, Albino J. Oliveira-Maia

The data folder contains two-step task data, organised into subfolders for different datasets. Each data file contains the task event log for one subject over one session, file names indicate subject ID and session number.

The code folder contains Python code used to analyse the data. The Python scripts in the top level of the code folder contain functions to generate individual paper figures and run permutation tests.

Dependencies:

  • Python 3
  • Numpy
  • Numba
  • Matplotlib
  • Seaborn
  • Pingouin
  • Statsmodels
  • Pandas
  • Scipy
  • Scikit-learn

Analysis was performed using the Anaconda Python distribution, version 2019.10 - Python 3.7.