vekteo / Counting_Span_jsPsych

A counting span task created with jsPsych (for offline use).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Counting_Span_jsPsych

A Counting Span Task created with jsPsych de Leeuw, J. R., 2015.

Structure of the Task

Images with blue circles, blue squares and yellow circles appears on the screen. The task is to count loudly the blue circles. When the counting is over, the participant needs to memorize the result of the counting. After that, a new image with the same symbols appears on the screen, and the participants has to count the blue circles again, and memorize the result. After the presentation of a few set of symbols, the participant is asked to recall the memorized numbers. First set contains 2 images, then each subsequent set contains one more image (up to 6 images in a set).

If the participant answers correctly, the SPACE should be pressed to skip to the next set. If the participant gets the number sequence wrong, a new run must be started (by pressing S).

The result of the run is the length of the last set that was correctly called. The result of the task is the arithmetic mean of the three runs.

At the end of the task, the data are downloaded to the local machine in .csv format.

Output file

  • success: whether fullscreen mode was successfully started/ended (true or false)
  • trial_type: JSPSych trialtype of the given trial (fullscreen, instructions, html-keyboard-response, or image-keyboard-response)
  • trial_index: the number of the given trials (all events considered, even instructions, feedbacks!)
  • time_elapsed: the time elapsed from the start of the script in ms
  • internal_code_id: internal node id of the trial
  • browser_events: browser events during the task (fullscreenenter, fullscreenexit, blur or focus)
  • view_history: viewing history during the instruction trials
  • rt: the reaction time for the Go or NoGo trials in ms
  • stimulus: stimulus on the screen in HTML
  • key_press: number code of the key pressed
  • run: the number of the current run (0 for practice, 1-3 for the three runs)
  • level: the number of the images in the current set
  • trial_within_level: the number of currently presented images within the set
  • is_practice: whether the stimulus is presented as a practice stimulus (1 - yes, 0 - no)
  • correct: whether or not correct responses were given (1 - correct, 0 - incorrect)
  • run1_last_correct: the number of images in the last set that the participant recalled correctly (first run)
  • run2_last_correct: the number of images in the last set that the participant recalled correctly (second run)
  • run3_last_correct: the number of images in the last set that the participant recalled correctly (third run)
  • counting_span: the mean of the scores of the three runs

Setting options

You can set the language of the task by modifying the varablei language. The currently available languages are enligsh (en) and hungarian (hu).

Browser requirements

Any browser except Safari and Internet Explorer.

About

A counting span task created with jsPsych (for offline use).

License:MIT License


Languages

Language:JavaScript 78.9%Language:HTML 20.5%Language:CSS 0.6%