Code and data for the paper 'Confidence ratings do not distinguish imagination from reality' by Nadine Dijkstra, Matan Mazor & Stephen Fleming.
All functions are called in order from the 'MasterWrapper.m' script. Requires the HMeta-d' toolbox (https://github.com/metacoglab/HMeta-d) to be installed and the function 'fit_meta_d_criterion model.m' as well as the model 'Bayes_metad_criterion_insight_model.txt' to be copied into '\HMeta-d-master\Matlab'.
Data for experiment 1 is in 'CollectionSept2021.zip' and data for experiment 2 is in 'CollectionNov2022.zip'.