Click here to view plots and main results
Step 0 (if data not already in MATLAB structure) - Convert data to the required format from Presentation .log / .csv / .xlsx formats
Script to run and compare models using maximum likelihood estimation fit
- matlab variables - 's.PL.ml' - contains model results including the model parameters for each participant - 'output.winModel7' - compares two main models (7 & 10), used in model_comp_7_10_relative_BIC.csv
- datafiles in specified output directory:
- K_values_PM_fmri_two_k_one_beta.csv - estimated parameters for each participant
Match parameters from K_values_PM_fmri_two_k_one_beta with other behavioural and MRI data in a wide data format for analysis (see PM_fmri_questionnaire_wo_excluded_totals_share.csv)
Run analysis using R project, script, and files from above output (note sections of this script also plot results from simulation experiments - model identifiability and parameter recovery - see below and use results from RSA analysis).
Script to run model identifiability and / or parameter recovery
Plot results using R script
Based on Lockwood et al. (2017), Nature Human Behaviour - test different variations of k and beta parameters
Models compared combine all combinations of single or separate k and single or separate beta parameters:
MATLAB 2019b - requires Econometrics and Bioinformatics toolboxes
macOS 10.15 Catalina / 11.1 Big Sur
R version 3.6.2 (2019-12-12)