A set-shifting task where participants add, subtract, and alternate between adding and subtracting a number from two-digit stimuli.
Participants complete three blocks of mental arithmetic. In the first block, they add a constant (default 3) to each number. In the second block, they subtract it. In the third block, they alternate between adding and subtracting on successive trials. The switch cost (difference between alternating and pure blocks) measures executive function and cognitive flexibility.
Measures: Executive function, set shifting, cognitive flexibility
| listsize | Number of math problems per list (default: 30) |
| addend | Value that should be added or subtracted in the problems. (default: 3) |
| sub | Participant ID |
| block | Block type: A (addition), S (subtraction), SW (switch/alternating) |
| trial | Trial number within the current block |
| value | The two-digit stimulus number presented |
| addend | The operation and value applied (e.g., +3 or -3) |
| corranswer | The typed response from the participant |
| answer | The correct answer |
| correct | Whether the response was correct (1) or incorrect (0) |
| corrcount | Cumulative correct count within the block |
| abstime | Absolute timestamp in milliseconds from the start of the test |
| rt | Response time in milliseconds from stimulus onset to Enter key |