Skip to content

Tasks, data, and analysis scripts for Nussenbaum, K., Scheuplein, M., Phaneuf, C., Evans, M.D., & Hartley, C.A. (2020). Moving developmental research online: comparing in-lab and web-based studies of model-based reinforcement learning. Collabra: Psychology.

License

Notifications You must be signed in to change notification settings

Brain-Development-and-Disorders-Lab/task_two_step

 
 

Repository files navigation

Two-Step Task

An adaptation of the task described by Nussenbaum, K., Scheuplein, M., Phaneuf, C., Evans, M.D., & Hartley, C.A. (2020) - Moving developmental research online: comparing in-lab and web-based studies of model-based reinforcement learning..

They collected data from 151 participants on two tasks: the two-step task, as described in Decker et al. (2016) and the Matrix Reasoning Item Bank (MaRs-IB) as described in Chierchia, Fuhrmann et al. (2019).

The adaptation of the two-step task, developed using jsPsych, can be found in the src directory.

Task Overview

This sequential decision-making task was originally described in Decker et al. (2016), and is based off of an adult task originally described in Daw et al. (2011). Participants make a series of sequential decisions to try to gain as much reward as possible. In this version, on each trial, participants first must select a spaceship, which then transports them to one of two planets where they can ask an alien for space treasure.

The jsPsych version of the task was originally coded by the Niv Lab at Princeton, adapted by the Hartley Lab at NYU for use online with children, adolescents, and adults, and adapted here by the Brain Development and Disorders Lab at Washington University in St. Louis.

Data and analysis code

All raw data and analysis code has been moved into the analysis directory. All analyses and results reported in the Nussenbaum et. al. (2020) manuscript can be reproduced by running the R scripts (for all data summary statistics and regression analyses) and MATLAB code (for the computational modeling of the two-step task data).

For questions about the task used by Nussenbaum et. al., please contact katenuss@nyu.edu. For questions about this specific adaptation, please contact henry.burgess@wustl.edu.

Major Changes

Pavlovia integration was removed from all source code. A general cleanup of JavaScript source code.

Other changes include:

  • Gorilla platform integration
    • Packaging of images, audio and CSV files
    • Integration of jspsych-wrapper library
  • ESLint integration for code quality
  • Rocket images and backgrounds updated

License

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Issues and Feedback

For questions about the task used by Nussenbaum et. al., please contact <katenuss@nyu.edu>. Please contact Henry Burgess <henry.burgess@wustl.edu> regarding this adaptation or other code-related issues and feedback.

About

Tasks, data, and analysis scripts for Nussenbaum, K., Scheuplein, M., Phaneuf, C., Evans, M.D., & Hartley, C.A. (2020). Moving developmental research online: comparing in-lab and web-based studies of model-based reinforcement learning. Collabra: Psychology.

Resources

License

Stars

Watchers

Forks

Languages

  • R 32.5%
  • HTML 31.9%
  • TypeScript 28.9%
  • MATLAB 4.1%
  • JavaScript 1.7%
  • CSS 0.9%