Your SAS programs, embedded in web apps and elsewhere

Calculating reaction time in the dataset by using SAS

Reply
New Contributor
Posts: 2

Calculating reaction time in the dataset by using SAS

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
SAS Super FREQ
Posts: 8,742

Re: Calculating reaction time in the dataset by using SAS

This does not really seem to be a stored process question. If you had a SAS procedure job that produced a regression, you could turn it into a stored process. However, you must have the job first.

I believe that you really need help from Tech Support because
1) you need to know what software is installed at your site; so,
2) you can run a regression on your data using the appropriate procedure; then
3) you can turn that program into a stored process.

To find out how to contact Tech Support, go to:
http://support.sas.com/techsup/contact/index.html

Good luck!
cynthia
SAS Super FREQ
Posts: 8,742

Re: Calculating reaction time in the dataset by using SAS

Sorry, I believe you need to contact Tech Support. I meant to send the same note for this question on reaction time and the question on regression.

Essentially, this does not seem like a stored process question. Your best bet is to contact Tech Support for this. You have to have working program before you can turn that program into a stored process.

To find out how to contact Tech Support, go to:
http://support.sas.com/techsup/contact/index.html

Good luck!
cynthia
Ask a Question
Discussion stats
  • 2 replies
  • 204 views
  • 0 likes
  • 2 in conversation