Millisecond Online Community

Forums & Feeds
Welcome to Millisecond Online Community Sign in | Join | Help
in Search

Branching

Last post 08-20-2008, 9:39 PM by mr8757. 3 replies.
Sort Posts: Previous Next
  •  08-18-2008, 9:18 PM 1815

    Branching

    Hey,

    I am trying to create a program that requires some trials to be random and some not random. If trial 1 is selected at random, then the next trial that has to run is trial 2, and if trial 5 is selected at random, then the next trial to run must be trial 6, etc. The kicker is that the not random trials cannot ever be selected as part of the random selection process. Does anyone have any idea of how to set this up? I tried to use the branching command, but I wasnt using it properly, so I had lots of errors. I am brand new to inquisit and to programming in general, so any help would be greatly appreciated. Oh yeah, I have a deadline, I have to have this done by next week.

  •  08-19-2008, 3:35 AM 1816 in reply to 1815

    Re: Branching

    Hi,

    more info, please. Otherwise no one will be able to really help you out. Try to describe the procedure you're aiming to implement in as much detail as possible (i.e.: What are the random and non-random parts? Under which conditions should the selection be random, under which not? What exactly are the errors you're experiencing? etc.). You can also post the code you already have (or at least part of it) to give helpful forum members a better idea of what you're trying to accomplish.

    Best,
    ~Dave
  •  08-19-2008, 8:31 AM 1826 in reply to 1816

    Re: Branching

    I received an email about this with some more details, so I'll post an answer here.

    As I understand, you are trying to randomly select pairs trials. The first member of the pair is randomly selected, and immediately after it is run, the second member of the pair is then run. After the second member is run, Inquisit randomly selects from the first members of the pairs again, and so forth.

    The way to set this up is as follows. The /trials command of your block should randomly select from the first members of all of the available pairs:

    <block practice>
    / trials = [1-8=noreplace(a1, b1, c1, d1, e1, f1, g1, h1)]
    </block>

    Each of those trials should have a branch that runs it's corresponding second member:

    <trial a1>
    / branch = [trial.a2]
    </trial>

    <trial b1>
    / branch = [trial.b2]
    </trial>

    <trial c1>
    / branch = [trial.c2]
    </trial>

    and so on.

    Pretty simple. Hope this helps,

    Sean

  •  08-20-2008, 9:39 PM 1834 in reply to 1826

    Re: Branching

    Thanks, I was trying to follow the example for branching but I was way off. This seems to have fixed my issue.

    Thank you!!!!!

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems