DOI: 10.6084/m9.figshare.11931714
title: Modelling files supporting the published article: Perceptual decision-making in children: Age-related differences and EEG correlates

description: This item contains the modelling files. The following files are included in this fileset:• <b>demographics_incl.csv</b><b>• MarkUpFile.docx</b><b>• DDMTDpaper_DataUpload.docx</b><b>• EWMAfiltered_4conds_dat.RData</b><b>• EWMAfiltered_3conds_dat.RData</b><b>• DataforDDM_041017.csv</b><b>• EWMAcutoffs.csv</b><b>• EWMA_3conds.R</b><b>• EWMA_4conds.R</b><b>• myJAGSscript_DDM_TD_cond1.R</b><b>• myJAGSscript_DDM_TD_manuscript_v2.R</b><b>• ExtractEEGmeasuresForModelling.m</b><b>• RegResults.csv</b><b>• hsamples_cond1_adults.RData</b><b>• hsamples_cond1_kids.RData</b><b>• 12 x hsamplesX_adults.RData files where X is a number from 1 to 12</b><b>• 12 x hsamplesX_kids.RData files where X is a number from 1 to 12</b><b>• hmodel_cond1.txt</b><b>• 12 x hmodelX.txt files where X is a number from 1 to 12</b><b>• Adult_PosteriorPredictiveCode.R</b><b>• Kids_PosteriorPredictiveCode.R</b><b>• 12 x kids_posteriorpred_hmodel X.RData files where X is a number from 1 to 12.</b><b>• 12 x adults_posteriorpred_hmodel X.RData files where X is a number from 1 to 12.</b><b>• 12 x ModelX_Adults_PP_Acc.png files where X is a number from 1 to 12.</b><b>• 12 x ModelX_Adults_PP_RT.png files where X is a number from 1 to 12.</b><b>• 12 x ModelX_Kids_PP_Acc.png files where X is a number from 1 to 12.</b><b>• 12 x ModelX_Kids_PP_RT.png files where X is a number from 1 to 12.</b><b>• Cond1_Kids_PP.png</b><b>• Cond1_Adults_PP.png</b><b>• Resplocked_datIn_group2.mat</b><b>• Resplocked_datIn_group1.mat</b><b>• RespLocked_Out_group_2.mat</b><b>• RespLocked_Out_group_1.mat</b><b>• SimpleModel_Stan_v3.R</b>• <b>Zipped folder “CoefficientPosteriorDistributions.zip”</b> containing a total of 11 <b>Coeffs_ModelX_Kids.png</b> files where X is a number from 2 to 12. Additionally, the folder contains 3 <b>Coeffs_ModelX_Adults.png</b> files where X is a number from 6 to 8.<br><b>EXTRACTING EEG MEASURES files</b> are MATLAB scripts that run reliable components analysis and extract EEG slope measures, and the resulting data output which are then input into the diffusion modelling. These files are ExtractEEGmeasuresForModelling.m, Resplocked_datIn_groupX.mat (2 files), RespLocked_Out_groupX.mat (2 files), and RegResults.csv. More details on the content of these datasets are provided in data file <b>DDMTDpaper_DataUpload.docx</b>.<br><b>MODELLING FILES </b>are files required for running diffusion modelling on behavioural and EEG data. These files are myJAGSscript_DDM_TD_manuscript_v2.R, myJAGSscript_DDM_TD_cond1.R, hmodel1.txt – hmodel12.txt (12 files) and hmodel_cond1.txt. More details on the content of these datasets are provided in data file DDMTDpaper_DataUpload.docx.<br><b>MODEL RESULTS</b> are JAGS samples objects resulting from the diffusion modelling. These files consist of hsamplesX_adults.RData (4 datasets), hsamplesX_kids.RData (12 datasets), hsamples_cond1_adults.RData and hsamples_cond1_kids.RData datasets. More details on the content of these datasets are provided in data file DDMTDpaper_DataUpload.docx.A detailed description of the contents of each of the files listed above, is provided in the ReadMe file DDMTDpaper_DataUpload.docx.<br><b>Software needed to access data</b>: .mat data files can be accessed using the MATLAB software. Files in .R and .RData format, can be accessed using the R software.<br><br>