Distinct encoding of decision confidence in human medial prefrontal cortex
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 3 commits ahead, 6 commits behind danbang:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Custom
Data
HDDM
Model
Permutation
SPM
Toolbox/dmat
Upsample
Figure2.m
Figure3B.m
Figure3C.m
Figure3D.m
Figure4B.m
Figure4C.m
Figure4D.m
LICENSE
README.md

README.md

article-distinct-encoding

This repository contains data and code supporting the following paper:

Bang & Fleming (2018) “Distinct encoding of decision confidence in human medial prefrontal cortex”

FigureX.m files will generate the specified plots from the paper by loading behavioural data, model predictions and/or fMRI ROI data.

The paths in these scripts require altering the directory variable ‘repoBase’ to point to your local version of the repository.

Unthresholded group-level statistical maps supporting whole-brain analyses are available on NeuroVault: https://neurovault.org/collections/3792/.

Folders

Custom

Contains custom scripts for data extraction and plotting.

Data

Contains anonymised behavioural data for the pre-scan (Data/Behaviour/Prescen) and the scan (Data/Behaviour/Prescen) sessions, ROI contrast estimates (Data/Scan/Contrast), ROI single-trial activity estimates (Data/Scan/Activity) and ROI activity time courses (Data/Scan/Timecourse).

HDDM

Contains scripts for hierarchical DDM fitting using the HDDM toolbox (http://ski.clps.brown.edu/hddm_docs/) and generation of posterior predictives using the DMAT toolbox (https://ppw.kuleuven.be/okp/software/dmat/).

Model

Contains scripts for fitting confidence model to pre-scan data and generating out-of-sample predictions about subjective confidence for scan data.

Permutation

Contains scripts for permutation testing for analysis of ROI activity time courses.

SPM

Contains scripts for setting up GLMs of fMRI data. fMRI data were pre-processed using standard pipelines available here: https://github.com/metacoglab/MetaLabCore. All fMRI analyses were done using SPM 12 (www.fil.ion.ucl.ac.uk/spm).

Upsample

Contains example script for creating ROI activity time courses.

Preprint

A preprint of this article can be found on bioRxiv.

This code is being released with a permissive open-source license. You should feel free to use or adapt the code as long as you follow the terms of the license. If you make use of the behavioural, modelling or neuroimaging analyses, we would appreciate that you cite the paper.