Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Loop Table

Is it possible to access the defined trials in a loop table with a script in order to pseudorandomize them via the script? If yes, how?


Comments

  • Hi @Lisa_99,

    There are numerous ways of pseudorandomizing trials, depending on your experiment's characteristics and how complex the pseudorandomization is. Sopmetimes nested loops will do the trick. Otherwose, you can also create your trials lists outside Open Sesame and import tham as csv files (and then, for examepol, pick one randomly for every participant); see https://osdoc.cogsci.nl/4.0/manual/javascript/csv/ for information about the csv parsing function. Another way to do it is to create your trials lists using Javascript code, specifying your conditions through code, and then store the results in an array which you can then extract content to populate each trial in the "prepare phase" of your trial sequence.

    Best,

    Fabrice.

    Buy Me A Coffee

Sign In or Register to comment.