Skip to content

lei-zhang/socialRL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 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 paper.

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 NaN Suite, the color brewer toolbox, and the offsetAxes function.

RL parameter simulations

fMRI time series of the prediction error

* See our empirical paper (Zhang & Gläscher, 2020) for the experiments and other findings.

posterior predictive check


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

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.