The code in this repository accompanies the following publication:
The experiment code yields '.mat' files containing 'data', 'settings' and the Psybayes output 'post' and 'outputs', which are processed with the script analysis_raw.m and combined into alldata.mat.
The last fields represent structs with all the trials in each of the 4 possible conditions (each itself a struct):
- cond_Ori
- cond_OriS
- cond_Col
- cond_ColS
analysis_all_plots.mtakes inalldata.matand the psychometric curve parametersparams_all.mat, calls the plotting functions fromdata_analysis_and_plotsand return the figures in the manuscript.- The psychometric curve parameters in
params_all.matare the output ofpsych_curves_pars_fit.m,loglike.mandfunction_psi.mfrommodel_fitting.psych_curves_pars_fit.muses a grid search to find the parameters that maximize the loglikelihood, which is computationally intensive, so it was run on the NYU HPC cluster. While Psybayes also estimated the psychometric curve parameters for each condition individually, this offline fitting was necessary since our main model assumed shared parameters across conditions.