This is a standard digit span task. It has visual/auditory presentation of number strings, keyboard input. Can be used directly be the subject, or the keyboard entry can be done by a trained experimenter using vocal recall.
- The script will run three different versions of the task: starting low and go up until too many errors; starting high and go lower until too many corrects; and an adaptive staircase procedure. These are selected by changing the gVersion variable in the script.
- The gUseAudio variable controls whether auditory stimuli and feedback should be given.
- The starting lengths, number per length, upper and lower bounds, and accuracy criteria are controlled by variables at the beginning of the file, at around line 80. Here are the defaults:
upperbound <- 10 ## The longest list length lowerbound <- 3 ## The shortest list length perlength <- 2 ## The number of trials at each length criterion <- 1 ## The number that must be correct to proceed staircasestart <- 4 ## starting point for staircasestart. staircasetrials <- 16 ## Number of staircase trials. gISI <- 1000 ## Inter-stimulus interval in ms iti <- 1500 ## inter-trial interval.
- The endearly variable determines whether the complete set of trials at each length are tested, or if the testing at each length continues only until the criterion has been met.
 Data Output
Basic results are output to dspan-<subnum>.txt in the data\ subdirectory.
Croschere, J., Dupey, L., Hilliard, M., Koehn, H., & Mayra, K. (2012). The effects of time of day and practice on cognitive abilities: Forward and backward Corsi block test and digit span. PEBL Technical Report Series [On-line], #2012-03.