Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 8 of 8

Thread: Using subject and/or condition ID as variables

  1. #1
    Join Date
    Nov 2005
    Posts
    3,328

    Using subject and/or condition ID as variables

    [edited from support email]
    I have a question regarding DirectRT v2006. I know that it is possible to present a participants prior response as a stimulus. However, is it also possible to present the participants Subject ID as a stimulus? I assume there is a way given that that info is recorded in the data file. My first guess was to use in the stim column the following ~=subj But that didn’t work and I suspect that only a trial number can be listed following the = .

    So, how can I present Subject ID as a stimulus WITHOUT having participants enter their ID # on an earlier trial…?

  2. #2
    Join Date
    Nov 2005
    Posts
    3,328
    Let me see what I can do. You want it presented as if it were a text stimulus? So lets say in your input file, you have var(subj) anywhere you like and DirectRT would automagically replace that expression with the subject ID. so ~var(subj) would be replaced with ~22 for subject 22. !soundvar(cond) would be replaced with !sound17 if 17 were the condition ID.

  3. #3
    Join Date
    Nov 2005
    Posts
    3,328
    Exactly! Thanks

  4. #4
    Join Date
    Nov 2005
    Posts
    3,328

  5. #5
    Join Date
    Nov 2005
    Posts
    3,328
    [follow up edited from support email]
    I tried the update with var(subj), which works fine while the program is running. However, I noticed an unexpected problem. When the session ends - directrt creates a new input file that is a replication of the original file and is named as the original file with the addition of a suffix corresponding to the value of var(subj). For example, the name of my DirectRT input file is primeprog. I ran a session with subject id = 555. Within the session directrt correctly displays 555 when I use var(subj). However, it subsequently lists in the "Select and run an input file" pull down the original file "primeprog" and a new file "primeprog_555" This also happens with other id numbers.

  6. #6
    Join Date
    Nov 2005
    Posts
    3,328
    Yup, it's the same consequence as if you use the random number generation functions. DirectRT actually makes a copy of the input file, generates and inserts the requests values, and then runs THAT input file rather than the origional. It was intended to be a benefit because you would have a permanent record of the input file actually administered to any given subject. I can see how this would be a pain though when searching for the appropriate input file to run when you have collected 100 or so of these. I'm open to suggestions. My first thought of course is to simply archive them once in a while as the number grows.

  7. #7
    REgarding the multiple input files named with the var(subj) prefix. Is there a way for directrt to store those additional files in some other folder so they are not displayed as an available input file? This would simply things for undergraduate RAs (i.e., no need to hunt for the "correct" input file among numerous files of similar names)?

    Lowell

  8. #8
    Join Date
    Nov 2005
    Posts
    3,328
    Nope, the newly generated file has to go in the same folder because that is the input file that is actually run. I suppose one solution could be to have DirectRT move the files to another folder after they have been run.

Similar Threads

  1. SPSS .sav data is missing new variables?
    By Sonia in forum MediaLab Older Versions: General Questions
    Replies: 9
    Last Post: 08-22-2007, 12:43 PM
  2. Can MediaLab calculate scores and variables to use during the session?
    By jarvis24 in forum MediaLab Older Versions: General Questions
    Replies: 3
    Last Post: 02-07-2007, 10:13 AM
  3. response as condition
    By katherineinus in forum DirectRT Older Versions: How Do I...
    Replies: 1
    Last Post: 11-17-2006, 10:40 AM
  4. Subject ID
    By jaskoj in forum DirectRT Older Versions: Suggestions
    Replies: 1
    Last Post: 11-09-2006, 01:23 PM
  5. Passing the subject and/or condition ID to an Executable
    By jarvis24 in forum MediaLab Older Versions: How Do I...
    Replies: 1
    Last Post: 09-05-2006, 12:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •