A default function what to do after a trial is over.
It records the participant’s response as the last key pressed, calculates accuracy based on the expected (correct) response value, and records the time of the last key press with respect to the onset of a trial. If no key was pressed, participant’s response and response time are recorded as an empty string, while accuracy is assigned a ‘No response’.
Args: |
|
---|---|
Returns: | this_trial with subj_resp, accuracy, and rt filled in. |