BookmarkSubscribeRSS Feed
samhuang
Calcite | Level 5
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
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
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
Cynthia_sas
SAS Super FREQ
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

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1234 views
  • 0 likes
  • 2 in conversation