/metacognition-task-online

This repository contains code for running online a metacognition task.

Primary LanguageJavaScript

metacognition-task-online

This repository contains code for running online a metacognition task from:

Rouault, M., Seow, T., Gillan, C. M., & Fleming, S. M. (2018). Psychiatric symptom dimensions are associated with dissociable shifts in metacognition but not task performance. Biological psychiatry, 84(6), 443-451.

There are three folders containing similar versions of the task in three different languages.

  • French

This version corresponds to Experiment 2 of the paper (staircased). Note that the staircase can easily be removed if required.

  • SwissGerman

This contains two versions, corresponding to Experiment 1 (not staircased) and Experiment 2 (staircased) from the paper.

  • English

This version corresponds to Experiment 2 of the paper (staircased). Note that the staircase can easily be removed if required. It also includes a folder containing code for running online the battery of questionnaires and IQ test, and a MATLAB script for preprocessing the questionnaire data.

All experiments make use of the following package: jsPsych version 4.3:

De Leeuw, J. R. (2015). jsPsych: A JavaScript library for creating behavioral experiments in a Web browser. Behavior research methods, 47(1), 1-12.

To collect online data from Amazon Mechanical Turk or Prolific Academic, you will need an online database, such as MySQL.

License

This code is being released with a permissive open-source license. You should feel free to use or adapt the utility code as long as you follow the terms of the license, which are enumerated below. If you make use of or build on the behavioral analyses, we would appreciate that you cite the paper.

Copyright (c) 2019, Marion Rouault

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.