This repository contains the code for the portfolio 2 assignment
in the course Advanced Cognitive Modeling
at the Cognitive Science MSc. (F24).
Code was produced jointly by the group members:
- Milena Cholozynska (@milenacholo)
- Daniel Blumenkranz (@daniblu)
- Anton Drasbæk Schiønning (@drasbaek)
- Mina Almasi (@MinaAlmasi)
The repository contains four folders:
src
- all R scriptsdata
- simulated data and data resulting from fitting models (predictive checks & recovery)stan
- the RL model coded in Stan (git ignores the C++ compiled version)plots
- all plots
For the code in src
, see the seperate src/README.md for a detailed description of its contents.
To use the code, ensure that you have R
and RScript
installed. All code was developed using R
version 4.3.2
and was primarily tested on a MacBook.
Furthermore, please install the package pacman
. Within your R console
, this can be done as such:
install.packages("pacman")
Code can be run by using RScript
in your bash
terminal
RScript src/illustrate_priors.R