Skip to content

Analysis code and data for Castro-Rodrigues, Akam et al. Nature Human Behaviour 2022.

Notifications You must be signed in to change notification settings

ThomasAkam/Two-step_explicit_knowledge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Analysis code and data for Castro-Rodrigues, Akam et al. Nature Human Behaviour 2022.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published