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.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

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