Presentation order after randomization

PennController for IBEX Forums Support Presentation order after randomization

This topic contains 2 replies, has 2 voices, and was last updated by Avatar August 4 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6027
    Avatar
    August
    Participant

    Hi Jeremy:

    May I ask how to keep track of presentation order of all the items after we randomize the presentation order (e.g., randomize(“trials”)?

    Thanks a lot!

    Best wishes,
    August

    #6028
    Jeremy
    Jeremy
    Keymaster

    Hi August,

    You cannot really keep track of the post-randomization order in your script (at least not with some advanced coding). However the lines in your results file will appear in the order in which the events and the trials were run. Moreover, comparing the timestamps reported for the trials’ _Start_ events will also tell you in which order they were run.

    If you want to add the running order information more directly to your results file, you can add this to your script:

    Header(
      // ... code to be run before every single trial
      newVar("runningOrder", 0).global().set( v=>v+1 )
    )
    .log( "runningOrder" , getVar("runningOrder") )

    Every line in your results file will then report a number that should increment with each new trial

    Let me know if you need more in-depth access to the running order in your script

    Jeremy

    #6042
    Avatar
    August
    Participant

    Thanks so much Jeremy!! I tried your codes and they work fine!

    Best wishes,
    August

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.