Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 9 of 9

Thread: Randomization with constraints

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    36

    Randomization with constraints

    Didn't find anything on this by searching the forum, so I hope I am not covering old ground...

    Does MediaLab (or DirectRT) have any way to do randomization with constraints? E.g., suppose I have two types of items, and I want to present them in random order with the constraint that I never get n (e.g., 2, or 3, or 4) of the same item type in a row? Admittedly the "no consecutive repeat" constraint is very hard to achieve in most task programming systems, but I can usually find a way to do more relaxed constraints. Just wondering how to do that in MediaLab, or even DirectRT for that matter.

    Thanks,
    -- David McFarlane, Professional Faultfinder

  2. #2
    Join Date
    Mar 2009
    Posts
    401
    Currently, you would only be able to complete this task using MediaLab. MediaLab has the ability to harness much more power using excel - DirectRT currently cannot.

    By using logical IF statements within excel, you should be able to create a system in which the requirements you've noted can be met. See the following link for more information:
    http://www.empirisoft.com/medialab/h...d_features.htm

    Let me know if you need more help creating an input file with this functionality.

    Also - it should be noted that DirectRT 2010 will have the ability to harness excel in the same way that MediaLab can before its Fall release.

  3. #3
    Join Date
    Aug 2008
    Posts
    36
    Quote Originally Posted by newell View Post
    Currently, you would only be able to complete this task using MediaLab. MediaLab has the ability to harness much more power using excel - DirectRT currently cannot.
    Thanks. Actually, once I looked back at DirectRT, I discovered that I can implement many randomization constraints by judicious use of input lists and rwg (or wgr). Of course I could do even more with via Excel, but in many cases input lists + rwg would do good enough.

    Also - it should be noted that DirectRT 2010 will have the ability to harness excel in the same way that MediaLab can before its Fall release.
    Terrific, you beat me to it! I was going to note that curious distinction between ML and DRT, looks like you're about to take care of it. I also note that ML allows relative paths for stimulus files, whereas DRT does not, could that be fixed? And DRT has a nice rand() function that ML lacks. I have been building up a list of these curious distinctions between ML & DRT, if I compile more then I will post them for you.

    -- David McFarlane, Professional Faultfinder

  4. #4
    Join Date
    Nov 2005
    Posts
    3,328
    David--such a list would be welcome! I would request that you direct the curious distinctions to the suggestions and feedback areas. That's where we go first when considering improvements for future versions.

  5. #5

    Randomization with conditions

    I'm attempting to randomize presentation items, each of which gets presented a total of three times, with the constraint that an item will not immediately follow itself. Is there a way to do this in MediaLab? I can't seem to figure out how to harness "if" to make this work.
    Many thanks for any suggestions!

  6. #6
    Join Date
    Nov 2005
    Posts
    3,328
    Try creating a simple sample with say 6 items-2 words, used 3 times each (cat, cat, dog, dog, mouse, mouse). Then try to create a responses.xls file that does the randomization with constraints (such that one never follows itself). When you hit a roadblock, attach the file, and I'll take a look at it. Once it works with 6 items, it ought not be hard to expand it. I think it would simply be a matter of picking the first word, then picking the next, checking to ensure it's not the same as the previous word and so on. If it is the same then you pick again until it does not match. The only problem you need to account for beyond that is running out of words such that when you have only one word left, it happens to be the same as the second last word. In such a case, you would need to add a condition to start over. As I said though, try your best and then attach it here if/when you get stuck.

Similar Threads

  1. randomization mistake
    By mickeyi in forum DirectRT Older Versions: How Do I...
    Replies: 3
    Last Post: 01-14-2009, 09:13 PM
  2. How to log during randomization?
    By denny in forum DirectRT Older Versions: General Questions
    Replies: 6
    Last Post: 08-20-2008, 02:21 PM
  3. Condition# randomization
    By umhui in forum MediaLab Older Versions: General Questions
    Replies: 1
    Last Post: 06-11-2008, 02:17 PM
  4. Randomization
    By clare66 in forum MediaLab Older Versions: General Questions
    Replies: 5
    Last Post: 02-06-2008, 02:49 PM
  5. Too much Randomization
    By L4lab in forum DirectRT Older Versions: Troubleshooting
    Replies: 2
    Last Post: 03-31-2007, 05:18 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
  •