Skip to content

Code and data for Zhang, Lengersdorff et al. (2020)

Notifications You must be signed in to change notification settings

scanunit/socialRL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub repo size GitHub language count DOI GitHub last commit
Twitter Follow Lab Twitter Follow

Code and data for:
Zhang^, Lengersdorff^, Mikus, Gläscher, & Lamm (2020). Frameworks, pitfalls, and suggestions of using reinforcement learning models in social neuroscience. (^Equal contributions)
Social cognitive and affective neuroscience
DOI: 10.1093/scan/nsaa089.

A 2-min flash talk of the paper is available on YouTube.


This repository contains:

root
  ├─ code       # Matlab & R code to run the analyses and produce figures
  ├─ data       # behavioral & fMRI data

to reproduce all analyses and figures in the manuscript.

Note 1: to properly run all scripts, you may need to set the root of this repository as your work directory.
Note 2: to reproduce the Matlab figures, you may need the color brewer toolbox and the offsetAxes function.

RL parameter simulations

fMRI time series of the prediction error

posterior predictive check


For bug reports, please contact Lei Zhang ([email protected]).

Thanks to Markdown Cheatsheet and shields.io.


LICENSE

This license (CC BY-NC 4.0) gives you the right to re-use and adapt, as long as you note any changes you made, and provide a link to the original source. Read here for more details.

About

Code and data for Zhang, Lengersdorff et al. (2020)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • MATLAB 71.5%
  • R 20.9%
  • Stan 7.6%