thartbm / PyVMEC

A Python-based GUI to create and run visuo-motor experiments.
GNU General Public License v3.0
1 stars 3 forks source link

target order is not pseudo-random #55

Closed thartbm closed 6 years ago

thartbm commented 6 years ago

The target order should be determined once for every participant, by the experimental code. Or it should use a "randomnization" that always gives the exact same targets for the same participant.

We found out because we hit 'continue run' a few times and it started at the same trial but with a different target each time. What can happen in this case is that we don't have all targets in that block which will affect the statistics and results.

This is how I do it:

  1. set the seed depending on participant ID and some set thing (could be experiment name): seed(sum([ord(c) for c in 'illusory cursor tracking']) + (cfg['id'] * 9999))

Although beware there that the cfg['id'] is always a number, so you should maybe first concatenate the strings to do ord() on each character.

  1. generate target / trial order for the whole experiment (based on specs)

  2. use that order throughout...

thartbm commented 6 years ago

It seems here I was planning to have participants numbered incrementally not assigned ID strings.