Home

Menu

Loading wiki pages...

View
Wiki Version:
<p><b>Tasks</b></p> <p>We provide all four tasks from the paper here. Both have been written using Josh deLeeuw's jsPsych toolbox (<a href="http://www.jspsych.org/" rel="nofollow">http://www.jspsych.org/</a>).</p> <p>These tasks require communication with a PHP server in order to run. You can do this by running them on your own domain, or by using a tool like XAMPP to run the PHP server locally.</p> <p>In order to save the data, you will need to be able to connect to a SQL database on your server. The code has some default names for the tables it stores data in (e.g., twostep_complexity_data, twostep_complexity_subinfo, twostep_complexity_subid), but feel free to change anything about the way the data storage is managed.</p> <p><b>Data</b></p> <p>We provide all the raw data for the four two-step paradigms in the paper, and the functions that are used to analyze them. These functions are written in Matlab.</p> <p>All processed behavioral data are stored in the groupdata.mat variables in each experiment's directory, and all model fitting results are saved in each experiment's subdirectories ('model', 'model_exhaustive', etc.).</p> <p>These groupdata variables can also be computed on the fly using the groupanalysis.m functions in each experiment's root folder.</p> <p>The maximum a posteriori model-fitting procedure can be run in the subdirectories of each experiment. These procedures require the mfit package developed by Sam Gershman, which can be found here: <a href="https://github.com/sjgershm/mfit" rel="nofollow">https://github.com/sjgershm/mfit</a></p> <p>The functions that fit the data to the RL models (wrapper.m) will take a long time to finish. This process can be sped up by breaking up these analyses and running them in parallel jobs on your institution's computing cluster, or by decreasing the number of iterations in the wrapper.m starting file.</p> <p><b>Simulations</b></p> <p>We provide the code used to estimate the reward control tradeoffs of Experiments 1 and 3, and the exact simulation data to generate Figure 4. These functions are written in Matlab.</p> <p>All simulation data are stored in the data.mat variables in each experiment's subfolders. Each of the two experiment's folders contain subfolders that match the type of simulation described in the main text (i.e., for the high-effort arm, for the low-effort arm, and separately for both stages of the high-effort arm). The functions that generate these simulation data are all named wrapper.m, and will finish running quickly.</p> <p><b>Contact</b></p> <p>If you have any questions, please do not hesitate to contact Wouter Kool (wkool@fas.harvard.edu).</p>
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.