Current version: 1.7 ()

This script will allow you to set up a reaction time (RT) task for your study. I have tried to make it as flexible as possible, though it may not be able to do everything a full-scale program like DirectRT or ePrime may be able to do. This script is meant to work in conjunction with Bill’s survey script or my survey form template.

There are two ways to set up an RT task for your study:

Fill in the textboxes to create an RT task

The easy way: Go to this page and fill in the textboxes

Download and edit the RT task code

The fun way: Follow the instructions on this page and edit the code to your satisfaction

In addition, if you want more detailed information on any of the features, you may view the complete instructions.

Disclaimer: Javascript has a couple fundamental limitations with how it runs timed events. First, its internal clock can be off by about +/-15ms in some browsers (info). In addition, the processing speed of computers may cause events to take longer than they should (i.e. a 20ms prime may take 25ms instead). I have created a list of a few methods to compensate for these problems.

Features

The features of this RT script include the following:

If you are looking to create an IAT task and don’t need all these fancy features, check out the IAT script, which offers simpler setup and output.

Output

When participants complete the task, by default the output will consist of RT data for each trial, in the following format: Block_n(word [correct,RT]), where ‘n’ is the number of the block, ‘correct’ is 1 for a correct response, and 0 for an incorrect response, and ‘RT’ is the reaction time in milliseconds.

In addition to the raw RT data, the script also outputs three values for each block:

  1. The average response time of the block
  2. The standard deviation of correct responses in the block
  3. The error rate (proportion incorrect) for responses in the block

These values are output in sequential order, even if the blocks were presented in random order. Last, it also outputs three final summary values:

  1. The overall average response time
  2. The overall standard deviation of all correct responses
  3. The overall error rate for all responses