Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
This is the code and data to reproduce the results reported in Bartlema, A., Lee, M., Wetzels, R., & Vanpaemel, W. (2014). A Bayesian hierarchical mixture approach to individual differences: Case studies in selective attention and representation in category learning. Journal of Mathematical Psychology. 59, 132-150 doi:10.1016/j.jmp.2013.12.002 Application 1: Selective Attention ---------------------------------- To reproduce the reported analyses and to reproduce figures 7 and 13-16, run SelectiveAttentionAnalysis.m. Choose the condition ('filtration position'=1, 'filtration height'=2, 'condensation A'=3, 'condensation B'=4) and the model of interest (2, 3 or 4 groups). Make sure you change 'bugsdir', the directory containing WinBUGS14.exe, if needed. On some machines, WinBUGS won't work unless you run MATLAB as administrator. The Data_Kruschke1993_condition[#].m files contain the data for the different conditions. The SelectiveAttention_[#]groups.txt-files contain the models to provide to WinBUGS. To reproduce figures 8 and 17, run Figures_8_and_17.m. This file will load samples_fig8and17.mat, which contains 3 chains of 1e5 samples each for the parameters 'deltamuw' and 'deltapriormuw' to reproduce figure 8, and 'deltamuw23' and 'deltapriormuw23' to reproduce figure 17. The first of these two were created by running SelectiveAttentionAnalysis.m with choose_groups=3; the latter two by running SelectiveAttentionAnalysis.m with choose_groups=4. In both runs, we used choose_condition=4, nsamples=1e5, nchains=3 and nburnin=1e3. Application 2: Category Representation -------------------------------------- To reproduce the reported analyses and to reproduce figures 12 and 18, run RepresentationalAbstractionAnalysis.m. Choose the version of the GCM (with or without response determinism parameter). Again make sure you change 'bugsdir', the directory containing WinBUGS14.exe, if needed. The Data_BartlemaEtAl2014.m file contains the data. The RepresentationalAbstraction_MPMvsGCM[gamma].txt-files contain the models to provide to WinBUGS. Note that Figures 11 and 12 only show the red and yellow bars and not the stimuli themselves. These were later added to the figures, since they were not created using MATLAB.
OSF does not support the use of Internet Explorer. For optimal performance, please switch to another browser.
Accept
This website relies on cookies to help provide a better user experience. By clicking Accept or continuing to use the site, you agree. For more information, see our Privacy Policy and information on cookie use.
Accept
×

Start managing your projects on the OSF today.

Free and easy to use, the Open Science Framework supports the entire research lifecycle: planning, execution, reporting, archiving, and discovery.