Hi
I would like calculate the reaction time in the dataset by using SAS (and then do the following statistics). My data looked like this:
Subj: 1
N Time Trigger_number
1 0.0 0
2 1.3 100
3 4.6 1
4 5.0 0
5 6.0 200
6 9.4 1
7 12.0 0
8 15.0 0
9 18.4 1
10 20.0 0
The trigger_number "100" and "200" refer to the correct stimuli, and the trigger_number "1" refers to response. I only want to calculate the correct response (that is, ignore the false positive events like event 9), and the desired RT should fulfill the following conditions:
1. trigger_number=1 but only if the precedent trigger_number is either 100 or 200.
2. calculate the reaction time by subtract the "time" of the event that the trigger_number is 100 or 200 from the "time" of the event that the trigger_number is 16.
How can I code this in SAS?
Really appreciate for your kindly help!!!!
Samantha
Message was edited by: samhuang at Jan 25, 2007 7:59 PM
Message was edited by: samhuang at Jan 25, 2007 8:00 PM
Message was edited by: samhuang at Jan 25, 2007 8:00 PM
... View more