Pseudorandomization using mindist
In the experiment I'm planning, I have a variable (called Keep) that can be either 0 or 1 .
It should receive the value 0 on 60% of the trails, and the value 1 on 40% of the trails.
The constraint is that after a Keep = 1 trial, there must be a Keep = 0 trial.
(After a Keep =0 trial there could be either Keep = 0 or Keep = 1).
Iv'e tried to add a constrain command:
constrain Keep mindist=2:
But it doesn't work (Python crushed), I believe this is because it was trying to implement this constraint on bot Keep = 0 and Keep = 1, which is impossible.
How would you approach that?
Is it possible to use the mindist comand for a specific value of the variable?