Random assignment of the participants to the experiment lists? #825
Answered
by
jodeleeuw
zhangchi199133
asked this question in
Q&A
-
Hi! I was wondering whether there were instructions with regard to random assignment of the participants to one of the experiment lists I created? Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
jodeleeuw
Jul 2, 2020
Replies: 1 comment 1 reply
-
Hi @zhangchi199133 , If you've got a separate timeline created for each condition, then you could randomly select one of those timelines like this: var timeline_condition_a = [...];
var timeline_condition_b = [...];
var timeline_condition_c = [...];
var random_timeline = jsPsych.randomization.sampleWithoutReplacement([timeline_condition_a, timeline_condition_b, timeline_condition_c], 1)[0]; |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jodeleeuw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @zhangchi199133 ,
If you've got a separate timeline created for each condition, then you could randomly select one of those timelines like this: