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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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