lei-zhang / socialRL

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

Home Page:https://doi.org/10.1093/scan/nsaa089

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 (lei.zhang@univie.ac.at, 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.

About

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

https://doi.org/10.1093/scan/nsaa089


Languages

Language:MATLAB 71.3%Language:R 21.1%Language:Stan 7.6%